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

This commit is contained in:
Robin Lee
2014-07-30 15:15:26 +00:00
committed by Android (Google) Code Review

View File

@@ -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
}