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

Commit 8baba52f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Quick change to add default to deprecated callback method so...

Merge "Quick change to add default to deprecated callback method so implementors can move to new api." into sc-dev am: 0b9af71d am: 7844e5d8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14535063

Change-Id: I8beed957f338fa500659ce6064a0ca82069a753e
parents 04816e06 7844e5d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52978,7 +52978,7 @@ package android.view.translation {
    method public void onFinished();
    method public void onPaused();
    method public default void onResumed(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale);
    method @Deprecated public void onStarted(@NonNull String, @NonNull String);
    method @Deprecated public default void onStarted(@NonNull String, @NonNull String);
    method public default void onStarted(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale);
  }
+3 −1
Original line number Diff line number Diff line
@@ -31,7 +31,9 @@ public interface UiTranslationStateCallback {
     * @deprecated use {@link #onStarted(ULocale, ULocale)} instead.
     */
    @Deprecated
    void onStarted(@NonNull String sourceLocale, @NonNull String targetLocale);
    default void onStarted(@NonNull String sourceLocale, @NonNull String targetLocale) {
        // no-op
    }

    /**
     * The system is requesting translation of the UI from {@code sourceLocale} to {@code