From d505151662da1c9a9d9ce5434db2a370d4167e36 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 21 Apr 2020 13:11:27 +0530 Subject: treewide: use edit extension and cleanup some deprecation Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/git/GitOperation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/git/GitOperation.kt') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitOperation.kt b/app/src/main/java/com/zeapo/pwdstore/git/GitOperation.kt index e115c482..817d9dca 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitOperation.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitOperation.kt @@ -189,7 +189,7 @@ abstract class GitOperation(fileDir: File, internal val callingActivity: Activit // Authenticate using the ssh-key and then execute the command setAuthentication(sshKey, username, passphrase.text.toString()).execute() } else { - encryptedSettings.edit().putString("ssh_key_local_passphrase", null).apply() + encryptedSettings.edit { putString("ssh_key_local_passphrase", null) } // call back the method executeAfterAuthentication(connectionMode, username, sshKey, identity, true) } -- cgit v1.2.3