File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,19 @@ public ViewManagerHost(Context context) {
129129 @ Override
130130 protected void onConfigurationChanged (Configuration newConfig ) {
131131 super .onConfigurationChanged (newConfig );
132- if (mKeyguardHost .getVisibility () == View .VISIBLE ) {
133- // only propagate configuration messages if we're currently showing
134- maybeCreateKeyguardLocked (shouldEnableScreenRotation (), true , null );
135- } else {
136- if (DEBUG ) Log .v (TAG , "onConfigurationChanged: view not visible" );
137- }
132+ post (new Runnable () {
133+ @ Override
134+ public void run () {
135+ synchronized (KeyguardViewManager .this ) {
136+ if (mKeyguardHost .getVisibility () == View .VISIBLE ) {
137+ // only propagate configuration messages if we're currently showing
138+ maybeCreateKeyguardLocked (shouldEnableScreenRotation (), true , null );
139+ } else {
140+ if (DEBUG ) Log .v (TAG , "onConfigurationChanged: view not visible" );
141+ }
142+ }
143+ }
144+ });
138145 }
139146
140147 @ Override
You can’t perform that action at this time.
0 commit comments