Fix qsb when flinging to home during gesture to overview from home

- AllAppsTransitionController should not animate alphas for atomic
  components even when failing fast (we already had this check for
  the normal flow where mProgress != targetProgress).
- Don't set state to NORMAL until both the workspace stagger anim
  and overview peek anim are finished

Test: swipe up and hold from the nav bar on the home screen, then,
without lifting finger, fling upwards to return home; ensure qsb
springs in staggered formation with rest of workspace, and alpha
matches accordingly

Bug: 154637581
Change-Id: Iafeaeac50ee8bce05492628d443c3ca4ab3d26df
This commit is contained in:
Tony Wickham
2020-06-15 19:00:50 -05:00
parent 946696124a
commit 80846543b5
3 changed files with 31 additions and 4 deletions

View File

@@ -159,7 +159,9 @@ public class AllAppsTransitionController implements StateHandler<LauncherState>,
StateAnimationConfig config, PendingAnimation builder) {
float targetProgress = toState.getVerticalProgress(mLauncher);
if (Float.compare(mProgress, targetProgress) == 0) {
setAlphas(toState, config, builder);
if (!config.onlyPlayAtomicComponent()) {
setAlphas(toState, config, builder);
}
// Fail fast
onProgressAnimationEnd();
return;