Disable loading widgets in single-stage keyguard

Change-Id: I8975c3a8e6ba060987fda2d0d4b9fc8dc0686d06
This commit is contained in:
Jim Miller
2012-10-12 14:45:34 -07:00
parent 59cb2cf15c
commit ea06c3ed6f

View File

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