Skip to content

Commit 143d73d

Browse files
John SpurlockAndroid (Google) Code Review
authored andcommitted
Merge "Fix multiuser bug in StatusBarManagerService." into jb-mr1.1-dev
2 parents 958343c + 8f3e6d5 commit 143d73d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/java/com/android/server/StatusBarManagerService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ private void disableLocked(int userId, int what, IBinder token, String pkg) {
170170
// so they are paired correctly. The messages on the handler will be
171171
// handled in the order they were enqueued, but will be outside the lock.
172172
manageDisableListLocked(userId, what, token, pkg);
173-
final int net = gatherDisableActionsLocked(userId);
173+
174+
// Ensure state for the current user is applied, even if passed a non-current user.
175+
final int net = gatherDisableActionsLocked(mCurrentUserId);
174176
if (net != mDisabled) {
175177
mDisabled = net;
176178
mHandler.post(new Runnable() {

0 commit comments

Comments
 (0)