diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-06-30 21:28:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 21:28:28 +0530 |
commit | e11ef1ca1d504bcccf73e75c3782cce2c8fc4bec (patch) | |
tree | 60741754cb63c2740eab9d084373eeaf9e91f6e9 /app/src/main/java/com/zeapo | |
parent | 5e74507d5b3f3de8a4f0881fa14f87058e9a63fc (diff) |
Revert "Support directly importing secrets" (#904)
Diffstat (limited to 'app/src/main/java/com/zeapo')
-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") |