Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51f7357a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add back deprecated Translator.translate() method" into sc-dev

parents 497dadea f187b6dc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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 {
+1 −2
Original line number Diff line number Diff line
@@ -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