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

Commit e988ee1e authored by Craig Stout's avatar Craig Stout Committed by Dake Gu
Browse files

Omit appearing views that have a parent that is also appearing.

b/17460766

Change-Id: Ib3fe619e271688c93a5cd4cb4d557e6cca5baa34
parent ef88f708
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -277,6 +277,18 @@ public abstract class Visibility extends Transition {
        if ((mMode & MODE_IN) != MODE_IN || endValues == null) {
            return null;
        }
        if (startValues == null) {
            VisibilityInfo parentVisibilityInfo = null;
            View endParent = (View) endValues.view.getParent();
            TransitionValues startParentValues = getMatchedTransitionValues(endParent,
                                                                            false);
            TransitionValues endParentValues = getTransitionValues(endParent, false);
            parentVisibilityInfo =
                getVisibilityChangeInfo(startParentValues, endParentValues);
            if (parentVisibilityInfo.visibilityChange) {
                return null;
            }
        }
        return onAppear(sceneRoot, endValues.view, startValues, endValues);
    }