Skip to content

Commit 9ff6d4f

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Keyguard sanity checks for when layout is not yet complete" into jb-mr1-lockscreen-dev
2 parents 79e0f87 + 5a2c5f0 commit 9ff6d4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ private void setChallengeShowing(boolean showChallenge) {
485485
return;
486486
}
487487
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+
488496
if (mChallengeShowing) {
489497
mExpandChallengeView.setVisibility(View.INVISIBLE);
490498
mChallengeView.setVisibility(View.VISIBLE);

0 commit comments

Comments
 (0)