We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26ac95 commit b279ffaCopy full SHA for b279ffa
cameraview/src/main/java/com/otaliastudios/cameraview/overlay/OverlayDrawer.java
@@ -78,7 +78,11 @@ public void draw(@NonNull Overlay.Target target) {
78
}
79
synchronized (mIssue514WorkaroundLock) {
80
mIssue514Workaround.beforeOverlayUpdateTexImage();
81
- mSurfaceTexture.updateTexImage();
+ try {
82
+ mSurfaceTexture.updateTexImage();
83
+ } catch (IllegalStateException e) {
84
+ LOG.w("Got IllegalStateException while updating texture contents", e);
85
+ }
86
87
mSurfaceTexture.getTransformMatrix(mTextureDrawer.getTextureTransform());
88
0 commit comments