Talkback shouldn't speak action for description.

Fix for Select-To-Speak, Talkback, and Magify app.

Bug: 147793421
Bug: 147709365
Bug: 147708796
Test: Manual test
Change-Id: Id7b62c96df869cbd35f2ffbb442b0a4eb7e0393d
This commit is contained in:
menghanli
2020-01-17 15:55:59 +08:00
parent 846f739465
commit 097472fc4a

View File

@@ -119,6 +119,7 @@ public abstract class ToggleFeaturePreferenceFragment extends SettingsPreference
if (mStaticDescription != null) { if (mStaticDescription != null) {
final StaticTextPreference staticTextPreference = new StaticTextPreference( final StaticTextPreference staticTextPreference = new StaticTextPreference(
preferenceScreen.getContext()); preferenceScreen.getContext());
staticTextPreference.setSelectable(/* selectable= */ false);
staticTextPreference.setSummary(mStaticDescription); staticTextPreference.setSummary(mStaticDescription);
preferenceScreen.addPreference(staticTextPreference); preferenceScreen.addPreference(staticTextPreference);
} }
@@ -130,6 +131,7 @@ public abstract class ToggleFeaturePreferenceFragment extends SettingsPreference
final HtmlTextPreference htmlTextPreference = new HtmlTextPreference( final HtmlTextPreference htmlTextPreference = new HtmlTextPreference(
preferenceScreen.getContext()); preferenceScreen.getContext());
htmlTextPreference.setSelectable(/* selectable= */ false);
htmlTextPreference.setSummary(mHtmlDescription); htmlTextPreference.setSummary(mHtmlDescription);
htmlTextPreference.setImageGetter(mImageGetter); htmlTextPreference.setImageGetter(mImageGetter);
htmlTextPreference.setUnsupportedTagList(unsupportedTagList); htmlTextPreference.setUnsupportedTagList(unsupportedTagList);