We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79e0f87 + 5a2c5f0 commit 9ff6d4fCopy full SHA for 9ff6d4f
policy/src/com/android/internal/policy/impl/keyguard/SlidingChallengeLayout.java
@@ -485,6 +485,14 @@ private void setChallengeShowing(boolean showChallenge) {
485
return;
486
}
487
mChallengeShowing = showChallenge;
488
+
489
+ if (mExpandChallengeView == null || mChallengeView == null) {
490
+ // These might not be here yet if we haven't been through layout.
491
+ // If we haven't, the first layout pass will set everything up correctly
492
+ // based on mChallengeShowing as set above.
493
+ return;
494
+ }
495
496
if (mChallengeShowing) {
497
mExpandChallengeView.setVisibility(View.INVISIBLE);
498
mChallengeView.setVisibility(View.VISIBLE);
0 commit comments