mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
Merge pull request #1691 from davidpricedev/1255-FixInvalidImageSize
Fixes at least one cause of #1255
This commit is contained in:
commit
3c1b47ca9b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user