Revert "Support directly importing secrets" (#904)

This commit is contained in:
Harsh Shandilya 2020-06-30 21:28:28 +05:30 committed by GitHub
parent 5e74507d5b
commit e11ef1ca1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")