Skip to content

Commit 3a3da14

Browse files
committed
Revert "disable notification cooldown by default"
This reverts commit 89239cb.
1 parent 89239cb commit 3a3da14

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/SystemUI/customization/src/com/android/systemui/shared/notifications/data/repository/NotificationSettingsRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class NotificationSettingsRepository(
7171
.stateIn(
7272
scope = backgroundScope,
7373
started = SharingStarted.Eagerly,
74-
initialValue = false,
74+
initialValue = true,
7575
)
7676

7777
/** The default duration for DND mode when enabled. See [Settings.Secure.ZEN_DURATION]. */

packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/CommonVisualInterruptionSuppressors.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class AvalancheSuppressor(
485485
return isEnabledFromFlow
486486
}
487487
val isEnabled =
488-
systemSettings.getInt(Settings.System.NOTIFICATION_COOLDOWN_ENABLED, /* def */ 0) == 1
488+
systemSettings.getInt(Settings.System.NOTIFICATION_COOLDOWN_ENABLED, /* def */ 1) == 1
489489
if (isEnabled == isEnabledFromFlow) {
490490
isCooldownFlowInSync = true
491491
}

services/core/java/com/android/server/notification/NotificationAttentionHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public final class NotificationAttentionHelper {
102102

103103
private static final float DEFAULT_VOLUME = 1.0f;
104104
// TODO (b/291899544): remove for release
105-
private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED = 0;
106-
private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED_FOR_WORK = 0;
105+
private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED = 1;
106+
private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED_FOR_WORK = 1;
107107
private static final int DEFAULT_NOTIFICATION_COOLDOWN_ALL = 1;
108108
private static final int DEFAULT_NOTIFICATION_COOLDOWN_VIBRATE_UNLOCKED = 0;
109109

0 commit comments

Comments
 (0)