Tutorial improvement for Accessibility shortcut (2/n).
Update UI widgets to meet the new design. Bug: 148989018 Test: manual test Change-Id: Ife42995af193db6746135d29f6fa1ad452d265a6
This commit is contained in:
@@ -164,16 +164,6 @@ public class ToggleAccessibilityServicePreferenceFragment extends
|
||||
this::onDialogButtonFromDisableToggleClicked);
|
||||
break;
|
||||
}
|
||||
case DialogEnums.LAUNCH_ACCESSIBILITY_TUTORIAL: {
|
||||
if (AccessibilityUtil.isGestureNavigateEnabled(getPrefContext())) {
|
||||
mDialog = AccessibilityGestureNavigationTutorial
|
||||
.showGestureNavigationTutorialDialog(getPrefContext());
|
||||
} else {
|
||||
mDialog = AccessibilityGestureNavigationTutorial
|
||||
.showAccessibilityButtonTutorialDialog(getPrefContext());
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
mDialog = super.onCreateDialog(dialogId);
|
||||
}
|
||||
@@ -307,6 +297,7 @@ public class ToggleAccessibilityServicePreferenceFragment extends
|
||||
} else {
|
||||
AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), shortcutTypes,
|
||||
mComponentName);
|
||||
showPopupDialog(DialogEnums.LAUNCH_ACCESSIBILITY_TUTORIAL);
|
||||
}
|
||||
} else {
|
||||
AccessibilityUtil.optOutAllValuesFromSettings(getPrefContext(), shortcutTypes,
|
||||
@@ -420,6 +411,9 @@ public class ToggleAccessibilityServicePreferenceFragment extends
|
||||
final int shortcutTypes = getUserShortcutTypes(getPrefContext(), UserShortcutType.SOFTWARE);
|
||||
AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), shortcutTypes, mComponentName);
|
||||
|
||||
mIsDialogShown.set(false);
|
||||
showPopupDialog(DialogEnums.LAUNCH_ACCESSIBILITY_TUTORIAL);
|
||||
|
||||
mDialog.dismiss();
|
||||
|
||||
mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext()));
|
||||
|
Reference in New Issue
Block a user