Disable loading widgets in single-stage keyguard
Change-Id: I8975c3a8e6ba060987fda2d0d4b9fc8dc0686d06
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user