From a4d615b861a0483ab909afaa44b941fc2eb5243d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 27 Jun 2023 17:54:05 +0530 Subject: fix: remove use of unnecessary `Object#clone` --- app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3