app: use PasswordEntry#extraContentString for editing

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-05-23 18:21:41 +05:30
parent b2b1e92b45
commit 6f453cc27c
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -138,10 +138,7 @@ class DecryptActivity : BasePgpActivity(), OpenPgpServiceConnection.OnBound {
intent.putExtra("REPO_PATH", repoPath) intent.putExtra("REPO_PATH", repoPath)
intent.putExtra(PasswordCreationActivity.EXTRA_FILE_NAME, name) intent.putExtra(PasswordCreationActivity.EXTRA_FILE_NAME, name)
intent.putExtra(PasswordCreationActivity.EXTRA_PASSWORD, passwordEntry?.password) intent.putExtra(PasswordCreationActivity.EXTRA_PASSWORD, passwordEntry?.password)
intent.putExtra( intent.putExtra(PasswordCreationActivity.EXTRA_EXTRA_CONTENT, passwordEntry?.extraContentString)
PasswordCreationActivity.EXTRA_EXTRA_CONTENT,
passwordEntry?.extraContentWithoutAuthData
)
intent.putExtra(PasswordCreationActivity.EXTRA_EDITING, true) intent.putExtra(PasswordCreationActivity.EXTRA_EDITING, true)
startActivity(intent) startActivity(intent)
finish() finish()