From 122131ba9f05915b5a125cc890f39cdbc6a4e43a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 23 Feb 2023 18:38:46 +0530 Subject: fix: clarify OTP import failure strings --- .../java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt b/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt index 1d20eae9..9466daf2 100644 --- a/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt @@ -96,14 +96,14 @@ class PasswordCreationActivity : BasePgpActivity() { else binding.extraContent.append(contents) snackbar(message = getString(R.string.otp_import_success)) } else { - snackbar(message = getString(R.string.otp_import_failure)) + snackbar(message = getString(R.string.otp_import_failure_generic)) } } private val imageImportAction = registerForActivityResult(ActivityResultContracts.GetContent()) { imageUri -> if (imageUri == null) { - snackbar(message = getString(R.string.otp_import_failure)) + snackbar(message = getString(R.string.otp_import_failure_no_selection)) return@registerForActivityResult } val bitmap = @@ -130,7 +130,7 @@ class PasswordCreationActivity : BasePgpActivity() { snackbar(message = getString(R.string.otp_import_success)) binding.otpImportButton.isVisible = false } - .onFailure { snackbar(message = getString(R.string.otp_import_failure)) } + .onFailure { snackbar(message = getString(R.string.otp_import_failure_generic)) } } override fun onCreate(savedInstanceState: Bundle?) { -- cgit v1.2.3