Allow animations to run past cancelled draws, if the view is visible.

Bug: 6475482
Change-Id: Iecb3a04744282135efa0049f1b70a46dc4a6bb23
This commit is contained in:
Chris Wren
2012-05-15 12:36:44 -04:00
committed by Android (Google) Code Review
parent 8b4d73b2d5
commit 78cb7cf7d1

View File

@@ -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();
}
}
}