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

Commit 69337714 authored by Chris Wren's avatar Chris Wren Committed by Android Git Automerger
Browse files

am 78cb7cf7: Allow animations to run past cancelled draws, if the view is visible.

* commit '78cb7cf7':
  Allow animations to run past cancelled draws, if the view is visible.
parents 1c2ecfa9 78cb7cf7
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -1855,18 +1855,15 @@ public final class ViewRootImpl implements ViewParent,
                performDraw();
            }
        } else {
            // End any pending transitions on this non-visible window
            if (mPendingTransitions != null && mPendingTransitions.size() > 0) {
            if (viewVisibility == View.VISIBLE) {
                // Try again
                scheduleTraversals();
            } else if (mPendingTransitions != null && mPendingTransitions.size() > 0) {
                for (int i = 0; i < mPendingTransitions.size(); ++i) {
                    mPendingTransitions.get(i).endChangingAnimations();
                }
                mPendingTransitions.clear();
            }

            if (viewVisibility == View.VISIBLE) {
                // Try again
                scheduleTraversals();
            }
        }
    }