[#591] Fix getSurfaces() crash of CameraX on FTL Robo test

* [#591] Fix getSurfaces() crash on FTL Robo

- Updated version of the CameraX dependency and filed issue to Google

* Add logging bind camera failure to console
This commit is contained in:
Honza Rychnovsky 2022-10-04 16:41:07 +02:00 committed by GitHub
parent bcdcf343c7
commit a30e18a555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,7 @@ ACCOMPANIST_PERMISSIONS_VERSION=0.25.1
ANDROIDX_ACTIVITY_VERSION=1.6.0
ANDROIDX_ANNOTATION_VERSION=1.5.0
ANDROIDX_APPCOMPAT_VERSION=1.5.1
ANDROIDX_CAMERA_VERSION=1.1.0
ANDROIDX_CAMERA_VERSION=1.2.0-beta02
ANDROIDX_COMPOSE_COMPILER_VERSION=1.3.1
ANDROIDX_COMPOSE_MATERIAL3_VERSION=1.0.0-beta03
ANDROIDX_COMPOSE_VERSION=1.2.1

View File

@ -56,6 +56,7 @@ import androidx.compose.ui.viewinterop.AndroidView
import androidx.constraintlayout.compose.ConstraintLayout
import androidx.constraintlayout.compose.Dimension
import androidx.core.content.ContextCompat
import co.electriccoin.zcash.spackle.Twig
import co.electriccoin.zcash.ui.R
import co.electriccoin.zcash.ui.design.component.GradientSurface
import co.electriccoin.zcash.ui.design.component.SecondaryButton
@ -367,6 +368,7 @@ fun ScanCameraView(
imageAnalysis
)
}.onFailure {
Twig.error { "Scan QR failed in bind phase with: ${it.message}" }
setScanState(ScanState.Failed)
}