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

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

Merge "Fix NullPointerException in SmartAutoRotateCameraStateController" into sc-dev

parents 9abe5df1 0f402e0c
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);
        });
    }