From 7d7856a96b9534a9a21740ce8792799fa6c507e6 Mon Sep 17 00:00:00 2001 From: Alexander Grahn Date: Sat, 3 Aug 2024 17:52:46 +0200 Subject: [PATCH] formatting fixed (ktfmtFormat) --- .../main/java/app/passwordstore/ui/settings/PGPSettings.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt b/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt index 69943176b..60c9929b0 100644 --- a/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt +++ b/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt @@ -48,8 +48,10 @@ class PGPSettings( defaultValue = false onClick { if (BiometricAuthenticator.canAuthenticate(activity)) { - val promptTitle = if (checked) R.string.pref_passphrase_cache_authenticate_enable else R.string.pref_passphrase_cache_authenticate_disable - + val promptTitle = + if (checked) R.string.pref_passphrase_cache_authenticate_enable + else R.string.pref_passphrase_cache_authenticate_disable + BiometricAuthenticator.authenticate(activity, promptTitle) { result -> when (result) { is BiometricAuthenticator.Result.Success -> {