From 9b3028699a76b6751bc1452f1b994305006a1f23 Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Thu, 6 Jan 2022 15:48:21 +0800 Subject: [PATCH] Fix unknown items issue when using Switch Access Switch access finds the actionable item in parent view, however, it can't find any readable text so it speaks unknown item. To solve this problem, we have to set focusable attribute as false for child views, so they will be grouped in the parent view together. Then, Switch Access can recognize the text info with title and learn more. Test: Play around the switch access and talkback. Both can speak correct message in the footer. Fix: 187241610 Bug: 209528395 Change-Id: I20a8bfa1fe1546170d254deaaff42cd4de180f5c --- .../FooterPreference/res/layout-v31/preference_footer.xml | 1 - .../FooterPreference/res/layout/preference_footer.xml | 1 - .../src/com/android/settingslib/widget/FooterPreference.java | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml b/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml index e586dbb7770c5..b1276303b801b 100644 --- a/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml +++ b/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml @@ -24,7 +24,6 @@ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" android:background="?android:attr/selectableItemBackground" android:orientation="vertical" - android:importantForAccessibility = "no" android:clipToPadding="false">