Revert "Support directly importing secrets" (#904)
This commit is contained in:
parent
5e74507d5b
commit
e11ef1ca1d
1 changed files with 1 additions and 5 deletions
|
@ -69,11 +69,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
|
||||||
if (result.resultCode == RESULT_OK) {
|
if (result.resultCode == RESULT_OK) {
|
||||||
otpImportButton.isVisible = false
|
otpImportButton.isVisible = false
|
||||||
val intentResult = IntentIntegrator.parseActivityResult(RESULT_OK, result.data)
|
val intentResult = IntentIntegrator.parseActivityResult(RESULT_OK, result.data)
|
||||||
val contents = if (intentResult.contents.startsWith("otpauth://")) {
|
val contents = "${intentResult.contents}\n"
|
||||||
"${intentResult.contents}\n"
|
|
||||||
} else {
|
|
||||||
"totp: ${intentResult.contents}\n"
|
|
||||||
}
|
|
||||||
val currentExtras = extraContent.text.toString()
|
val currentExtras = extraContent.text.toString()
|
||||||
if (currentExtras.isNotEmpty() && currentExtras.last() != '\n')
|
if (currentExtras.isNotEmpty() && currentExtras.last() != '\n')
|
||||||
extraContent.append("\n$contents")
|
extraContent.append("\n$contents")
|
||||||
|
|
Loading…
Reference in a new issue