diff options
author | Robin Lee <rgl@google.com> | 2014-07-30 15:09:34 +0100 |
---|---|---|
committer | Robin Lee <rgl@google.com> | 2014-07-30 14:18:22 +0000 |
commit | 50c360790ca4c061aa6a1d94e06bd7e25b0f0436 (patch) | |
tree | a92c056e89af275a76e6271cc76377631ce3a628 /services/devicepolicy | |
parent | 29762c3dfb7a510c23f021f6797840ebd80663af (diff) | |
download | frameworks_base-50c360790ca4c061aa6a1d94e06bd7e25b0f0436.zip frameworks_base-50c360790ca4c061aa6a1d94e06bd7e25b0f0436.tar.gz frameworks_base-50c360790ca4c061aa6a1d94e06bd7e25b0f0436.tar.bz2 |
Don't turn off screen after wiping user profiles
The activity manager should know when to lock the screen. If an admin
does want this to happen then they should be able to run both commands
in succession.
Also rectifies some creative code styling in the same DPM method.
@bug 15558805
Change-Id: I8918184a4585aa8b061eb4a68edc2ec6805d8127
Diffstat (limited to 'services/devicepolicy')
-rw-r--r-- | services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java index 15bea5a..6ab504c 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -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 } |