From e11ef1ca1d504bcccf73e75c3782cce2c8fc4bec Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 30 Jun 2020 21:28:28 +0530 Subject: Revert "Support directly importing secrets" (#904) --- .../main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'app/src') 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") -- cgit v1.2.3