Skip to content

Commit 8f3e6d5

Browse files
author
John Spurlock
committed
Fix multiuser bug in StatusBarManagerService.
First, do no harm. Bug:7638210 Change-Id: I113b574a021d601b0c79d65a3b4b72eeb4c667ad
1 parent 652678a commit 8f3e6d5

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)