Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43153f18 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

resolve merge conflicts of 5201a624 to nyc-dev-plus-aosp

am: cc8c594a

* commit 'cc8c594a':
  Handle PhoneStatusBarPolicy user switch callbacks on main thread

Change-Id: I816905527f5061e7af2fe14b42f9c0397036bdb7
parents a90127dc cc8c594a
Loading
Loading
Loading
Loading
+21 −5
Original line number Diff line number Diff line
@@ -419,20 +419,36 @@ public class PhoneStatusBarPolicy implements Callback, RotationLockController.Ro
            new SynchronousUserSwitchObserver() {
                @Override
                public void onUserSwitching(int newUserId) throws RemoteException {
                    mHandler.post(new Runnable() {
                        @Override
                        public void run() {
                            mUserInfoController.reloadUserInfo();
                        }
                    });
                }

                @Override
                public void onUserSwitchComplete(int newUserId) throws RemoteException {
                    mHandler.post(new Runnable() {
                        @Override
                        public void run() {
                            updateAlarm();
                            profileChanged(newUserId);
                            updateQuietState();
                            updateManagedProfile();
                        }
                    });
                }

                @Override
                public void onForegroundProfileSwitch(int newProfileId) {
                    mHandler.post(new Runnable() {
                        @Override
                        public void run() {
                            profileChanged(newProfileId);
                        }
                    });
                }
            };

    private final HotspotController.Callback mHotspotCallback = new HotspotController.Callback() {