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

Commit dd733755 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Make 'no notifications' work like 'manage/history'" into rvc-dev am:...

Merge "Make 'no notifications' work like 'manage/history'" into rvc-dev am: 458dee83 am: ab63a729 am: d5b81366

Change-Id: I9b33013d0de30b74a95bfe5ae9a89559c100eb3a
parents 26ec57e3 d5b81366
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -5722,6 +5722,14 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
        EmptyShadeView view = (EmptyShadeView) LayoutInflater.from(mContext).inflate(
                R.layout.status_bar_no_notifications, this, false);
        view.setText(R.string.empty_shade_text);
        view.setOnClickListener(v -> {
            final boolean showHistory = Settings.Secure.getInt(mContext.getContentResolver(),
                    Settings.Secure.NOTIFICATION_HISTORY_ENABLED, 0) == 1;
            Intent intent = showHistory ? new Intent(
                    Settings.ACTION_NOTIFICATION_HISTORY) : new Intent(
                    Settings.ACTION_NOTIFICATION_SETTINGS);
            mStatusBar.startActivity(intent, true, true, Intent.FLAG_ACTIVITY_SINGLE_TOP);
        });
        setEmptyShadeView(view);
    }