mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 23:05:33 +00:00
Revert "Support directly importing secrets" (#904)
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user