Skip to content

Commit d811f27

Browse files
adampAndroid Git Automerger
authored andcommitted
am 9ff6d4f: Merge "Keyguard sanity checks for when layout is not yet complete" into jb-mr1-lockscreen-dev
* commit '9ff6d4f8db8d3d7a6f22afa726685feb47694fbe': Keyguard sanity checks for when layout is not yet complete
2 parents 4e8a47e + 9ff6d4f commit d811f27

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)