Loading core/java/android/view/View.java +10 −0 Original line number Diff line number Diff line Loading @@ -30928,6 +30928,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, mViewTranslationResponse = response; } /** * Clears the ViewTranslationResponse stored by the default implementation of {@link * #onViewTranslationResponse}. * * @hide */ public void clearViewTranslationResponse() { mViewTranslationResponse = null; } /** * Called when the content from {@link View#onCreateVirtualViewTranslationRequests} had been * translated by the TranslationService. core/java/android/view/translation/UiTranslationController.java +1 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,7 @@ public class UiTranslationController { destroyTranslators(); runForEachView((view, callback) -> { callback.onClearTranslation(view); view.clearViewTranslationResponse(); if (view.hasTranslationTransientState()) { view.setHasTransientState(false); view.setHasTranslationTransientState(false); Loading Loading
core/java/android/view/View.java +10 −0 Original line number Diff line number Diff line Loading @@ -30928,6 +30928,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, mViewTranslationResponse = response; } /** * Clears the ViewTranslationResponse stored by the default implementation of {@link * #onViewTranslationResponse}. * * @hide */ public void clearViewTranslationResponse() { mViewTranslationResponse = null; } /** * Called when the content from {@link View#onCreateVirtualViewTranslationRequests} had been * translated by the TranslationService.
core/java/android/view/translation/UiTranslationController.java +1 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,7 @@ public class UiTranslationController { destroyTranslators(); runForEachView((view, callback) -> { callback.onClearTranslation(view); view.clearViewTranslationResponse(); if (view.hasTranslationTransientState()) { view.setHasTransientState(false); view.setHasTranslationTransientState(false); Loading