summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2014-12-05 00:26:24 -0500
committerDan Sandler <dsandler@android.com>2014-12-05 00:26:24 -0500
commite63ba4b03db386505f6973246be73cf38e0be128 (patch)
treea37af0af96ef809100fbcf91b005811237d9b1f7 /packages
parentd23f8b44d575dcdc00965aae5fffd97f0336df43 (diff)
downloadframeworks_base-e63ba4b03db386505f6973246be73cf38e0be128.zip
frameworks_base-e63ba4b03db386505f6973246be73cf38e0be128.tar.gz
frameworks_base-e63ba4b03db386505f6973246be73cf38e0be128.tar.bz2
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
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index 57ac4b0..2b6ac26 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -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;
}
}