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

Commit fa81d212 authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix NPE in FlashlightController

Bug: 18007548
Change-Id: Iecd1303feeb8062741752862312043ecd75cebbe
parent b9ae0906
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();
        }