From d191ee87a59af46b81c2a83f2c8128fd5b3ce4e3 Mon Sep 17 00:00:00 2001 From: Reifu Sato Date: Thu, 28 Sep 2017 15:10:09 +0900 Subject: [PATCH] Collapse Notification panel after tapping CLEAR ALL button Usually, notification panel is automatically collapsed after tapping "CLEAR ALL" button but is not collapsed if all dismissable notifications are scrolled out. In this case, dismissed notification is still displayed until notification panel is once collapsed. And that "dismissed" notification causes several issues. To avoid this, collapse notification panel automatically after tapping "CLEAR ALL" button even when all dismissable notifications are scrolled out. Fixes: 67246876 Test: manual - post ongoing and dismissable notifications, and tap CLEAR ALL button. Change-Id: I048255cde6fdb4cedd2c3472e345ff63c744af68 --- .../src/com/android/systemui/statusbar/phone/StatusBar.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 50e4f3d8f947c..05e0c9b5048f0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -1440,6 +1440,11 @@ public class StatusBar extends SystemUI implements DemoMode, } }; + if (hideAnimatedList.isEmpty()) { + animationFinishAction.run(); + return; + } + // let's disable our normal animations mStackScroller.setDismissAllInProgress(true);