From ea06c3ed6fc5148e59885500fa923a76d0a9eaff Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 12 Oct 2012 14:45:34 -0700 Subject: [PATCH] Disable loading widgets in single-stage keyguard Change-Id: I8975c3a8e6ba060987fda2d0d4b9fc8dc0686d06 --- .../internal/policy/impl/keyguard/KeyguardHostView.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java index 498702004cb07..6d95f0d9c8f3c 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java @@ -195,7 +195,8 @@ public class KeyguardHostView extends KeyguardViewBase { protected void onAttachedToWindow() { super.onAttachedToWindow(); mAppWidgetHost.startListening(); - maybePopulateWidgets(); + // TODO: Re-enable when we have layouts that can support a better variety of widgets. + // maybePopulateWidgets(); disableStatusViewInteraction(); post(mSwitchPageRunnable); } @@ -643,11 +644,7 @@ public class KeyguardHostView extends KeyguardViewBase { if (securityMode == SecurityMode.None) { // Discard current runnable if we're switching back to the selector view setOnDismissRunnable(null); - setSystemUiVisibility(getSystemUiVisibility() | View.STATUS_BAR_DISABLE_BACK); - } else { - setSystemUiVisibility(getSystemUiVisibility() & (~View.STATUS_BAR_DISABLE_BACK)); - } - + } mCurrentSecuritySelection = securityMode; }