Log visibility change for DialogCreatable in Settings.
Bug: 30681529 Test: adb logcat -b events | egrep "(sysui_|notification_)" Test: make RunSettingsRoboTests Change-Id: I51754d258ba1ddfae24323681f21cd02de4dbb4e
This commit is contained in:
@@ -202,6 +202,15 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDialogMetricsCategory(int dialogId) {
|
||||
if (dialogId == DIALOG_ID_ENABLE_WARNING) {
|
||||
return MetricsEvent.DIALOG_ACCESSIBILITY_SERVICE_ENABLE;
|
||||
} else {
|
||||
return MetricsEvent.DIALOG_ACCESSIBILITY_SERVICE_DISABLE;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateSwitchBarToggleSwitch() {
|
||||
final boolean checked = AccessibilityUtils.getEnabledServicesFromSettings(getActivity())
|
||||
.contains(mComponentName);
|
||||
|
Reference in New Issue
Block a user