From bad8e2b4043b1239c17aafc1cc6779a347b3680e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 18 Sep 2020 18:14:52 +0530 Subject: Misc cleanups to build and extension functions (#1108) --- app/src/main/java/com/zeapo/pwdstore/git/config/GitSettings.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/git/config') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/config/GitSettings.kt b/app/src/main/java/com/zeapo/pwdstore/git/config/GitSettings.kt index f4cbc04f..e43deaf4 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/config/GitSettings.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/config/GitSettings.kt @@ -10,7 +10,7 @@ import com.github.michaelbull.result.runCatching import com.zeapo.pwdstore.Application import com.zeapo.pwdstore.utils.PasswordRepository import com.zeapo.pwdstore.utils.PreferenceKeys -import com.zeapo.pwdstore.utils.getEncryptedPrefs +import com.zeapo.pwdstore.utils.getEncryptedGitPrefs import com.zeapo.pwdstore.utils.getString import com.zeapo.pwdstore.utils.sharedPrefs import java.io.File @@ -53,7 +53,7 @@ object GitSettings { private const val DEFAULT_BRANCH = "master" private val settings by lazy { Application.instance.sharedPrefs } - private val encryptedSettings by lazy { Application.instance.getEncryptedPrefs("git_operation") } + private val encryptedSettings by lazy { Application.instance.getEncryptedGitPrefs() } var authMode get() = AuthMode.fromString(settings.getString(PreferenceKeys.GIT_REMOTE_AUTH)) -- cgit v1.2.3