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

Commit 0f402e0c authored by Abel Tesfaye's avatar Abel Tesfaye
Browse files

Fix NullPointerException in SmartAutoRotateCameraStateController

Test: none

Bug: 184844470
Change-Id: I9eca78b11ff8a70dc7c026d7ef77e0b08db8ffbe
parent 54e74cae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,7 +44,9 @@ public class SmartAutoRotateCameraStateController extends BasePreferenceControll
        super(context, key);
        mPrivacyManager = SensorPrivacyManager.getInstance(context);
        mPrivacyManager.addSensorPrivacyListener(CAMERA, (sensor, enabled) -> {
            if (mPreference != null) {
                mPreference.setVisible(enabled);
            }
            updateState(mPreference);
        });
    }