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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user