From d62516399e36be62a282d4be305381f9e1703fc7 Mon Sep 17 00:00:00 2001 From: agrahn Date: Sun, 11 Aug 2024 07:13:37 +0200 Subject: fix blocking createPasswordUI() when OTP is displayed (#3162) --- app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt b/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt index fcf03781..372cd074 100644 --- a/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt @@ -302,7 +302,7 @@ class DecryptActivity : BasePGPActivity() { binding.recyclerView.itemAnimator = null if (entry.hasTotp()) { - entry.totp.collect(adapter::updateOTPCode) + lifecycleScope.launch { entry.totp.collect(adapter::updateOTPCode) } } } -- cgit v1.2.3