From 78995994b9b0afbc4c4705e41d1c4ac944e557f2 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Fri, 5 Oct 2012 14:02:36 -0700 Subject: Updating the screen magnification strings. bug:7295457 Change-Id: Idef3950b975fbb8071067c165fa52358aa6b828d --- res/values/strings.xml | 15 ++------------- src/com/android/settings/AccessibilitySettings.java | 4 ++-- src/com/android/settings/LocalePicker.java | 2 +- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 1f94287..1343b67 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3091,20 +3091,9 @@ System - Screen magnification + Magnification gestures - - When screen magnification is on, you can\:\n\n - - Zoom: Triple-tap & hold.\n - Zoom & pan: Triple-tap & hold, then drag your finger.\n - Toggle zoom in or out: Triple tap & release.\n\n - - While you\'re zoomed in, you can:\n - - Pan: Drag two or more fingers across the screen.\n - Adjust zoom level: Pinch or expand using two or more fingers. - + When this feature is turned on, you can zoom in and out by triple-tapping the screen.\n\nWhile zoomed in, you can:\n\n\nYou can also temporarily magnify what\'s under your finger by triple-tapping and holding. In this magnified state, you can drag your finger to explore different parts of the screen. Lift your finger to return to your previous state.\n\nNote: Triple-tap for magnification works everywhere except the keyboard and navigation bar. Accessibility shortcut diff --git a/src/com/android/settings/AccessibilitySettings.java b/src/com/android/settings/AccessibilitySettings.java index 266621f..d64a092 100644 --- a/src/com/android/settings/AccessibilitySettings.java +++ b/src/com/android/settings/AccessibilitySettings.java @@ -282,7 +282,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements Bundle extras = mDisplayMagnificationPreferenceScreen.getExtras(); extras.putString(EXTRA_TITLE, getString( R.string.accessibility_screen_magnification_title)); - extras.putString(EXTRA_SUMMARY, getString( + extras.putCharSequence(EXTRA_SUMMARY, getActivity().getResources().getText( R.string.accessibility_screen_magnification_summary)); extras.putBoolean(EXTRA_CHECKED, Settings.Secure.getInt(getContentResolver(), Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, 0) == 1); @@ -1005,7 +1005,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements getActivity().getActionBar().setTitle(title); } // Summary. - String summary = arguments.getString(EXTRA_SUMMARY); + CharSequence summary = arguments.getCharSequence(EXTRA_SUMMARY); mSummaryPreference.setSummary(summary); } } diff --git a/src/com/android/settings/LocalePicker.java b/src/com/android/settings/LocalePicker.java index 5827ef7..0afa4d5 100644 --- a/src/com/android/settings/LocalePicker.java +++ b/src/com/android/settings/LocalePicker.java @@ -76,7 +76,7 @@ public class LocalePicker extends com.android.internal.app.LocalePicker mDialogFragment.show(getActivity().getFragmentManager(), Integer.toString(dialogId)); } - public Dialog onCreateDialog(int dialogId) { + public Dialog onCreateDialog(final int dialogId) { return Utils.buildGlobalChangeWarningDialog(getActivity(), R.string.global_locale_change_title, new Runnable() { -- cgit v1.1