Loading core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -52965,6 +52965,7 @@ package android.view.translation { public interface UiTranslationStateCallback { method public void onFinished(); method public void onPaused(); method public void onResumed(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale); method @Deprecated public void onStarted(@NonNull String, @NonNull String); method public default void onStarted(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale); } core/java/android/view/translation/UiTranslationManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -338,7 +338,7 @@ public final class UiTranslationManager { mCallback.onStarted(mSourceLocale, mTargetLocale); break; case STATE_UI_TRANSLATION_RESUMED: mCallback.onStarted(mSourceLocale, mTargetLocale); mCallback.onResumed(mSourceLocale, mTargetLocale); break; case STATE_UI_TRANSLATION_PAUSED: mCallback.onPaused(); Loading core/java/android/view/translation/UiTranslationStateCallback.java +7 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ public interface UiTranslationStateCallback { * targetLocale}. * <p> * This is also called if either the requested {@code sourceLocale} or {@code targetLocale} has * changed; or called again after {@link #onPaused()}. * changed. */ default void onStarted(@NonNull ULocale sourceLocale, @NonNull ULocale targetLocale) { onStarted(sourceLocale.getLanguage(), targetLocale.getLanguage()); Loading @@ -50,6 +50,12 @@ public interface UiTranslationStateCallback { */ void onPaused(); /** * The system is requesting that the application restore from the temporarily paused state and * show the content in translated language. */ void onResumed(@NonNull ULocale sourceLocale, @NonNull ULocale targetLocale); /** * The UI Translation session has ended. */ Loading Loading
core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -52965,6 +52965,7 @@ package android.view.translation { public interface UiTranslationStateCallback { method public void onFinished(); method public void onPaused(); method public void onResumed(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale); method @Deprecated public void onStarted(@NonNull String, @NonNull String); method public default void onStarted(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale); }
core/java/android/view/translation/UiTranslationManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -338,7 +338,7 @@ public final class UiTranslationManager { mCallback.onStarted(mSourceLocale, mTargetLocale); break; case STATE_UI_TRANSLATION_RESUMED: mCallback.onStarted(mSourceLocale, mTargetLocale); mCallback.onResumed(mSourceLocale, mTargetLocale); break; case STATE_UI_TRANSLATION_PAUSED: mCallback.onPaused(); Loading
core/java/android/view/translation/UiTranslationStateCallback.java +7 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ public interface UiTranslationStateCallback { * targetLocale}. * <p> * This is also called if either the requested {@code sourceLocale} or {@code targetLocale} has * changed; or called again after {@link #onPaused()}. * changed. */ default void onStarted(@NonNull ULocale sourceLocale, @NonNull ULocale targetLocale) { onStarted(sourceLocale.getLanguage(), targetLocale.getLanguage()); Loading @@ -50,6 +50,12 @@ public interface UiTranslationStateCallback { */ void onPaused(); /** * The system is requesting that the application restore from the temporarily paused state and * show the content in translated language. */ void onResumed(@NonNull ULocale sourceLocale, @NonNull ULocale targetLocale); /** * The UI Translation session has ended. */ Loading