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 4e8a47e + 9ff6d4f commit d811f27Copy full SHA for d811f27
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