From acd0df65dd8be97aae5617c9a8346d4a4ab88abd Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 29 Jul 2015 19:09:03 -0700 Subject: Fixed a heads up crash Some references to notifications were still kept around while timing out, leading to small leaks and sometimes crashes. Bug: 22819475 Change-Id: I1429b5669366521c6374efbcae6c26d6e407d8cc --- .../src/com/android/systemui/statusbar/policy/HeadsUpManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java index 63f5711..a81a962 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java @@ -452,8 +452,8 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL for (NotificationData.Entry entry : mEntriesToRemoveAfterExpand) { removeHeadsUpEntry(entry); } - mEntriesToRemoveAfterExpand.clear(); } + mEntriesToRemoveAfterExpand.clear(); } public void setTrackingHeadsUp(boolean trackingHeadsUp) { -- cgit v1.1