Loading packages/SystemUI/src/com/android/systemui/statusbar/AlertingNotificationManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -316,7 +316,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim * of the timer and should be removed externally. * of the timer and should be removed externally. * @return true if the notification is sticky * @return true if the notification is sticky */ */ protected boolean isSticky() { public boolean isSticky() { return false; return false; } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java +12 −1 Original line number Original line Diff line number Diff line Loading @@ -428,7 +428,7 @@ public class HeadsUpManagerPhone extends HeadsUpManager implements Dumpable, @Override @Override protected boolean isSticky() { public boolean isSticky() { return super.isSticky() || mMenuShownPinned; return super.isSticky() || mMenuShownPinned; } } Loading Loading @@ -568,6 +568,17 @@ public class HeadsUpManagerPhone extends HeadsUpManager implements Dumpable, } } mKeysToRemoveWhenLeavingKeyguard.clear(); mKeysToRemoveWhenLeavingKeyguard.clear(); } } if (wasKeyguard && !isKeyguard && mBypassController.getBypassEnabled()) { ArrayList<String> keysToRemove = new ArrayList<>(); for (AlertEntry entry : mAlertEntries.values()) { if (entry.mEntry != null && entry.mEntry.isBubble() && !entry.isSticky()) { keysToRemove.add(entry.mEntry.getKey()); } } for (String key : keysToRemove) { removeAlertEntry(key); } } } } @Override @Override Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -368,7 +368,7 @@ public abstract class HeadsUpManager extends AlertingNotificationManager { protected boolean expanded; protected boolean expanded; @Override @Override protected boolean isSticky() { public boolean isSticky() { return (mEntry.isRowPinned() && expanded) return (mEntry.isRowPinned() && expanded) || remoteInputActive || hasFullScreenIntent(mEntry); || remoteInputActive || hasFullScreenIntent(mEntry); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/AlertingNotificationManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -316,7 +316,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim * of the timer and should be removed externally. * of the timer and should be removed externally. * @return true if the notification is sticky * @return true if the notification is sticky */ */ protected boolean isSticky() { public boolean isSticky() { return false; return false; } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java +12 −1 Original line number Original line Diff line number Diff line Loading @@ -428,7 +428,7 @@ public class HeadsUpManagerPhone extends HeadsUpManager implements Dumpable, @Override @Override protected boolean isSticky() { public boolean isSticky() { return super.isSticky() || mMenuShownPinned; return super.isSticky() || mMenuShownPinned; } } Loading Loading @@ -568,6 +568,17 @@ public class HeadsUpManagerPhone extends HeadsUpManager implements Dumpable, } } mKeysToRemoveWhenLeavingKeyguard.clear(); mKeysToRemoveWhenLeavingKeyguard.clear(); } } if (wasKeyguard && !isKeyguard && mBypassController.getBypassEnabled()) { ArrayList<String> keysToRemove = new ArrayList<>(); for (AlertEntry entry : mAlertEntries.values()) { if (entry.mEntry != null && entry.mEntry.isBubble() && !entry.isSticky()) { keysToRemove.add(entry.mEntry.getKey()); } } for (String key : keysToRemove) { removeAlertEntry(key); } } } } @Override @Override Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -368,7 +368,7 @@ public abstract class HeadsUpManager extends AlertingNotificationManager { protected boolean expanded; protected boolean expanded; @Override @Override protected boolean isSticky() { public boolean isSticky() { return (mEntry.isRowPinned() && expanded) return (mEntry.isRowPinned() && expanded) || remoteInputActive || hasFullScreenIntent(mEntry); || remoteInputActive || hasFullScreenIntent(mEntry); } } Loading