Merge "Handle PhoneStatusBarPolicy user switch callbacks on main thread" into nyc-dev
am: 5201a6246d
* commit '5201a6246d12830d0bb766d59e22b0320f2f99dc':
Handle PhoneStatusBarPolicy user switch callbacks on main thread
Change-Id: I561be9cf58d0a43abd43d98cf1ee717241f10ef1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user