Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c9f0a01 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Avoid changeBounds animations on Views that are not yet laidout" into lmp-dev

parents 56b7d562 f791703f
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -117,6 +117,8 @@ public class ChangeBounds extends Transition {

    private void captureValues(TransitionValues values) {
        View view = values.view;

        if (view.isLaidOut()) {
            values.values.put(PROPNAME_BOUNDS, new Rect(view.getLeft(), view.getTop(),
                    view.getRight(), view.getBottom()));
            values.values.put(PROPNAME_PARENT, values.view.getParent());
@@ -126,6 +128,7 @@ public class ChangeBounds extends Transition {
                values.values.put(PROPNAME_WINDOW_Y, tempLocation[1]);
            }
        }
    }

    @Override
    public void captureStartValues(TransitionValues transitionValues) {