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 0d48f8b commit cf95a47Copy full SHA for cf95a47
liveness/src/main/java/com/amplifyframework/ui/liveness/camera/OpenGLRenderer.java
@@ -325,7 +325,11 @@ public ListenableFuture<Void> detachPreviewSurface() {
325
mExecutor.execute(
326
() -> {
327
if (!mIsShutdown) {
328
- setWindowSurface(mAdditionalContext, null);
+ if (mAdditionalContext != 0) {
329
+ setWindowSurface(mAdditionalContext, null);
330
+ } else if (DEBUG) {
331
+ Log.d(TAG, "!!! mAdditionalContext null during detachPreviewSurface");
332
+ }
333
mAdditionalTransformation.mSurfaceSize = null;
334
}
335
completer.set(null);
0 commit comments