Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/HeadsUpCoordinator.java +1 −3 Original line number Diff line number Diff line Loading @@ -204,10 +204,8 @@ public class HeadsUpCoordinator implements Coordinator { public void onHeadsUpStateChanged(NotificationEntry entry, boolean isHeadsUp) { NotificationEntry newHUN = mHeadsUpManager.getTopEntry(); if (!Objects.equals(mCurrentHun, newHUN)) { endNotifLifetimeExtension(); mCurrentHun = newHUN; mNotifPromoter.invalidateList(); mNotifSectioner.invalidateList(); endNotifLifetimeExtension(); } if (!isHeadsUp) { mHeadsUpViewBinder.unbindHeadsUpView(entry); Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifLifetimeExtender.java +5 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,10 @@ public interface NotifLifetimeExtender { /** Callback for notifying the NotifCollection that a lifetime extension has expired.*/ interface OnEndLifetimeExtensionCallback { /** * Stop extending the lifetime of `entry` with `extender` and then immediately re-evaluates * whether to continue lifetime extending this notification or to remove it. */ void onEndLifetimeExtension(NotifLifetimeExtender extender, NotificationEntry entry); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/HeadsUpCoordinator.java +1 −3 Original line number Diff line number Diff line Loading @@ -204,10 +204,8 @@ public class HeadsUpCoordinator implements Coordinator { public void onHeadsUpStateChanged(NotificationEntry entry, boolean isHeadsUp) { NotificationEntry newHUN = mHeadsUpManager.getTopEntry(); if (!Objects.equals(mCurrentHun, newHUN)) { endNotifLifetimeExtension(); mCurrentHun = newHUN; mNotifPromoter.invalidateList(); mNotifSectioner.invalidateList(); endNotifLifetimeExtension(); } if (!isHeadsUp) { mHeadsUpViewBinder.unbindHeadsUpView(entry); Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifLifetimeExtender.java +5 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,10 @@ public interface NotifLifetimeExtender { /** Callback for notifying the NotifCollection that a lifetime extension has expired.*/ interface OnEndLifetimeExtensionCallback { /** * Stop extending the lifetime of `entry` with `extender` and then immediately re-evaluates * whether to continue lifetime extending this notification or to remove it. */ void onEndLifetimeExtension(NotifLifetimeExtender extender, NotificationEntry entry); } }