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

Commit 66bf0f53 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add mBouncer null checks for view-related requests." into rvc-dev

parents 71f6afb2 16e0cbc0
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -151,8 +151,10 @@ public class CarKeyguardViewController extends OverlayViewController implements

    @Override
    public void notifyKeyguardAuthenticated(boolean strongAuth) {
        if (mBouncer != null) {
            mBouncer.notifyKeyguardAuthenticated(strongAuth);
        }
    }

    @Override
    public void showBouncer(boolean scrimmed) {
@@ -204,11 +206,15 @@ public class CarKeyguardViewController extends OverlayViewController implements

    @Override
    public void onFinishedGoingToSleep() {
        if (mBouncer != null) {
            mBouncer.onScreenTurnedOff();
        }
    }

    @Override
    public void onCancelClicked() {
        if (!mShowing) return;

        getOverlayViewGlobalStateController().setWindowFocusable(/* focusable= */ false);
        getOverlayViewGlobalStateController().setWindowNeedsInput(/* needsInput= */ false);

@@ -228,6 +234,8 @@ public class CarKeyguardViewController extends OverlayViewController implements

    @Override
    public void startPreHideAnimation(Runnable finishRunnable) {
        if (!mShowing) return;

        mBouncer.startPreHideAnimation(finishRunnable);
    }

@@ -260,12 +268,12 @@ public class CarKeyguardViewController extends OverlayViewController implements

    @Override
    public boolean isBouncerShowing() {
        return mBouncer.isShowing();
        return mBouncer != null && mBouncer.isShowing();
    }

    @Override
    public boolean bouncerIsOrWillBeShowing() {
        return mBouncer.isShowing() || mBouncer.inTransit();
        return mBouncer != null && (mBouncer.isShowing() || mBouncer.inTransit());
    }

    @Override