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

Commit 2d336631 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Check for lock icon nullability

Test: make
Fixes: 132698969
Change-Id: Ib1db9e3c5706ad46f32fe0ccabb832b86c122859
parent c3bfdf52
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -262,23 +262,29 @@ public class StatusBarWindowView extends FrameLayout {
     * Propagate {@link StatusBar} pulsing state.
     */
    public void setPulsing(boolean pulsing) {
        if (mLockIcon != null) {
            mLockIcon.setPulsing(pulsing);
        }
    }

    /**
     * Called when the biometric authentication mode changes.
     * @param wakeAndUnlock If the type is {@link BiometricUnlockController#isWakeAndUnlock()}
     */
    public void onBiometricAuthModeChanged(boolean wakeAndUnlock) {
        if (mLockIcon != null) {
            mLockIcon.onBiometricAuthModeChanged(wakeAndUnlock);
        }
    }

    /**
     * Called after finished unlocking and the status bar window is already collapsed.
     */
    public void onKeyguardFadedAway() {
        if (mLockIcon != null) {
            mLockIcon.onKeyguardFadedAway();
        }
    }

    public void setStatusBarView(PhoneStatusBarView statusBarView) {
        mStatusBarView = statusBarView;