mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 19:27:49 +00:00
skip camera layout when preview is zero-sized
Closes #3648 Fixes #3624 // FREEBIE
This commit is contained in:

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();
|
||||
|
||||
|
Reference in New Issue
Block a user