Merge "Avoid using starting bounds of open transitions" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5b87b8c569
@@ -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