fix: remove use of unnecessary Object#clone

This commit is contained in:
Harsh Shandilya 2023-06-27 17:54:05 +05:30
parent 6a18c04e38
commit a4d615b861
No known key found for this signature in database

View file

@ -367,9 +367,7 @@ class PasswordStore : BaseGitActivity() {
fun decryptPassword(item: PasswordItem) {
val authDecryptIntent = item.createAuthEnabledIntent(this)
val decryptIntent =
(authDecryptIntent.clone() as Intent).setComponent(
ComponentName(this, DecryptActivity::class.java)
)
Intent(authDecryptIntent).setComponent(ComponentName(this, DecryptActivity::class.java))
startActivity(decryptIntent)