Simplify decrypt intent creation (#1069)
This commit is contained in:
parent
0f0d1994e5
commit
55d64fb737
1 changed files with 7 additions and 6 deletions
|
@ -41,12 +41,13 @@ class LaunchActivity : AppCompatActivity() {
|
||||||
|
|
||||||
private fun startTargetActivity(noAuth: Boolean) {
|
private fun startTargetActivity(noAuth: Boolean) {
|
||||||
if (intent.action == ACTION_DECRYPT_PASS) {
|
if (intent.action == ACTION_DECRYPT_PASS) {
|
||||||
val decryptIntent = Intent(this, DecryptActivity::class.java)
|
Intent(this, DecryptActivity::class.java).apply {
|
||||||
decryptIntent.putExtra("NAME", intent.getStringExtra("NAME"))
|
putExtra("NAME", intent.getStringExtra("NAME"))
|
||||||
decryptIntent.putExtra("FILE_PATH", intent.getStringExtra("FILE_PATH"))
|
putExtra("FILE_PATH", intent.getStringExtra("FILE_PATH"))
|
||||||
decryptIntent.putExtra("REPO_PATH", intent.getStringExtra("REPO_PATH"))
|
putExtra("REPO_PATH", intent.getStringExtra("REPO_PATH"))
|
||||||
decryptIntent.putExtra("LAST_CHANGED_TIMESTAMP", intent.getLongExtra("LAST_CHANGED_TIMESTAMP", 0L))
|
putExtra("LAST_CHANGED_TIMESTAMP", intent.getLongExtra("LAST_CHANGED_TIMESTAMP", 0L))
|
||||||
startActivity(decryptIntent)
|
startActivity(this)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
startActivity(Intent(this, PasswordStore::class.java))
|
startActivity(Intent(this, PasswordStore::class.java))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue