Merge "Avoid using starting bounds of open transitions" into tm-qpr-dev am: 5b87b8c569
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18917216 Change-Id: I74dcfc2b9d48545204d7b4ad72f60291d3b94958 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -141,8 +141,10 @@ public class RemoteAnimationTargetCompat {
|
|||||||
final int mode = change.getMode();
|
final int mode = change.getMode();
|
||||||
|
|
||||||
t.reparent(leash, info.getRootLeash());
|
t.reparent(leash, info.getRootLeash());
|
||||||
t.setPosition(leash, change.getStartAbsBounds().left - info.getRootOffset().x,
|
final Rect absBounds =
|
||||||
change.getStartAbsBounds().top - info.getRootOffset().y);
|
(mode == TRANSIT_OPEN) ? change.getEndAbsBounds() : change.getStartAbsBounds();
|
||||||
|
t.setPosition(leash, absBounds.left - info.getRootOffset().x,
|
||||||
|
absBounds.top - info.getRootOffset().y);
|
||||||
|
|
||||||
// Put all the OPEN/SHOW on top
|
// Put all the OPEN/SHOW on top
|
||||||
if (mode == TRANSIT_OPEN || mode == TRANSIT_TO_FRONT) {
|
if (mode == TRANSIT_OPEN || mode == TRANSIT_TO_FRONT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user