Merge "Don't clear translation state on temporary detachment." into tm-dev am: 76ba87f909
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18624095 Change-Id: If3d236d7655fb2f219d43c7e6ce7e31f8dd1d3ef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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
|
// 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
|
// RecyclerView). We only need to do this for views important for content capture since
|
||||||
// views unimportant for content capture won't be translated anyway.
|
// views unimportant for content capture won't be translated anyway.
|
||||||
clearTranslationState();
|
if (!isTemporarilyDetached()) {
|
||||||
|
clearTranslationState();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user