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:
Adam He
2021-04-19 13:47:39 -07:00
parent d215e29f75
commit f187b6dc51
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