Skip to content

Commit

Permalink
Ensure we clearState() when going to Overview from home
Browse files Browse the repository at this point in the history
We need to do this before potentially starting another
interaction during the animation, or we could end up in
an inconsistent state.

Fixes: 160759508
Change-Id: Ia28dceddcc258679fc0b968f5a83fae5ef3f5acb
  • Loading branch information
Tony Wickham committed Aug 14, 2020
1 parent 6c1a88f commit 107fe60
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ protected void updateProgress(float fraction) {
public void onDragEnd(float velocity) {
super.onDragEnd(velocity);
mNormalToHintOverviewScrimAnimator = null;
if (mLauncher.isInState(OVERVIEW)) {
// Normally we would cleanup the state based on mCurrentAnimation, but since we stop
// using that when we pause to go to Overview, we need to clean up ourselves.
clearState();
}
}

@Override
Expand Down

0 comments on commit 107fe60

Please sign in to comment.