Merge "[Wi-Fi DPP] Wi-Fi QR code scanner is not working after a connection fail" into qt-dev
am: d64b6c8846
Change-Id: I65823cfc154a90a5a35e0932f4f1fe878718a274
This commit is contained in:
@@ -686,6 +686,10 @@ public class WifiDppQrCodeScannerFragment extends WifiDppQrCodeBaseFragment impl
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mCamera.isDecodeTaskAlive()) {
|
||||||
|
mCamera.stop();
|
||||||
|
}
|
||||||
|
|
||||||
final SurfaceTexture surfaceTexture = mTextureView.getSurfaceTexture();
|
final SurfaceTexture surfaceTexture = mTextureView.getSurfaceTexture();
|
||||||
if (surfaceTexture == null) {
|
if (surfaceTexture == null) {
|
||||||
throw new IllegalStateException("SurfaceTexture is not ready for restarting camera");
|
throw new IllegalStateException("SurfaceTexture is not ready for restarting camera");
|
||||||
|
Reference in New Issue
Block a user