From 2026c800165865b3323f449a2d9cda22e9231598 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Mon, 24 Jun 2024 13:41:37 +0100 Subject: [PATCH] Disable Select mode from Menu in fake landscape Fix: 349072279 Test: Verify that Select mode is only available from Menu in grid only Overview on tablets Flag: EXEMPT bugfix Change-Id: Icd0d8303547b45d3653696812c51ce2c2bfd410b --- .../com/android/quickstep/TaskShortcutFactory.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TaskShortcutFactory.java b/quickstep/src/com/android/quickstep/TaskShortcutFactory.java index fd141c3229..d18c86ea8e 100644 --- a/quickstep/src/com/android/quickstep/TaskShortcutFactory.java +++ b/quickstep/src/com/android/quickstep/TaskShortcutFactory.java @@ -492,18 +492,8 @@ public interface TaskShortcutFactory { TaskContainer taskContainer) { boolean isTablet = container.getDeviceProfile().isTablet; boolean isGridOnlyOverview = isTablet && Flags.enableGridOnlyOverview(); - // Extra conditions if it's not grid-only overview if (!isGridOnlyOverview) { - RecentsOrientedState orientedState = taskContainer.getTaskView().getOrientedState(); - boolean isFakeLandscape = !orientedState.isRecentsActivityRotationAllowed() - && orientedState.getTouchRotation() != ROTATION_0; - if (!isFakeLandscape) { - return null; - } - // Disallow "Select" when swiping up from landscape due to rotated thumbnail. - if (orientedState.getDisplayRotation() != ROTATION_0) { - return null; - } + return null; } SystemShortcut modalStateSystemShortcut =