mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 09:18:49 +00:00
skip camera layout when preview is zero-sized
Closes #3648 Fixes #3624 // FREEBIE
This commit is contained in:
parent
5c3b96a947
commit
63515e967e
@ -224,6 +224,11 @@ public class CameraView extends FrameLayout {
|
|||||||
previewHeight = height;
|
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 useFirstStrategy = (width * previewHeight > height * previewWidth);
|
||||||
boolean useFullBleed = getHost().useFullBleedPreview();
|
boolean useFullBleed = getHost().useFullBleedPreview();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user