summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Spurlock <jspurlock@google.com> 2012-10-04 14:51:51 -0400
committer John Spurlock <jspurlock@google.com> 2012-10-04 14:51:51 -0400
commit4e6922d89e72e79a8ab31ae2cb8a19d85bee91f8 (patch)
tree241f2cc34591502473590f45fe6e78f6ab323cf8
parentebf7e2851cab55348153fca299c52042b125924d (diff)
Reset status bar in keyguard, fix MU status bar bug.
Two things going on here, status bar disabled flags need to be reset on user switch. Also make status bar's internal disable-record lookup multi-user aware. Bug:7278793 Change-Id: I1d7088d956a065330736da4c09cc1874c528c133
-rw-r--r--policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java1
-rw-r--r--services/java/com/android/server/StatusBarManagerService.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
index 83324bc4e715..21d2ad191cd4 100644
--- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
+++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
@@ -291,6 +291,7 @@ public class KeyguardViewMediator {
public void onUserSwitched(int userId) {
// Note that the mLockPatternUtils user has already been updated from setCurrentUser.
synchronized (KeyguardViewMediator.this) {
+ adjustStatusBarLocked();
resetStateLocked(true);
}
// We should always go back to the locked state when a user
diff --git a/services/java/com/android/server/StatusBarManagerService.java b/services/java/com/android/server/StatusBarManagerService.java
index 5d9441b842ef..439eebe7bca4 100644
--- a/services/java/com/android/server/StatusBarManagerService.java
+++ b/services/java/com/android/server/StatusBarManagerService.java
@@ -544,7 +544,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub
int i;
for (i=0; i<N; i++) {
DisableRecord t = mDisableRecords.get(i);
- if (t.token == token) {
+ if (t.token == token && t.userId == userId) {
tok = t;
break;
}