Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e48ebb97 authored by jasonwshsu's avatar jasonwshsu
Browse files

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
parent fd7153ed
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);