resolve merge conflicts of 5201a62 to nyc-dev-plus-aosp
am: cc8c594a5c
* commit 'cc8c594a5c5cb255907cb2eaddb37ea1321fa104':
Handle PhoneStatusBarPolicy user switch callbacks on main thread
Change-Id: I816905527f5061e7af2fe14b42f9c0397036bdb7
This commit is contained in:
@@ -419,20 +419,36 @@ public class PhoneStatusBarPolicy implements Callback, RotationLockController.Ro
|
|||||||
new SynchronousUserSwitchObserver() {
|
new SynchronousUserSwitchObserver() {
|
||||||
@Override
|
@Override
|
||||||
public void onUserSwitching(int newUserId) throws RemoteException {
|
public void onUserSwitching(int newUserId) throws RemoteException {
|
||||||
|
mHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
mUserInfoController.reloadUserInfo();
|
mUserInfoController.reloadUserInfo();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUserSwitchComplete(int newUserId) throws RemoteException {
|
public void onUserSwitchComplete(int newUserId) throws RemoteException {
|
||||||
|
mHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
updateAlarm();
|
||||||
profileChanged(newUserId);
|
profileChanged(newUserId);
|
||||||
updateQuietState();
|
updateQuietState();
|
||||||
updateManagedProfile();
|
updateManagedProfile();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onForegroundProfileSwitch(int newProfileId) {
|
public void onForegroundProfileSwitch(int newProfileId) {
|
||||||
|
mHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
profileChanged(newProfileId);
|
profileChanged(newProfileId);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private final HotspotController.Callback mHotspotCallback = new HotspotController.Callback() {
|
private final HotspotController.Callback mHotspotCallback = new HotspotController.Callback() {
|
||||||
|
|||||||
Reference in New Issue
Block a user