From b981068248d058bf20f394bf97ff4bc61c4d97c2 Mon Sep 17 00:00:00 2001 From: tmfang Date: Thu, 27 Jun 2019 17:50:20 +0800 Subject: [PATCH] Fix talkback issue about announcing wrong number of items From hierarchical view, one of root cause is PreferenceCategory. Looks like PreferenceCategory generates an invisible space when we add a footerPreference as a child. So, we remove PreferenceCategory directly, and declard "allow divider" attribute for neccessary preferences. Test: Visual Fixes: 130396913 Change-Id: I6d56ac165633aa211e794e07417821066380d041 --- res/layout/face_enroll_button.xml | 3 ++- res/layout/face_remove_button.xml | 3 ++- res/xml/security_settings_face.xml | 13 ++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/res/layout/face_enroll_button.xml b/res/layout/face_enroll_button.xml index 2a6d676dac8..f40c42c4bf1 100644 --- a/res/layout/face_enroll_button.xml +++ b/res/layout/face_enroll_button.xml @@ -17,7 +17,8 @@ + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight">