Merge "Add back deprecated Translator.translate() method" into sc-dev am: 51f7357af1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14235469 Change-Id: Id9eef5c3264a275235b068202fc0112222abe3a3
This commit is contained in:
@@ -535,6 +535,14 @@ package android.view {
|
||||
|
||||
}
|
||||
|
||||
package android.view.translation {
|
||||
|
||||
public class Translator {
|
||||
method @Deprecated @Nullable public void translate(@NonNull android.view.translation.TranslationRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.view.translation.TranslationResponse>);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.webkit {
|
||||
|
||||
public class WebViewClient {
|
||||
|
||||
@@ -231,9 +231,8 @@ public class Translator {
|
||||
*
|
||||
* @throws IllegalStateException if this Translator session was destroyed when called.
|
||||
*
|
||||
* @deprecated use {@link #translate(TranslationRequest, CancellationSignal,
|
||||
* @removed use {@link #translate(TranslationRequest, CancellationSignal,
|
||||
* Executor, Consumer)} instead.
|
||||
* @hide
|
||||
*/
|
||||
@Deprecated
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user