Fix broken homekey on devices without keyguard

Fixes bug 12447288

Change-Id: I580dbeac03b56c01d33844f094eaac20d7aba119
This commit is contained in:
Jim Miller
2014-01-08 14:57:54 -08:00
parent bb0a4f2050
commit fb5fceaedc

View File

@@ -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");
}