Add back deprecated Translator.translate() method
* Deprecatede method was @hide hidden by mistake. Bug: 185793893 Test: atest CtsTranslationTestCases Change-Id: I6acfcf866d926d5efd5baf3f711d9906dd95a34e
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