Merge "Add back deprecated Translator.translate() method" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
51f7357af1
@@ -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 {
|
package android.webkit {
|
||||||
|
|
||||||
public class WebViewClient {
|
public class WebViewClient {
|
||||||
|
|||||||
@@ -231,9 +231,8 @@ public class Translator {
|
|||||||
*
|
*
|
||||||
* @throws IllegalStateException if this Translator session was destroyed when called.
|
* @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.
|
* Executor, Consumer)} instead.
|
||||||
* @hide
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
Reference in New Issue
Block a user