From 9462c0b89133f92c3f78ae52e6e20cb9f6c44387 Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Thu, 16 May 2019 09:26:33 -0400 Subject: [PATCH] Sharesheet - a11y fix for az label The row containing 'Apps list' should not be enabled in the listview in order to not appear clickable to TalkBack. Bug: 132861329 Test: Manual Change-Id: Ie7ba64f289def9839e013f05df3070d0e4a43a90 --- core/java/com/android/internal/app/ChooserActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/com/android/internal/app/ChooserActivity.java b/core/java/com/android/internal/app/ChooserActivity.java index 5924fb15d8aff..36445dec0a3e8 100644 --- a/core/java/com/android/internal/app/ChooserActivity.java +++ b/core/java/com/android/internal/app/ChooserActivity.java @@ -2655,7 +2655,7 @@ public class ChooserActivity extends ResolverActivity { @Override public boolean isEnabled(int position) { int viewType = getItemViewType(position); - if (viewType == VIEW_TYPE_CONTENT_PREVIEW) { + if (viewType == VIEW_TYPE_CONTENT_PREVIEW || viewType == VIEW_TYPE_AZ_LABEL) { return false; } return true;