Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e251ca5c authored by Selim Cinek's avatar Selim Cinek
Browse files

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
parent 918702f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -6822,7 +6822,8 @@ public class StatusBar extends SystemUI implements DemoMode,
                // If mAlwaysExpandNonGroupedNotification is false, then only expand the
                // If mAlwaysExpandNonGroupedNotification is false, then only expand the
                // very first notification and if it's not a child of grouped notifications.
                // very first notification and if it's not a child of grouped notifications.
                row.setSystemExpanded(mAlwaysExpandNonGroupedNotification
                row.setSystemExpanded(mAlwaysExpandNonGroupedNotification
                        || (visibleNotifications == 0 && !isChildNotification));
                        || (visibleNotifications == 0 && !isChildNotification
                        && !row.isLowPriority()));
            }
            }


            entry.row.setShowAmbient(isDozing());
            entry.row.setShowAmbient(isDozing());