From 38dae63910a01f697900464a3c7e4afe03b63381 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 12 Oct 2022 18:16:50 +0100 Subject: [PATCH] Only support manual stashing while in app - For taskbar in overview, don't allow stashing Fix: 253042515 Test: With taskbar in overview, long press do nothing. Taskbar is still stashable in app Test: Without taskbar in overview, taskbar still transform to nav handle in overview Change-Id: I8f353a473a8570df72acda2338c4b984a69dc5c0 --- .../com/android/launcher3/taskbar/TaskbarStashController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java index 98a1b016ba..9fd2bf90b3 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java @@ -242,6 +242,7 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba */ protected boolean supportsManualStashing() { return supportsVisualStashing() + && isInApp() && (!Utilities.IS_RUNNING_IN_TEST_HARNESS || mEnableManualStashingDuringTests); }