From d4864e5cbc61874f7ad1213ec56b7430a801fbde Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Fri, 1 Oct 2021 18:23:25 +0100 Subject: [PATCH] Don't snap to task when tapping task icon in overview grid - Open task menu directly instead of snapping to task, as there are spaces to do so unlike small screen Fix: 201428316 Test: Tap task icon with clear all button shown in overview grid, no snapping Test: Tap task icon with clear all button shown in non-grid overview, snapped to last task Change-Id: Ief79f7c758c4109e5c7722b2f35647db98a9f05c --- quickstep/src/com/android/quickstep/views/TaskView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 7b4bf6251e..ea8282fc6e 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -795,7 +795,8 @@ public class TaskView extends FrameLayout implements Reusable { return true; } - if (!getRecentsView().isClearAllHidden()) { + if (!mActivity.getDeviceProfile().overviewShowAsGrid + && !getRecentsView().isClearAllHidden()) { getRecentsView().snapToPage(getRecentsView().indexOfChild(this)); return false; } else {