diff options
author | Tim Kilbourn <tkilbourn@google.com> | 2014-12-12 10:08:17 -0800 |
---|---|---|
committer | Tim Kilbourn <tkilbourn@google.com> | 2014-12-12 18:33:16 +0000 |
commit | 1991590ddd0ca6d3a0cac290b65120c147034dbc (patch) | |
tree | 15fa9468793a6c869ff5c01343765abe7b9e025c /policy/src | |
parent | c28fa2cdd4692faafc520972b71ddbac1feec4d3 (diff) | |
download | frameworks_base-1991590ddd0ca6d3a0cac290b65120c147034dbc.zip frameworks_base-1991590ddd0ca6d3a0cac290b65120c147034dbc.tar.gz frameworks_base-1991590ddd0ca6d3a0cac290b65120c147034dbc.tar.bz2 |
Revert "Attempt to fix keyguard missing bug"
This reverts commit a5faf2415d5760d2239f85271b889d655b5c271b.
It prevents the launcher from showing up on Android TV.
Bug: 18724479
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java | 17 |
1 files changed, 5 insertions, 12 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 e499299..618ba1e 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceDelegate.java @@ -37,7 +37,6 @@ public class KeyguardServiceDelegate { private final Context mContext; private final View mScrim; // shown if keyguard crashes private final KeyguardState mKeyguardState = new KeyguardState(); - private ShowListener mShowListenerWhenConnect; /* package */ static final class KeyguardState { KeyguardState() { @@ -131,13 +130,7 @@ public class KeyguardServiceDelegate { // If the system is ready, it means keyguard crashed and restarted. mKeyguardService.onSystemReady(); // This is used to hide the scrim once keyguard displays. - mKeyguardService.onScreenTurnedOn(new KeyguardShowDelegate( - mShowListenerWhenConnect)); - if (mShowListenerWhenConnect != null) { - Log.v(TAG, "*** hiding scrim because keyguard wasn't ready"); - mShowListenerWhenConnect = null; - hideScrim(); - } + mKeyguardService.onScreenTurnedOn(new KeyguardShowDelegate(null)); } if (mKeyguardState.bootCompleted) { mKeyguardService.onBootCompleted(); @@ -219,10 +212,9 @@ public class KeyguardServiceDelegate { } else { // try again when we establish a connection Slog.w(TAG, "onScreenTurnedOn(): no keyguard service!"); - // This shouldn't happen, but if it does, show the scrim immediately and - // invoke the listener's callback after the service actually connects. - mShowListenerWhenConnect = showListener; - showScrim(); + // This shouldn't happen, but if it does, invoke the listener immediately + // to avoid a dark screen... + showListener.onShown(null); } mKeyguardState.screenIsOn = true; } @@ -288,6 +280,7 @@ public class KeyguardServiceDelegate { lp.setTitle("KeyguardScrim"); WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); wm.addView(view, lp); + view.setVisibility(View.GONE); // Disable pretty much everything in statusbar until keyguard comes back and we know // the state of the world. view.setSystemUiVisibility(View.STATUS_BAR_DISABLE_HOME |