Merge "Don't lock down system user in demo mode" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4f540fe8d0
@@ -659,7 +659,7 @@ public class KeyguardViewMediator extends SystemUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean mustNotUnlockCurrentUser() {
|
boolean mustNotUnlockCurrentUser() {
|
||||||
return (UserManager.isSplitSystemUser() || UserManager.isDeviceInDemoMode(mContext))
|
return UserManager.isSplitSystemUser()
|
||||||
&& KeyguardUpdateMonitor.getCurrentUser() == UserHandle.USER_SYSTEM;
|
&& KeyguardUpdateMonitor.getCurrentUser() == UserHandle.USER_SYSTEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user