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

Commit 6a41c8c4 authored by Robin Lee's avatar Robin Lee Committed by Android Git Automerger
Browse files

am e6818f08: Merge "Don\'t turn off screen after wiping user profiles" into lmp-dev

* commit 'e6818f08d6d052bdb7d13effd22c32218e15d95d':
  Don't turn off screen after wiping user profiles
parents fd2c6b46 4ee4e6e0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2612,13 +2612,11 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        if (userHandle == UserHandle.USER_OWNER) {
            wipeDataLocked(flags);
        } else {
            lockNowUnchecked();
            mHandler.post(new Runnable() {
                public void run() {
                    try {
                        ActivityManagerNative.getDefault().switchUser(UserHandle.USER_OWNER);
                        (mUserManager)
                                .removeUser(userHandle);
                        mUserManager.removeUser(userHandle);
                    } catch (RemoteException re) {
                        // Shouldn't happen
                    }