[Hearing device shortcut] Setup shortcut for hearing device
* Hearing aids page need to set restricted mode to DISALLOW_CONFIG_BLUETOOTH, so change AccessibilityShortcutPreferenceFragment to extend RestrictedDashboardFragment * move ShortcutPreference under the device control category for the 1st order Bug: 237625815 Test: make RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityShortcutPreferenceFragmentTest Change-Id: I13da8d979694aeab76d8a10edf1348c0ee7810f6
This commit is contained in:
@@ -48,6 +48,13 @@ public class OneHandedSettings extends AccessibilityShortcutPreferenceFragment {
|
||||
private String mFeatureName;
|
||||
private OneHandedSettingsUtils mUtils;
|
||||
|
||||
/**
|
||||
* One handed settings no need to set any restriction key for pin protected.
|
||||
*/
|
||||
public OneHandedSettings() {
|
||||
super(/* restrictionKey= */ null);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updatePreferenceStates() {
|
||||
OneHandedSettingsUtils.setUserId(UserHandle.myUserId());
|
||||
|
Reference in New Issue
Block a user