am 434b4acb: am 90fa5331: Merge "Don\'t show keyguard until the device has been provisioned." into klp-dev

* commit '434b4acb997484e7a540bf44bebd6b17c63fe270':
  Don't show keyguard until the device has been provisioned.
This commit is contained in:
Jim Miller
2013-11-14 15:44:51 -08:00
committed by Android Git Automerger

View File

@@ -509,7 +509,8 @@ public class KeyguardViewMediator {
mLockPatternUtils.setCurrentUser(UserHandle.USER_OWNER); mLockPatternUtils.setCurrentUser(UserHandle.USER_OWNER);
// Assume keyguard is showing (unless it's disabled) until we know for sure... // Assume keyguard is showing (unless it's disabled) until we know for sure...
mShowing = !mLockPatternUtils.isLockScreenDisabled(); mShowing = (mUpdateMonitor.isDeviceProvisioned() || mLockPatternUtils.isSecure())
&& !mLockPatternUtils.isLockScreenDisabled();
WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE); WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);