Update R acessibility assets and strings (2/n)

- Temporary-use template summary by shortcut state

Bug: 148837311
Test: Manual test
Change-Id: Ia720b8f3f317bb1874d6758ebc4fbf4145d0c217
This commit is contained in:
menghanli
2020-03-10 21:15:24 +08:00
parent 42dcad9b2b
commit 19cf6ddff8
5 changed files with 45 additions and 15 deletions

View File

@@ -624,4 +624,17 @@ public class ToggleScreenMagnificationPreferenceFragment extends
}
return shortcutTypes;
}
/**
* Gets the service summary of magnification.
*
* @param context The current context.
*/
public static CharSequence getServiceSummary(Context context) {
// Get the user shortcut type from settings provider.
final int uerShortcutType = getUserShortcutTypeFromSettings(context);
return (uerShortcutType != AccessibilityUtil.UserShortcutType.EMPTY)
? context.getText(R.string.accessibility_summary_shortcut_enabled)
: context.getText(R.string.accessibility_summary_shortcut_disabled);
}
}