Add FLAG_DELAY_TASKBAR_BG_TAG to restrict when taskbar bg anim gets delayed.
We set it only when user swipes up to unstash. Fixes: 360778703 Test: swipe up to home, long click on taskbar icon before it settles Flag: com.android.launcher3.enable_scaling_reveal_home_animation Change-Id: I24ff466ee6730e3739d85307363567cfa1455cbf
This commit is contained in:
1 parent
b41def0366
commit
86a4b653b9
3 files changed
+64
-25
No files matched your search
@@ -184,7 +184,7 @@ public class TaskbarUnstashInputConsumer extends DelegateInputConsumer {
|
||||
if (!mHasPassedTaskbarNavThreshold && passedTaskbarNavThreshold
|
||||
&& !mGestureState.isInExtendedSlopRegion()) {
|
||||
mHasPassedTaskbarNavThreshold = true;
|
||||
mTaskbarActivityContext.onSwipeToUnstashTaskbar();
|
||||
mTaskbarActivityContext.onSwipeToUnstashTaskbar(true);
|
||||
}
|
||||
|
||||
if (dY < 0) {
|
||||
@@ -287,7 +287,7 @@ public class TaskbarUnstashInputConsumer extends DelegateInputConsumer {
|
||||
// start a single unstash timeout if hovering bottom edge under the hinted taskbar.
|
||||
if (!sUnstashHandler.hasMessagesOrCallbacks()) {
|
||||
sUnstashHandler.postDelayed(() -> {
|
||||
mTaskbarActivityContext.onSwipeToUnstashTaskbar();
|
||||
mTaskbarActivityContext.onSwipeToUnstashTaskbar(false);
|
||||
mIsStashedTaskbarHovered = false;
|
||||
}, HOVER_TASKBAR_UNSTASH_TIMEOUT);
|
||||
}
|
||||
@@ -315,7 +315,7 @@ public class TaskbarUnstashInputConsumer extends DelegateInputConsumer {
|
||||
startStashedTaskbarHover(/* isHovered = */ true);
|
||||
} else if (mBottomEdgeBounds.contains(x, y)) {
|
||||
// If hover screen's bottom edge not below the stashed taskbar, unstash it.
|
||||
mTaskbarActivityContext.onSwipeToUnstashTaskbar();
|
||||
mTaskbarActivityContext.onSwipeToUnstashTaskbar(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user