From 8798440600bfdf4c166b8d36f9e0bf77ca6d5d29 Mon Sep 17 00:00:00 2001 From: Becky Qiu Date: Tue, 16 Jun 2020 15:18:41 -0700 Subject: [PATCH] [Overview Actions] Disable swiping on modal recentsView for talkback. When it is select mode, disabling swiping on the parent container for a11y to avoid exiting select mode UI. This will only disable swiping and talkback on other tasks and the cleanall button, but will keep the modal task container app info and content description, also keep the action buttons description working. Test: local Bug: 155947513 Change-Id: I6d513c7eb3e7deeaa233550749f8be0d95e56daf --- .../src/com/android/quickstep/views/RecentsView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java index 2066d52c36..43e9660ba6 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java @@ -1728,6 +1728,8 @@ public abstract class RecentsView extends PagedView impl setPivotY(mTempPointF.y); setTaskModalness(mTaskModalness); updatePageOffsets(); + setImportantForAccessibility(isModal() ? IMPORTANT_FOR_ACCESSIBILITY_NO + : IMPORTANT_FOR_ACCESSIBILITY_AUTO); } private void updatePageOffsets() {