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

Commit e63ba4b0 authored by Dan Sandler's avatar Dan Sandler
Browse files

Don't forget to listen for USER_ALL broadcasts.

The ActivityManager.closeSystemDialogs() call (used by,
among other things, the home button) broadcasts
ACTION_CLOSE_SYSTEM_DIALOGS for UserHandle.USER_ALL, rather
than any one user.

Bug: 18629414
Change-Id: I89bfa3f556866e1b27987be2753ce83fd0313998
parent d23f8b44
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;
        }
    }