File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/SystemUI/src/com/android/systemui/statusbar/phone Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ public class PhoneStatusBar extends StatusBar {
113113 // will likely move to a resource or other tunable param at some point
114114 private static final int INTRUDER_ALERT_DECAY_MS = 10000 ;
115115
116+ private static final boolean CLOSE_PANEL_WHEN_EMPTIED = true ;
117+
116118 // fling gesture tuning parameters, scaled to display density
117119 private float mSelfExpandVelocityPx ; // classic value: 2000px/s
118120 private float mSelfCollapseVelocityPx ; // classic value: 2000px/s (will be negated to collapse "up")
@@ -698,6 +700,10 @@ public void removeNotification(IBinder key) {
698700
699701 // Recalculate the position of the sliding windows and the titles.
700702 updateExpandedViewPos (EXPANDED_LEAVE_ALONE );
703+
704+ if (CLOSE_PANEL_WHEN_EMPTIED && mNotificationData .size () == 0 && !mAnimating ) {
705+ animateCollapse ();
706+ }
701707 }
702708
703709 setAreThereNotifications ();
You can’t perform that action at this time.
0 commit comments