diff options
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt index a9b1219d..d1d538ef 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt @@ -69,11 +69,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB if (result.resultCode == RESULT_OK) { otpImportButton.isVisible = false val intentResult = IntentIntegrator.parseActivityResult(RESULT_OK, result.data) - val contents = if (intentResult.contents.startsWith("otpauth://")) { - "${intentResult.contents}\n" - } else { - "totp: ${intentResult.contents}\n" - } + val contents = "${intentResult.contents}\n" val currentExtras = extraContent.text.toString() if (currentExtras.isNotEmpty() && currentExtras.last() != '\n') extraContent.append("\n$contents") |