Merge pull request #1691 from davidpricedev/1255-FixInvalidImageSize

Fixes at least one cause of #1255
This commit is contained in:
João Guilherme Fidelis 2018-07-23 09:58:51 -03:00 committed by GitHub
commit 3c1b47ca9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,10 @@ public class RNCameraView extends CameraView implements LifecycleEventListener,
return;
}
if (data.length < (1.5 * width * height)) {
return;
}
if (willCallBarCodeTask) {
barCodeScannerTaskLock = true;
BarCodeScannerAsyncTaskDelegate delegate = (BarCodeScannerAsyncTaskDelegate) cameraView;