Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +3 −2 Original line number Diff line number Diff line Loading @@ -1116,11 +1116,12 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (shadeEntry == null) { return; } if (mUseHeadsUp && shouldInterrupt(notification)) { boolean isHeadsUped = mUseHeadsUp && shouldInterrupt(notification); if (isHeadsUped) { mHeadsUpManager.showNotification(shadeEntry); } if (notification.getNotification().fullScreenIntent != null) { if (!isHeadsUped && notification.getNotification().fullScreenIntent != null) { // Stop screensaver if the notification has a full-screen intent. // (like an incoming phone call) awakenDreams(); Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +10 −4 Original line number Diff line number Diff line Loading @@ -464,15 +464,21 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL public void updateEntry() { long currentTime = mClock.currentTimeMillis(); earliestRemovaltime = currentTime + mMinimumDisplayTime; postTime = Math.max(postTime, currentTime); removeAutoCancelCallbacks(); if (canEntryDecay()) { long finishTime = postTime + mHeadsUpNotificationDecay; long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); earliestRemovaltime = currentTime + mMinimumDisplayTime; removeAutoCancelCallbacks(); mHandler.postDelayed(mRemoveHeadsUpRunnable, removeDelay); } updateSortOrder(HeadsUpEntry.this); } private boolean canEntryDecay() { return entry.notification.getNotification().fullScreenIntent == null; } @Override public int compareTo(HeadsUpEntry o) { return postTime < o.postTime ? 1 Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +3 −2 Original line number Diff line number Diff line Loading @@ -1116,11 +1116,12 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (shadeEntry == null) { return; } if (mUseHeadsUp && shouldInterrupt(notification)) { boolean isHeadsUped = mUseHeadsUp && shouldInterrupt(notification); if (isHeadsUped) { mHeadsUpManager.showNotification(shadeEntry); } if (notification.getNotification().fullScreenIntent != null) { if (!isHeadsUped && notification.getNotification().fullScreenIntent != null) { // Stop screensaver if the notification has a full-screen intent. // (like an incoming phone call) awakenDreams(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +10 −4 Original line number Diff line number Diff line Loading @@ -464,15 +464,21 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL public void updateEntry() { long currentTime = mClock.currentTimeMillis(); earliestRemovaltime = currentTime + mMinimumDisplayTime; postTime = Math.max(postTime, currentTime); removeAutoCancelCallbacks(); if (canEntryDecay()) { long finishTime = postTime + mHeadsUpNotificationDecay; long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); earliestRemovaltime = currentTime + mMinimumDisplayTime; removeAutoCancelCallbacks(); mHandler.postDelayed(mRemoveHeadsUpRunnable, removeDelay); } updateSortOrder(HeadsUpEntry.this); } private boolean canEntryDecay() { return entry.notification.getNotification().fullScreenIntent == null; } @Override public int compareTo(HeadsUpEntry o) { return postTime < o.postTime ? 1 Loading