From ef35e84d1940cc9fcf9f17cf0df2fc138986f19e Mon Sep 17 00:00:00 2001 From: Jagrut Desai Date: Tue, 3 Jan 2023 15:50:54 -0500 Subject: [PATCH] Checking can start system gesture before creation of TaskbarStashInputConsumer, so that taskbar does not show up when user performs swipe up from lock screen or notification panel. Test: visual(video in buganizer) Fix:261524189, 262589756 Change-Id: I5252281025953753f9184f1b19c534513b5800fa --- .../src/com/android/quickstep/TouchInteractionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 5d17cc77f4..08a0ab3fb8 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -800,7 +800,7 @@ public class TouchInteractionService extends Service // If Taskbar is present, we listen for long press to unstash it. TaskbarActivityContext tac = mTaskbarManager.getCurrentActivityContext(); - if (tac != null) { + if (tac != null && canStartSystemGesture) { reasonString.append(NEWLINE_PREFIX) .append(reasonPrefix) .append(SUBSTRING_PREFIX)