diff options
| author | 2017-06-05 19:02:41 -0700 | |
|---|---|---|
| committer | 2017-06-06 22:29:55 +0000 | |
| commit | e251ca5c07f537a9e466874d50c6b109d09c6b1a (patch) | |
| tree | 09e2c847a093f2c59a72c4e782f9e5feb564e977 | |
| parent | 918702f7365fff8fcbfddf9e8e6b818e133889e1 (diff) | |
Don't autoexpand btw notifications
We now only systemexpand high priority notifications.
Test: manual add min prio notifications only, observe expansion
Change-Id: I74e3be9a6ae0f44da9da05a5725c9d1505f9d234
Fixes: 62035830
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 3326b3f581d7..027cff399571 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -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()); |