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
This commit is contained in:
tmfang
2019-06-27 17:50:20 +08:00
committed by Tsung-Mao Fang
parent eae13f76f7
commit b981068248
3 changed files with 10 additions and 9 deletions

View File

@@ -17,7 +17,8 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight">
<Button
android:id="@+id/security_settings_face_settings_remove_button"