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

Commit 051d4c9b authored by Arc Wang's avatar Arc Wang Committed by android-build-merger
Browse files

Merge "[Wi-Fi DPP] Wi-Fi QR code scanner is not working after a connection fail" into qt-dev

am: d64b6c88

Change-Id: I65823cfc154a90a5a35e0932f4f1fe878718a274
parents 6a1d7e60 d64b6c88
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -686,6 +686,10 @@ public class WifiDppQrCodeScannerFragment extends WifiDppQrCodeBaseFragment impl
            return;
        }

        if (mCamera.isDecodeTaskAlive()) {
            mCamera.stop();
        }

        final SurfaceTexture surfaceTexture = mTextureView.getSurfaceTexture();
        if (surfaceTexture == null) {
            throw new IllegalStateException("SurfaceTexture is not ready for restarting camera");