Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0001981 authored by Iavor-Valentin Iftime's avatar Iavor-Valentin Iftime Committed by Android (Google) Code Review
Browse files

Merge "Enable polite notifications by default for work profiles" into main

parents a41d0ae6 83249f45
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ public final class NotificationAttentionHelper {
    private static final float DEFAULT_VOLUME = 1.0f;
    // TODO (b/291899544): remove for release
    private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED = 1;
    private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED_FOR_WORK = 0;
    private static final int DEFAULT_NOTIFICATION_COOLDOWN_ENABLED_FOR_WORK = 1;
    private static final int DEFAULT_NOTIFICATION_COOLDOWN_ALL = 1;
    private static final int DEFAULT_NOTIFICATION_COOLDOWN_VIBRATE_UNLOCKED = 0;

@@ -1405,6 +1405,7 @@ public final class NotificationAttentionHelper {
                long timestampMillis) {
            super.setLastNotificationUpdateTimeMs(record, timestampMillis);
            mLastNotificationTimestamp = timestampMillis;
            mAppStrategy.setLastNotificationUpdateTimeMs(record, timestampMillis);
        }

        long getLastNotificationUpdateTimeMs(final NotificationRecord record) {