From 0a85c12fcaaae000f16d5c3eb9e6ddba560a0518 Mon Sep 17 00:00:00 2001 From: menghanli Date: Sun, 13 Feb 2022 13:26:43 +0800 Subject: [PATCH] Polish humanize strings for magnification page - Add intro for purpose or behavior - Update footer description on usage, availability, or limitations Bug: 218409016 Test: Manual testing Change-Id: I1259fc330caab304cc4ec22778e6a3e3ae13f269 --- res/values/strings.xml | 13 ++++++++----- .../MagnificationGesturesPreferenceController.java | 5 ++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 82bccee92b7..48f42593fba 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5246,9 +5246,11 @@ Tap 3 times to zoom Tap a button to zoom + + Quickly zoom in on the screen to make content larger -
+ To zoom in:
{0,number,integer}. Use shortcut to start magnification
{1,number,integer}. Tap the screen
@@ -5256,10 +5258,11 @@ {3,number,integer}. Pinch with 2 fingers to adjust zoom
{4,number,integer}. Use shortcut to stop magnification

To zoom in temporarily:
- {0,number,integer}. Use shortcut to start magnification
- {1,number,integer}. Touch & hold anywhere on the screen
- {2,number,integer}. Drag finger to move around screen
- {3,number,integer}. Lift finger to stop magnification + {0,number,integer}. Make sure your magnification type is set to full screen
+ {1,number,integer}. Use shortcut to start magnification
+ {2,number,integer}. Touch & hold anywhere on the screen
+ {3,number,integer}. Drag finger to move around screen
+ {4,number,integer}. Lift finger to stop magnification ]]>
diff --git a/src/com/android/settings/accessibility/MagnificationGesturesPreferenceController.java b/src/com/android/settings/accessibility/MagnificationGesturesPreferenceController.java index 37d09a70a99..01ee249cc2d 100644 --- a/src/com/android/settings/accessibility/MagnificationGesturesPreferenceController.java +++ b/src/com/android/settings/accessibility/MagnificationGesturesPreferenceController.java @@ -100,7 +100,10 @@ public class MagnificationGesturesPreferenceController extends TogglePreferenceC extras.putInt(AccessibilitySettings.EXTRA_TITLE_RES, R.string.accessibility_screen_magnification_gestures_title); - String summary = context.getString(R.string.accessibility_screen_magnification_summary); + String intro = context.getString(R.string.accessibility_screen_magnification_intro_text); + extras.putCharSequence(AccessibilitySettings.EXTRA_INTRO, intro); + + String summary = context.getString(R.string.accessibility_screen_magnification_summary); final Object[] numberArguments = {1, 2, 3, 4, 5}; summary = MessageFormat.format(summary, numberArguments); extras.putCharSequence(AccessibilitySettings.EXTRA_HTML_DESCRIPTION, summary);