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:
TreeHugger Robot
2021-04-21 01:03:10 +00:00
committed by Automerger Merge Worker
2 changed files with 9 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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