mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Allow user gesture to take priority over taskbar translation reset animnatiuon.
Bug: 273948325
Test: open overview
tap to open main app
quickly swipe up to show taskbar
Change-Id: I0bbb3a354baf9b56652f029a357d8a5803281da5
This commit is contained in:
@@ -564,7 +564,7 @@ public class TaskbarLauncherStateController {
|
||||
long resetDuration = mControllers.taskbarStashController.isInApp()
|
||||
? duration
|
||||
: duration / 2;
|
||||
if (!mControllers.taskbarTranslationController.willAnimateToZeroBefore(resetDuration)
|
||||
if (mControllers.taskbarTranslationController.shouldResetBackToZero(resetDuration)
|
||||
&& (isAnimatingToLauncher() || mLauncherState == LauncherState.NORMAL)) {
|
||||
animatorSet.play(mControllers.taskbarTranslationController
|
||||
.createAnimToResetTranslation(resetDuration));
|
||||
|
||||
Reference in New Issue
Block a user