Skip to content

Commit e7f23f0

Browse files
author
Ken Ackerson
committed
Update SelfieScreen.kt
1 parent e027761 commit e7f23f0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

identity/src/main/java/com/stripe/android/identity/ui/SelfieScreen.kt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,18 @@ private fun SelfieCameraViewFinder(
343343
}
344344
}
345345
status?.let {
346+
val statusModifier = when (it) {
347+
SelfieStatus.HoldStill ->
348+
Modifier
349+
.align(Alignment.BottomCenter)
350+
.padding(bottom = 40.dp)
351+
SelfieStatus.CheckingImages ->
352+
Modifier
353+
.align(Alignment.Center)
354+
}
346355
SelfieStatusBadge(
347356
status = it,
348-
modifier = Modifier
349-
.align(Alignment.BottomCenter)
350-
.padding(bottom = 40.dp)
357+
modifier = statusModifier
351358
)
352359
}
353360
}

0 commit comments

Comments
 (0)