Skip to content

Commit 86e1b96

Browse files
author
Dave Burke
committed
Fix ordering bug
Bug: 7445381 Change-Id: I585b8cdd528b05db0737eab815c4172760aece14
1 parent 0bd6f96 commit 86e1b96

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)