Loading core/java/android/service/notification/NotificationListenerService.java +11 −0 Original line number Diff line number Diff line Loading @@ -1900,6 +1900,17 @@ public abstract class NotificationListenerService extends Service { mIsBubble = isBubble; } /** * @hide */ public @NonNull Ranking withAudiblyAlertedInfo(@Nullable Ranking previous) { if (previous != null && previous.mLastAudiblyAlertedMs > 0 && this.mLastAudiblyAlertedMs <= 0) { this.mLastAudiblyAlertedMs = previous.mLastAudiblyAlertedMs; } return this; } /** * @hide */ Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java +1 −1 Original line number Diff line number Diff line Loading @@ -282,7 +282,7 @@ public final class NotificationEntry extends ListEntry { + " doesn't match existing key " + mKey); } mRanking = ranking; mRanking = ranking.withAudiblyAlertedInfo(mRanking); } /* Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -106,9 +106,9 @@ public abstract class HeadsUpManager extends AlertingNotificationManager { public void updateNotification(@NonNull String key, boolean alert) { super.updateNotification(key, alert); AlertEntry alertEntry = getHeadsUpEntry(key); if (alert && alertEntry != null) { setEntryPinned((HeadsUpEntry) alertEntry, shouldHeadsUpBecomePinned(alertEntry.mEntry)); HeadsUpEntry headsUpEntry = getHeadsUpEntry(key); if (alert && headsUpEntry != null) { setEntryPinned(headsUpEntry, shouldHeadsUpBecomePinned(headsUpEntry.mEntry)); } } Loading Loading
core/java/android/service/notification/NotificationListenerService.java +11 −0 Original line number Diff line number Diff line Loading @@ -1900,6 +1900,17 @@ public abstract class NotificationListenerService extends Service { mIsBubble = isBubble; } /** * @hide */ public @NonNull Ranking withAudiblyAlertedInfo(@Nullable Ranking previous) { if (previous != null && previous.mLastAudiblyAlertedMs > 0 && this.mLastAudiblyAlertedMs <= 0) { this.mLastAudiblyAlertedMs = previous.mLastAudiblyAlertedMs; } return this; } /** * @hide */ Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java +1 −1 Original line number Diff line number Diff line Loading @@ -282,7 +282,7 @@ public final class NotificationEntry extends ListEntry { + " doesn't match existing key " + mKey); } mRanking = ranking; mRanking = ranking.withAudiblyAlertedInfo(mRanking); } /* Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -106,9 +106,9 @@ public abstract class HeadsUpManager extends AlertingNotificationManager { public void updateNotification(@NonNull String key, boolean alert) { super.updateNotification(key, alert); AlertEntry alertEntry = getHeadsUpEntry(key); if (alert && alertEntry != null) { setEntryPinned((HeadsUpEntry) alertEntry, shouldHeadsUpBecomePinned(alertEntry.mEntry)); HeadsUpEntry headsUpEntry = getHeadsUpEntry(key); if (alert && headsUpEntry != null) { setEntryPinned(headsUpEntry, shouldHeadsUpBecomePinned(headsUpEntry.mEntry)); } } Loading