aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-06-27 17:54:05 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-06-27 18:07:29 +0530
commita4d615b861a0483ab909afaa44b941fc2eb5243d (patch)
tree6dab917b034d0a65c222006ba3f0697886a24780 /app
parent6a18c04e382332c273168fee706adfd9b05bffb8 (diff)
fix: remove use of unnecessary `Object#clone`
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt4
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)