mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Merge changes from topic "presubmit-am-7a77b5bffdb04bf38bcec9ec17d4d6ee" into tm-qpr-dev-plus-aosp
* changes:
[automerge] Revert "Fix bug where taskbar is translated during hotseat handoff." 2p: fa8cc97e5f
Revert "Fix bug where taskbar is translated during hotseat handoff."
This commit is contained in:
@@ -642,14 +642,8 @@ public class TaskbarLauncherStateController {
|
||||
long resetDuration = mControllers.taskbarStashController.isInApp()
|
||||
? duration
|
||||
: duration / 2;
|
||||
boolean shouldReset =
|
||||
mControllers.taskbarTranslationController.shouldResetBackToZero(resetDuration);
|
||||
boolean goingToLauncher = isAnimatingToLauncher();
|
||||
boolean isNormalState = mLauncherState == LauncherState.NORMAL;
|
||||
// Taskbar should always reset when animating to launcher in normal state to ensure there
|
||||
// is no jump during the handoff to the hotseat.
|
||||
if ((goingToLauncher && isNormalState)
|
||||
|| (shouldReset && (goingToLauncher || isNormalState))) {
|
||||
if (mControllers.taskbarTranslationController.shouldResetBackToZero(resetDuration)
|
||||
&& (isAnimatingToLauncher() || mLauncherState == LauncherState.NORMAL)) {
|
||||
animatorSet.play(mControllers.taskbarTranslationController
|
||||
.createAnimToResetTranslation(resetDuration));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user