Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a2c5f0e authored by Adam Powell's avatar Adam Powell
Browse files

Keyguard sanity checks for when layout is not yet complete

Bug 7470163

Change-Id: I1e5f860ab39633f6c5e2046f6f18424227842406
parent 5da6430f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -485,6 +485,14 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
            return;
        }
        mChallengeShowing = showChallenge;

        if (mExpandChallengeView == null || mChallengeView == null) {
            // These might not be here yet if we haven't been through layout.
            // If we haven't, the first layout pass will set everything up correctly
            // based on mChallengeShowing as set above.
            return;
        }

        if (mChallengeShowing) {
            mExpandChallengeView.setVisibility(View.INVISIBLE);
            mChallengeView.setVisibility(View.VISIBLE);