From 4829a88ed45a93fb2f640c6e37cd5e5803863efe Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 4 Aug 2016 17:55:35 -0700 Subject: [PATCH] Forcing drag layer to be non accessible. Setting a touch delegate makes a view to become accessible, if its set to auto. This was making drayLayer accessible causing Talkback to speak out every item on the draglayer when window focus changes Bug: 30670702 Change-Id: Ifcba4c02b124166f9ca69c4244b9d20d7a7acaa5 --- res/layout-land/launcher.xml | 1 + res/layout-port/launcher.xml | 1 + res/layout-sw720dp/launcher.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 5c1fec7e31..2e64f6c3ff 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -27,6 +27,7 @@ android:id="@+id/drag_layer" android:clipChildren="false" android:clipToPadding="false" + android:importantForAccessibility="no" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index b394fa8359..d6e2802e29 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -27,6 +27,7 @@ diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index b59c715d7f..fef80de640 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -27,6 +27,7 @@ android:id="@+id/drag_layer" android:clipChildren="false" android:clipToPadding="false" + android:importantForAccessibility="no" android:layout_width="match_parent" android:layout_height="match_parent">