Revert "Allow user gesture to take priority over taskbar translation reset animnatiuon."

This reverts commit 41b580bc63.

Bug: 277942460
Test: tablet/foldable device
      check taskbar animation b/w states and during drag
Change-Id: Ib8b362102d08d155d3153b652db47364feb5df0a
This commit is contained in:
Jon Miranda
2023-04-12 13:28:36 -07:00
parent fa8cc97e5f
commit c9a4c1ceae
2 changed files with 6 additions and 17 deletions

View File

@@ -642,7 +642,7 @@ public class TaskbarLauncherStateController {
long resetDuration = mControllers.taskbarStashController.isInApp()
? duration
: duration / 2;
if (mControllers.taskbarTranslationController.shouldResetBackToZero(resetDuration)
if (!mControllers.taskbarTranslationController.willAnimateToZeroBefore(resetDuration)
&& (isAnimatingToLauncher() || mLauncherState == LauncherState.NORMAL)) {
animatorSet.play(mControllers.taskbarTranslationController
.createAnimToResetTranslation(resetDuration));