mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Translate taskbar to hotseat without jump when swiping up from overview
Also use this code path to reset translation when going from an app to launcher. Test: swipe up from overview, goes home without hotseat jumping Fixes: 262826748 Change-Id: If8a4278a61e3786cfe16c388eabefacc63e8f327
This commit is contained in:
@@ -435,6 +435,14 @@ import java.util.StringJoiner;
|
||||
});
|
||||
animatorSet.play(stashAnimator);
|
||||
}
|
||||
|
||||
if (isAnimatingToLauncher() || mLauncherState == LauncherState.NORMAL) {
|
||||
// Translate back to 0 at a shorter or same duration as the icon alignment animation.
|
||||
// This ensures there is no jump after switching to hotseat, e.g. when swiping up from
|
||||
// overview to home. Currently we do duration / 2 just to make it feel snappier.
|
||||
animatorSet.play(mControllers.taskbarTranslationController
|
||||
.createAnimToResetTranslation(duration / 2));
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isInLauncher() {
|
||||
|
||||
Reference in New Issue
Block a user