summaryrefslogtreecommitdiffstats
path: root/policy/src
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2014-01-08 14:57:54 -0800
committerJim Miller <jaggies@google.com>2014-01-11 02:33:04 +0000
commitfb5fceaedc7964cc02a08fd93ac62ece7f33059d (patch)
tree239f258e78fe20d0649d3121284b595fcda138fb /policy/src
parentbb0a4f20502c27a920b7d874c9a17c178afee5f9 (diff)
downloadframeworks_base-fb5fceaedc7964cc02a08fd93ac62ece7f33059d.zip
frameworks_base-fb5fceaedc7964cc02a08fd93ac62ece7f33059d.tar.gz
frameworks_base-fb5fceaedc7964cc02a08fd93ac62ece7f33059d.tar.bz2
Fix broken homekey on devices without keyguard
Fixes bug 12447288 Change-Id: I580dbeac03b56c01d33844f094eaac20d7aba119
Diffstat (limited to 'policy/src')
-rw-r--r--policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java
index 1357462..e5af716 100644
--- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java
+++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java
@@ -109,6 +109,9 @@ public class KeyguardServiceDelegate {
if (!context.bindServiceAsUser(intent, mKeyguardConnection,
Context.BIND_AUTO_CREATE, UserHandle.OWNER)) {
if (DEBUG) Log.v(TAG, "*** Keyguard: can't bind to " + KEYGUARD_CLASS);
+ mKeyguardState.showing = false;
+ mKeyguardState.showingAndNotHidden = false;
+ mKeyguardState.secure = false;
} else {
if (DEBUG) Log.v(TAG, "*** Keyguard started");
}