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

Commit 2323ec7e authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Notifications: Hide ticker updates from background users." into jb-mr1-dev

parents 7e8f6c4c 61e36836
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1041,8 +1041,12 @@ public abstract class BaseStatusBar extends SystemUI implements
        // swipe-dismissable)
        updateNotificationVetoButton(oldEntry.row, notification);

        // Is this for you?
        boolean isForCurrentUser = notificationIsForCurrentUser(notification);
        if (DEBUG) Slog.d(TAG, "notification is " + (isForCurrentUser ? "" : "not ") + "for you");

        // Restart the ticker if it's still running
        if (updateTicker) {
        if (updateTicker && isForCurrentUser) {
            haltTicker();
            tick(key, notification, false);
        }
+3 −0
Original line number Diff line number Diff line
@@ -1426,6 +1426,9 @@ public class PhoneStatusBar extends BaseStatusBar {
        // no ticking in Setup
        if (!isDeviceProvisioned()) return;

        // not for you
        if (!notificationIsForCurrentUser(n)) return;

        // Show the ticker if one is requested. Also don't do this
        // until status bar window is attached to the window manager,
        // because...  well, what's the point otherwise?  And trying to