Correct Magnification shortcut title
Root Cause: Magnification has its own ShortcutPreference, but we did not update correct title with getShortcutTitle() Solution: Call setTitle(getShortcutTitle()) in initShortcutPreference() Bug: 228752572 Test: manual test Change-Id: I85b09a22032bad0a0c840590a98be88538a0499b
This commit is contained in:
@@ -470,9 +470,7 @@ public class ToggleScreenMagnificationPreferenceFragment extends
|
||||
mShortcutPreference.setKey(getShortcutPreferenceKey());
|
||||
mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext()));
|
||||
mShortcutPreference.setOnClickCallback(this);
|
||||
|
||||
final CharSequence title = getString(R.string.accessibility_shortcut_title, mPackageName);
|
||||
mShortcutPreference.setTitle(title);
|
||||
mShortcutPreference.setTitle(getShortcutTitle());
|
||||
|
||||
final PreferenceCategory generalCategory = findPreference(KEY_GENERAL_CATEGORY);
|
||||
generalCategory.addPreference(mShortcutPreference);
|
||||
|
Reference in New Issue
Block a user