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

Commit 605a6beb authored by Danny Baumann's avatar Danny Baumann
Browse files

Revert "Auto-close if you swipe away the last notification."

This reverts commit 8cc36e57.

It didn't work as advertised anyway: It only worked if there are no
persistent notifications, and it also closes the notification area if
the notification is closed by the app itself.

Change-Id: I16f0fb6cf41d20c3a3bd4278446edab780c1fc77
parent e5fd7135
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -140,8 +140,6 @@ public class PhoneStatusBar extends BaseStatusBar {
    // will likely move to a resource or other tunable param at some point
    private static final int INTRUDER_ALERT_DECAY_MS = 0; // disabled, was 10000;

    private static final boolean CLOSE_PANEL_WHEN_EMPTIED = true;

    private static final int NOTIFICATION_PRIORITY_MULTIPLIER = 10; // see NotificationManagerService
    private static final int HIDE_ICONS_BELOW_SCORE = Notification.PRIORITY_LOW * NOTIFICATION_PRIORITY_MULTIPLIER;

@@ -1116,11 +1114,6 @@ public class PhoneStatusBar extends BaseStatusBar {
            if (ENABLE_INTRUDERS && old == mCurrentlyIntrudingNotification) {
                mHandler.sendEmptyMessage(MSG_HIDE_INTRUDER);
            }

            if (CLOSE_PANEL_WHEN_EMPTIED && mNotificationData.size() == 0 && !mAnimating
                    && !isShowingSettings()) {
                animateCollapsePanels();
            }
        }

        setAreThereNotifications();