Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -453,9 +453,12 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL mReleaseOnExpandFinish = false; mReleaseOnExpandFinish = false; } else { } else { for (NotificationData.Entry entry : mEntriesToRemoveAfterExpand) { for (NotificationData.Entry entry : mEntriesToRemoveAfterExpand) { if (isHeadsUp(entry.key)) { // Maybe the heads-up was removed already removeHeadsUpEntry(entry); removeHeadsUpEntry(entry); } } } } } mEntriesToRemoveAfterExpand.clear(); mEntriesToRemoveAfterExpand.clear(); } } Loading Loading @@ -572,6 +575,9 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL earliestRemovaltime = currentTime + mMinimumDisplayTime; earliestRemovaltime = currentTime + mMinimumDisplayTime; postTime = Math.max(postTime, currentTime); postTime = Math.max(postTime, currentTime); removeAutoRemovalCallbacks(); removeAutoRemovalCallbacks(); if (mEntriesToRemoveAfterExpand.contains(entry)) { mEntriesToRemoveAfterExpand.remove(entry); } if (!hasFullScreenIntent(entry)) { if (!hasFullScreenIntent(entry)) { long finishTime = postTime + mHeadsUpNotificationDecay; long finishTime = postTime + mHeadsUpNotificationDecay; long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -453,9 +453,12 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL mReleaseOnExpandFinish = false; mReleaseOnExpandFinish = false; } else { } else { for (NotificationData.Entry entry : mEntriesToRemoveAfterExpand) { for (NotificationData.Entry entry : mEntriesToRemoveAfterExpand) { if (isHeadsUp(entry.key)) { // Maybe the heads-up was removed already removeHeadsUpEntry(entry); removeHeadsUpEntry(entry); } } } } } mEntriesToRemoveAfterExpand.clear(); mEntriesToRemoveAfterExpand.clear(); } } Loading Loading @@ -572,6 +575,9 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL earliestRemovaltime = currentTime + mMinimumDisplayTime; earliestRemovaltime = currentTime + mMinimumDisplayTime; postTime = Math.max(postTime, currentTime); postTime = Math.max(postTime, currentTime); removeAutoRemovalCallbacks(); removeAutoRemovalCallbacks(); if (mEntriesToRemoveAfterExpand.contains(entry)) { mEntriesToRemoveAfterExpand.remove(entry); } if (!hasFullScreenIntent(entry)) { if (!hasFullScreenIntent(entry)) { long finishTime = postTime + mHeadsUpNotificationDecay; long finishTime = postTime + mHeadsUpNotificationDecay; long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); Loading