Clear animation state before dumping old views

Make sure we leave any views we aren't continuing to control in a
bad state.

Bug: 27560770
Change-Id: I0e5174bc7f93f73c4e5eb5711bb85845b7cd8c92
This commit is contained in:
Jason Monk
2016-03-09 10:58:49 -05:00
parent ba6a761c09
commit bc8ffc2ff2

View File

@@ -138,6 +138,7 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
firstPageBuilder.setListener(this);
// Fade in the tiles/labels as we reach the final position.
firstPageDelayedBuilder.addFloat(mQsPanel.getTileLayout(), "alpha", 0, 1);
clearAnimationState();
mAllViews.clear();
mTopFiveQs.clear();
mAllViews.add((View) mQsPanel.getTileLayout());