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

Commit 2f6d30df authored by Dan Sandler's avatar Dan Sandler Committed by Android Git Automerger
Browse files

am 7792b714: Merge "Don\'t forget to listen for USER_ALL broadcasts." into lmp-mr1-dev

* commit '7792b714':
  Don't forget to listen for USER_ALL broadcasts.
parents 5f1ea2e6 7792b714
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -683,15 +683,12 @@ public abstract class BaseStatusBar extends SystemUI implements
            Log.v(TAG, String.format("%s: current userid: %d, notification userid: %d",
                    n, thisUserId, notificationUserId));
        }
        synchronized (mCurrentProfiles) {
            return notificationUserId == UserHandle.USER_ALL
                    || mCurrentProfiles.get(notificationUserId) != null;
        }
        return isCurrentProfile(notificationUserId);
    }

    protected boolean isCurrentProfile(int userId) {
        synchronized (mCurrentProfiles) {
            return mCurrentProfiles.get(userId) != null;
            return userId == UserHandle.USER_ALL || mCurrentProfiles.get(userId) != null;
        }
    }