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

Commit 9a87d637 authored by kwaky's avatar kwaky
Browse files

Ignore revealKeyguardIfBouncerPrepared request if Bouncer is null.

Conceptually, if the Bouncer is not yet instantiated, it is not prepared
so we should ignore the request.

Test: Existing unit tests passing
Bug: 154928953
Change-Id: Iaa61d65ab8fc056b9ac4566f43599e81a2024e92
parent a7e0ff89
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -346,6 +346,13 @@ public class CarKeyguardViewController extends OverlayViewController implements
    private void revealKeyguardIfBouncerPrepared() {
        int reattemptDelayMillis = 50;
        Runnable revealKeyguard = () -> {
            if (mBouncer == null) {
                if (DEBUG) {
                    Log.d(TAG, "revealKeyguardIfBouncerPrepared: revealKeyguard request is ignored "
                                    + "since the Bouncer has not been initialized yet.");
                }
                return;
            }
            if (!mBouncer.inTransit() || !mBouncer.isSecure()) {
                getLayout().setVisibility(View.VISIBLE);
            } else {