Merge "Quick change to add default to deprecated callback method so implementors can move to new api." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0b9af71d1e
@@ -52976,7 +52976,7 @@ package android.view.translation {
|
|||||||
method public void onFinished();
|
method public void onFinished();
|
||||||
method public void onPaused();
|
method public void onPaused();
|
||||||
method public default void onResumed(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale);
|
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);
|
method public default void onStarted(@NonNull android.icu.util.ULocale, @NonNull android.icu.util.ULocale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ public interface UiTranslationStateCallback {
|
|||||||
* @deprecated use {@link #onStarted(ULocale, ULocale)} instead.
|
* @deprecated use {@link #onStarted(ULocale, ULocale)} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@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
|
* The system is requesting translation of the UI from {@code sourceLocale} to {@code
|
||||||
|
|||||||
Reference in New Issue
Block a user