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 4288a85e..5ce3ebb0 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 @@ -94,12 +94,12 @@ fun CipherViewScreen( totpCode = TOTPGenerator.now(params) while (true) { - delay(TimeUnit.SECONDS.toMillis(1)) - totpElapsed = calculateElapsed().toInt() if (totpElapsed == 30) { totpCode = TOTPGenerator.now(params) } + + delay(TimeUnit.SECONDS.toMillis(1)) } } }