Unified service and shortcut state summary on a11y settings page.
Bug: 210026562 Test: manual Test: atest Change-Id: I4d5ff6b10d6bfd2fe6b3de1849d00a9d084bf269
This commit is contained in:
@@ -751,9 +751,12 @@ public class ToggleScreenMagnificationPreferenceFragment extends
|
||||
*/
|
||||
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);
|
||||
int shortcutType = getUserShortcutTypeFromSettings(context);
|
||||
return context.getString(
|
||||
R.string.preference_summary_default_combination,
|
||||
shortcutType != AccessibilityUtil.UserShortcutType.EMPTY
|
||||
? context.getString(R.string.accessibility_summary_shortcut_enabled)
|
||||
: context.getString(R.string.generic_accessibility_feature_shortcut_off),
|
||||
context.getText(R.string.magnification_feature_summary));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user