mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Translate taskbar to hotseat without jump when swiping up from overview" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3dd1440520
@@ -433,6 +433,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