From 1303790f40c887bf89574e2355155ca18e5a8cf9 Mon Sep 17 00:00:00 2001 From: Yanting Yang Date: Tue, 23 Jul 2019 17:14:56 +0800 Subject: [PATCH] Fix text format issue in the Accessibility magnification - Use getText() to apply html format to text view. - Remove extra bullets from string. Fixes: 138174003 Test: visual, robotests Change-Id: Ia736087224d7a65ebe41ca2ac3fca7064a03f950 --- res/values/strings.xml | 2 +- .../settings/accessibility/ToggleFeaturePreferenceFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index a7d56856484..0e3f11036a5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4851,7 +4851,7 @@ To zoom, quickly tap the screen 3 times.\n\n\nTo zoom temporarily, quickly tap the screen 3 times and hold down your finger on the third tap.\n\n\nYou can\'t zoom in on the keyboard and navigation bar. - When magnification is turned on, you can zoom in on your screen.\n\nTo zoom, start magnification, then tap anywhere on the screen.\n\n\nTo zoom temporarily, start magnification, then touch & hold anywhere on the screen.\n\n\nYou can’t zoom in on the keyboard or navigation bar. + When magnification is turned on, you can zoom in on your screen.\n\nTo zoom, start magnification, then tap anywhere on the screen.\n\n\nTo zoom temporarily, start magnification, then touch & hold anywhere on the screen.\n\n\nYou can’t zoom in on the keyboard or navigation bar. Use accessibility button to open diff --git a/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java b/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java index fba5ddb3112..1feef01b256 100644 --- a/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java +++ b/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java @@ -138,7 +138,7 @@ public abstract class ToggleFeaturePreferenceFragment extends SettingsPreference // Summary. if (arguments.containsKey(AccessibilitySettings.EXTRA_SUMMARY_RES)) { final int summary = arguments.getInt(AccessibilitySettings.EXTRA_SUMMARY_RES); - mFooterPreferenceMixin.createFooterPreference().setTitle(summary); + mFooterPreferenceMixin.createFooterPreference().setTitle(getText(summary)); } else if (arguments.containsKey(AccessibilitySettings.EXTRA_SUMMARY)) { final CharSequence summary = arguments.getCharSequence( AccessibilitySettings.EXTRA_SUMMARY);