Skip to content

Commit 536f067

Browse files
committed
Fix crash on boot
1 parent 1f92878 commit 536f067

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ private int getWidgetPosition(int id) {
146146

147147
@Override
148148
protected void onFinishInflate() {
149+
mViewStateManager = new KeyguardViewStateManager();
150+
149151
// Grab instances of and make any necessary changes to the main layouts. Create
150152
// view state manager and wire up necessary listeners / callbacks.
151153
mAppWidgetContainer = (KeyguardWidgetPager) findViewById(R.id.app_widget_container);
@@ -157,7 +159,6 @@ protected void onFinishInflate() {
157159
addWidgetsFromSettings();
158160
mSwitchPageRunnable.run();
159161

160-
mViewStateManager = new KeyguardViewStateManager();
161162
SlidingChallengeLayout slider =
162163
(SlidingChallengeLayout) findViewById(R.id.sliding_layout);
163164
if (slider != null) {

0 commit comments

Comments
 (0)