Ensure accessibility shortcut preference summaries are not focusable

In this case, keyboard focusability causes TalkBack to exclude summary
text from the grouped content surfaced when focusing the top-level list
item.

Bug: 400538324
Test: Manually with TalkBack, including ClickableSpan in summaries
Flag: EXEMPT bug fix
Change-Id: Ib8bc3276aee857121381de7bc4e23e05cd512383
This commit is contained in:
Casey Burkhardt
2025-03-03 20:34:36 -05:00
parent 0aa7850791
commit 046b5038b9

View File

@@ -108,6 +108,7 @@ public class ShortcutOptionPreference extends CheckBoxPreference {
if (summaryView != null) {
mSummaryTextLineHeight = summaryView.getLineHeight();
summaryView.setMovementMethod(LinkMovementMethod.getInstance());
summaryView.setFocusable(false);
}
syncSummaryView(holder);