Merge "Don't clear translation state on temporary detachment." into tm-dev

This commit is contained in:
Mark Punzalan
2022-05-27 17:15:29 +00:00
committed by Android (Google) Code Review

View File

@@ -10000,7 +10000,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
// We reset any translation state as views may be re-used (e.g., as in ListView and
// RecyclerView). We only need to do this for views important for content capture since
// views unimportant for content capture won't be translated anyway.
clearTranslationState();
if (!isTemporarilyDetached()) {
clearTranslationState();
}
}
}