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

Commit 9285d1bf authored by George Mount's avatar George Mount
Browse files

Exclude views that aren't on screen from Activity Transitions.

Bug 15704207

Change-Id: I114a5191536b5c59c6c2d1074fab8505a8ad2fdb
parent 1e2f374e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -233,6 +233,13 @@ abstract class ActivityTransitionCoordinator extends ResultReceiver {
        if (getViewsTransition() != null) {
            getDecor().captureTransitioningViews(mTransitioningViews);
            mTransitioningViews.removeAll(mSharedElements);
            Rect r = new Rect();
            for (int i = mTransitioningViews.size() - 1; i >= 0; i--) {
                View view = mTransitioningViews.get(i);
                if (!view.getGlobalVisibleRect(r)) {
                    mTransitioningViews.remove(i);
                }
            }
        }
        setEpicenter();
    }