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

Commit 54eb845d authored by Adrian Roos's avatar Adrian Roos Committed by Zach Riggle
Browse files

Fix NPE in FlashlightController

Bug: 18007548
Change-Id: Iecd1303feeb8062741752862312043ecd75cebbe
(cherry picked from commit fa81d212)
parent aaa37da8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -308,7 +308,11 @@ public class FlashlightController {
            new CameraCaptureSession.StateListener() {
        @Override
        public void onConfigured(CameraCaptureSession session) {
            if (session.getDevice() == mCameraDevice) {
                mSession = session;
            } else {
                session.close();
            }
            postUpdateFlashlight();
        }