skip camera layout when preview is zero-sized

Closes #3648
Fixes #3624
// FREEBIE
pull/1/head
Jake McGinty 10 years ago committed by Moxie Marlinspike
parent 5c3b96a947
commit 63515e967e

@ -224,6 +224,11 @@ public class CameraView extends FrameLayout {
previewHeight = height;
}
if (previewHeight == 0 || previewWidth == 0) {
Log.w(TAG, "skipping layout due to zero-width/height preview size");
return;
}
boolean useFirstStrategy = (width * previewHeight > height * previewWidth);
boolean useFullBleed = getHost().useFullBleedPreview();

Loading…
Cancel
Save