Skip to content

Commit

Permalink
Fix black screen camera on some devices (#7903)
Browse files Browse the repository at this point in the history
ccen-stripe authored Feb 8, 2024

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
1 parent 8ad394f commit da5ac20
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ internal const val CONTINUE_BUTTON_TAG = "Continue"
internal const val SCAN_TITLE_TAG = "Title"
internal const val SCAN_MESSAGE_TAG = "Message"
internal const val CHECK_MARK_TAG = "CheckMark"
internal const val VIEW_FINDER_ASPECT_RATIO = 1.5f
internal const val VIEW_FINDER_ASPECT_RATIO = 1f

@Composable
internal fun DocumentScanScreen(
@@ -285,6 +285,9 @@ private fun CameraViewFinder(
modifier = Modifier
.fillMaxWidth()
.aspectRatio(VIEW_FINDER_ASPECT_RATIO)
.padding(
horizontal = 2.dp
)
.clip(RoundedCornerShape(dimensionResource(id = R.dimen.stripe_view_finder_corner_radius)))
) {
AndroidView(

0 comments on commit da5ac20

Please sign in to comment.