Cherish: Less boring heads up option [2/2]

Change-Id: Icdac0d6fa6615c845edff0e3c0d9dc1ab7b69941
This commit is contained in:
ezio84
2020-05-23 14:42:54 +05:30
committed by Hung Phan
parent acd7bb7753
commit e9dcd06e4d
5 changed files with 39 additions and 16 deletions

View File

@@ -118,15 +118,6 @@ public class HeadsUp extends SettingsPreferenceFragment
Settings.System.HEADS_UP_NOTIFICATION_SNOOZE, defaultSnooze);
mHeadsUpSnoozeTime.setValue(String.valueOf(headsUpSnooze));
updateHeadsUpSnoozeTimeSummary(headsUpSnooze);
int defaultSnooze = systemUiResources.getInteger(systemUiResources.getIdentifier(
"com.android.systemui:integer/heads_up_default_snooze_length_ms", null, null));
mHeadsUpSnoozeTime = (ListPreference) findPreference(PREF_HEADS_UP_SNOOZE_TIME);
mHeadsUpSnoozeTime.setOnPreferenceChangeListener(this);
int headsUpSnooze = Settings.System.getInt(getContentResolver(),
Settings.System.HEADS_UP_NOTIFICATION_SNOOZE, defaultSnooze);
mHeadsUpSnoozeTime.setValue(String.valueOf(headsUpSnooze));
updateHeadsUpSnoozeTimeSummary(headsUpSnooze);
}
@Override