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:
@@ -183,6 +183,14 @@ public class DreamSettings extends SettingsPreferenceFragment implements
|
||||
return super.onCreateDialog(dialogId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDialogMetricsCategory(int dialogId) {
|
||||
if (dialogId == DIALOG_WHEN_TO_DREAM) {
|
||||
return MetricsEvent.DIALOG_DREAM_START_DELAY;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private Dialog createWhenToDreamDialog() {
|
||||
final CharSequence[] items = {
|
||||
mContext.getString(R.string.screensaver_settings_summary_dock),
|
||||
|
Reference in New Issue
Block a user