aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-02-23 18:38:46 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-02-23 18:38:46 +0530
commit122131ba9f05915b5a125cc890f39cdbc6a4e43a (patch)
treeb45f59356e8007850113262e5180b87c940cde01 /app/src/main/java
parent5015aabdf26785794fbc000b85e25efe0a7752a2 (diff)
fix: clarify OTP import failure strings
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt6
1 files changed, 3 insertions, 3 deletions
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?) {