Cleanup USER_OWNER in Settings
This cl updates a couple places related to managed profiles. Bug: 19913735 Change-Id: I72b5315885fc34d8716339ecc18447c15867a5ac
This commit is contained in:
@@ -781,7 +781,8 @@ public class RunningState {
|
||||
mPm = mApplicationContext.getPackageManager();
|
||||
mUm = (UserManager)mApplicationContext.getSystemService(Context.USER_SERVICE);
|
||||
mMyUserId = UserHandle.myUserId();
|
||||
mHideManagedProfiles = mMyUserId != UserHandle.USER_OWNER;
|
||||
UserInfo userInfo = mUm.getUserInfo(mMyUserId);
|
||||
mHideManagedProfiles = userInfo == null || !userInfo.canHaveProfile();
|
||||
mResumed = false;
|
||||
mBackgroundThread = new HandlerThread("RunningState:Background");
|
||||
mBackgroundThread.start();
|
||||
|
Reference in New Issue
Block a user