diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-06-27 17:54:05 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-06-27 18:07:29 +0530 |
commit | a4d615b861a0483ab909afaa44b941fc2eb5243d (patch) | |
tree | 6dab917b034d0a65c222006ba3f0697886a24780 /app/src/main | |
parent | 6a18c04e382332c273168fee706adfd9b05bffb8 (diff) |
fix: remove use of unnecessary `Object#clone`
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt b/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt index 76e2702c..b8bbd232 100644 --- a/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt +++ b/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt @@ -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) |