summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java27
1 files changed, 21 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
index 8f24033e0bee..d9dd9e243b94 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
@@ -415,20 +415,35 @@ public class PhoneStatusBarPolicy implements Callback, RotationLockController.Ro
new SynchronousUserSwitchObserver() {
@Override
public void onUserSwitching(int newUserId) throws RemoteException {
- mUserInfoController.reloadUserInfo();
+ mHandler.post(new Runnable() {
+ @Override
+ public void run() {
+ mUserInfoController.reloadUserInfo();
+ }
+ });
}
@Override
public void onUserSwitchComplete(int newUserId) throws RemoteException {
- updateAlarm();
- profileChanged(newUserId);
- updateQuietState();
- updateManagedProfile();
+ mHandler.post(new Runnable() {
+ @Override
+ public void run() {
+ updateAlarm();
+ profileChanged(newUserId);
+ updateQuietState();
+ updateManagedProfile();
+ }
+ });
}
@Override
public void onForegroundProfileSwitch(int newProfileId) {
- profileChanged(newProfileId);
+ mHandler.post(new Runnable() {
+ @Override
+ public void run() {
+ profileChanged(newProfileId);
+ }
+ });
}
};