Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5523175f authored by Jon Miranda's avatar Jon Miranda Committed by Android (Google) Code Review
Browse files

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: fa8cc97e
  Revert "Fix bug where taskbar is translated during hotseat handoff."
parents 42065735 8fa4d620
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -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));
        }