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

Commit b71f8c14 authored by Alex Stetson's avatar Alex Stetson Committed by Android (Google) Code Review
Browse files

Merge "Prevent null references when updating state"

parents 833ed488 cf7db557
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
    protected CentralSurfaces mCentralSurfaces;
    private NotificationPanelViewController mNotificationPanelViewController;
    private BiometricUnlockController mBiometricUnlockController;
    private boolean mCentralSurfacesRegistered;

    private View mNotificationContainer;

@@ -338,6 +339,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
        mNotificationContainer = notificationContainer;
        mKeyguardMessageAreaController = mKeyguardMessageAreaFactory.create(
                centralSurfaces.getKeyguardMessageArea());
        mCentralSurfacesRegistered = true;

        registerListeners();
    }
@@ -1086,6 +1088,9 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
    };

    protected void updateStates() {
        if (!mCentralSurfacesRegistered) {
            return;
        }
        boolean showing = mShowing;
        boolean occluded = mOccluded;
        boolean bouncerShowing = bouncerIsShowing();