Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifCollection.java +1 −1 Original line number Diff line number Diff line Loading @@ -621,7 +621,7 @@ public class NotifCollection implements Dumpable { entry.mLifetimeExtenders.clear(); mAmDispatchingToOtherCode = true; for (NotifLifetimeExtender extender : mLifetimeExtenders) { if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { if (extender.maybeExtendLifetime(entry, entry.mCancellationReason)) { mLogger.logLifetimeExtended(entry.getKey(), extender); entry.mLifetimeExtenders.add(extender); } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/GutsCoordinator.kt +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ class GutsCoordinator @Inject constructor( onEndLifetimeExtensionCallback = callback } override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { override fun maybeExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { val isShowingGuts = isCurrentlyShowingGuts(entry) if (isShowingGuts) { notifsExtendingLifetime.add(entry.key) Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/HeadsUpCoordinator.java +1 −1 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ public class HeadsUpCoordinator implements Coordinator { } @Override public boolean shouldExtendLifetime(@NonNull NotificationEntry entry, int reason) { public boolean maybeExtendLifetime(@NonNull NotificationEntry entry, int reason) { boolean extend = !mHeadsUpManager.canRemoveImmediately(entry.getKey()); if (extend) { if (isSticky(entry)) { Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifLifetimeExtender.java +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ public interface NotifLifetimeExtender { * called on all lifetime extenders even if earlier ones return true (in other words, multiple * lifetime extenders can be extending a notification at the same time). */ boolean shouldExtendLifetime(@NonNull NotificationEntry entry, @CancellationReason int reason); boolean maybeExtendLifetime(@NonNull NotificationEntry entry, @CancellationReason int reason); /** * Called by the NotifCollection to inform a lifetime extender that its extension of a notif Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/SelfTrackingLifetimeExtender.kt +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ abstract class SelfTrackingLifetimeExtender( final override fun getName(): String = name final override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { final override fun maybeExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { val shouldExtend = queryShouldExtendLifetime(entry) if (debug) { Log.d(tag, "$name.shouldExtendLifetime(key=${entry.key}, reason=$reason)" + Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifCollection.java +1 −1 Original line number Diff line number Diff line Loading @@ -621,7 +621,7 @@ public class NotifCollection implements Dumpable { entry.mLifetimeExtenders.clear(); mAmDispatchingToOtherCode = true; for (NotifLifetimeExtender extender : mLifetimeExtenders) { if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { if (extender.maybeExtendLifetime(entry, entry.mCancellationReason)) { mLogger.logLifetimeExtended(entry.getKey(), extender); entry.mLifetimeExtenders.add(extender); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/GutsCoordinator.kt +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ class GutsCoordinator @Inject constructor( onEndLifetimeExtensionCallback = callback } override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { override fun maybeExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { val isShowingGuts = isCurrentlyShowingGuts(entry) if (isShowingGuts) { notifsExtendingLifetime.add(entry.key) Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/HeadsUpCoordinator.java +1 −1 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ public class HeadsUpCoordinator implements Coordinator { } @Override public boolean shouldExtendLifetime(@NonNull NotificationEntry entry, int reason) { public boolean maybeExtendLifetime(@NonNull NotificationEntry entry, int reason) { boolean extend = !mHeadsUpManager.canRemoveImmediately(entry.getKey()); if (extend) { if (isSticky(entry)) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifLifetimeExtender.java +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ public interface NotifLifetimeExtender { * called on all lifetime extenders even if earlier ones return true (in other words, multiple * lifetime extenders can be extending a notification at the same time). */ boolean shouldExtendLifetime(@NonNull NotificationEntry entry, @CancellationReason int reason); boolean maybeExtendLifetime(@NonNull NotificationEntry entry, @CancellationReason int reason); /** * Called by the NotifCollection to inform a lifetime extender that its extension of a notif Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/SelfTrackingLifetimeExtender.kt +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ abstract class SelfTrackingLifetimeExtender( final override fun getName(): String = name final override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { final override fun maybeExtendLifetime(entry: NotificationEntry, reason: Int): Boolean { val shouldExtend = queryShouldExtendLifetime(entry) if (debug) { Log.d(tag, "$name.shouldExtendLifetime(key=${entry.key}, reason=$reason)" + Loading