diff options
author | Jim Miller <jaggies@google.com> | 2010-11-19 18:49:26 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2010-11-29 15:39:08 -0800 |
commit | 2a98a4cbaaf3300036434dd1d44b891ea8a8c932 (patch) | |
tree | e134d6db74399a7b1ceb9d37b5b85c3371487b06 /policy/src | |
parent | 360a102f41098d36dccc4fe245e192c6e2f0ceeb (diff) | |
download | frameworks_base-2a98a4cbaaf3300036434dd1d44b891ea8a8c932.zip frameworks_base-2a98a4cbaaf3300036434dd1d44b891ea8a8c932.tar.gz frameworks_base-2a98a4cbaaf3300036434dd1d44b891ea8a8c932.tar.bz2 |
Fix 3024522: Add "no lock screen" support to the framework.
This adds a new feature where LockScreen can be disabled to
allow the device to go straight to the home screen when
powered on.
Change-Id: I288e8d5359442c042ae7911340885877a864faff
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java index 42b73b9..72af34d 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java @@ -281,7 +281,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, mUpdateMonitor.registerSimStateCallback(this); mLockPatternUtils = new LockPatternUtils(mContext); - mKeyguardViewProperties + mKeyguardViewProperties = new LockPatternKeyguardViewProperties(mLockPatternUtils, mUpdateMonitor); mKeyguardViewManager = new KeyguardViewManager( @@ -589,6 +589,11 @@ public class KeyguardViewMediator implements KeyguardViewCallback, return; } + if (mLockPatternUtils.isLockScreenDisabled()) { + if (DEBUG) Log.d(TAG, "doKeyguard: not showing because lockscreen is off"); + return; + } + if (DEBUG) Log.d(TAG, "doKeyguard: showing the lock screen"); showLocked(); } @@ -1005,7 +1010,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, Log.d(TAG, "playSounds: whichSound = " + whichSound + "; soundPath was null"); } } - } + } /** * Handle message sent by {@link #showLocked}. |