OSDN Git Service

Don't autoexpand btw notifications
authorSelim Cinek <cinek@google.com>
Tue, 6 Jun 2017 02:02:41 +0000 (19:02 -0700)
committerSelim Cinek <cinek@google.com>
Tue, 6 Jun 2017 22:29:55 +0000 (22:29 +0000)
We now only systemexpand high priority notifications.

Test: manual add min prio notifications only, observe expansion
Change-Id: I74e3be9a6ae0f44da9da05a5725c9d1505f9d234
Fixes: 62035830

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java

index 3326b3f..027cff3 100644 (file)
@@ -6822,7 +6822,8 @@ public class StatusBar extends SystemUI implements DemoMode,
                 // If mAlwaysExpandNonGroupedNotification is false, then only expand the
                 // very first notification and if it's not a child of grouped notifications.
                 row.setSystemExpanded(mAlwaysExpandNonGroupedNotification
-                        || (visibleNotifications == 0 && !isChildNotification));
+                        || (visibleNotifications == 0 && !isChildNotification
+                        && !row.isLowPriority()));
             }
 
             entry.row.setShowAmbient(isDozing());