From dd78c11bfceb46f437aa4455a40d65fd78e12d4d Mon Sep 17 00:00:00 2001 From: Fernando Nunes Date: Mon, 28 Sep 2020 14:42:08 +0000 Subject: [PATCH] Fix crash error --- .../.idea/caches/build_file_checksums.ser | Bin 689 -> 689 bytes .../arview/AutoFitPreviewBuilder.kt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arlocalizerview/.idea/caches/build_file_checksums.ser b/arlocalizerview/.idea/caches/build_file_checksums.ser index 83a2edb65d60036121e428019d2a339a0edf45d3..cbb1081ba8d102a4ce52e31ff22c69df977ec20b 100644 GIT binary patch delta 14 WcmdnUx{-ClOlI}8(;MfAG64W7$puva delta 14 VcmdnUx{-ClOlC#f=#6tknE)nv1hxPG diff --git a/arlocalizerview/src/main/java/com/netguru/arlocalizerview/arview/AutoFitPreviewBuilder.kt b/arlocalizerview/src/main/java/com/netguru/arlocalizerview/arview/AutoFitPreviewBuilder.kt index c62cedb..fa371dd 100644 --- a/arlocalizerview/src/main/java/com/netguru/arlocalizerview/arview/AutoFitPreviewBuilder.kt +++ b/arlocalizerview/src/main/java/com/netguru/arlocalizerview/arview/AutoFitPreviewBuilder.kt @@ -104,7 +104,7 @@ internal class AutoFitPreviewBuilder private constructor( parent.addView(viewFinder, 0) // Update internal texture - viewFinder.surfaceTexture = it.surfaceTexture + viewFinder.setSurfaceTexture(it.surfaceTexture) // Apply relevant transformations bufferRotation = it.rotationDegrees