Merge "Fix unknown items issue when using Switch Access"

This commit is contained in:
TreeHugger Robot
2022-01-06 11:07:09 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,6 @@
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical"
android:importantForAccessibility = "no"
android:clipToPadding="false">
<LinearLayout

View File

@@ -23,7 +23,6 @@
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:background="?android:attr/selectableItemBackground"
android:importantForAccessibility = "no"
android:clipToPadding="false">
<LinearLayout

View File

@@ -61,6 +61,7 @@ public class FooterPreference extends Preference {
title.setMovementMethod(new LinkMovementMethod());
title.setClickable(false);
title.setLongClickable(false);
title.setFocusable(false);
if (!TextUtils.isEmpty(mContentDescription)) {
title.setContentDescription(mContentDescription);
}
@@ -79,6 +80,7 @@ public class FooterPreference extends Preference {
if (!TextUtils.isEmpty(mLearnMoreContentDescription)) {
learnMore.setContentDescription(mLearnMoreContentDescription);
}
learnMore.setFocusable(false);
} else {
learnMore.setVisibility(View.GONE);
}