From 0523cf0d3eb49d0bdb578f2c4177f8c6d56bc0ed Mon Sep 17 00:00:00 2001 From: M3DZIK Date: Wed, 28 Feb 2024 22:31:20 +0100 Subject: [PATCH] Add larger padding after progress indicator --- .../medzik/librepass/android/ui/screens/vault/CipherView.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/CipherView.kt b/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/CipherView.kt index 5ce3ebb0..53f1f91d 100644 --- a/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/CipherView.kt +++ b/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/CipherView.kt @@ -366,11 +366,11 @@ fun CipherViewScreen( @Composable fun OtpField( - value: String?, + value: String, elapsed: Int, period: Int ) { - if (value.isNullOrEmpty()) return + if (value.isEmpty()) return val clipboardManager = LocalClipboardManager.current @@ -380,7 +380,7 @@ fun OtpField( ) { Box( contentAlignment = Alignment.Center, - modifier = Modifier.padding(end = 6.dp) + modifier = Modifier.padding(end = 8.dp) ) { val progress by animateFloatAsState( targetValue = 1 - (elapsed.toFloat() / period.toFloat()),