mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user