diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-09-18 18:14:52 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-18 18:14:52 +0530 |
| commit | bad8e2b4043b1239c17aafc1cc6779a347b3680e (patch) | |
| tree | f963f4cc93bcf0409a972a2620a7cb4c8431c479 /app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt | |
| parent | 9d63b113912e0d9ecd1237501c6fc6a9689d7620 (diff) | |
| download | HardenedPass-bad8e2b4043b1239c17aafc1cc6779a347b3680e.tar.gz HardenedPass-bad8e2b4043b1239c17aafc1cc6779a347b3680e.zip | |
Misc cleanups to build and extension functions (#1108)
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt b/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt index 6a975f6c..b0aed087 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt @@ -21,7 +21,7 @@ import com.zeapo.pwdstore.git.operation.PushOperation import com.zeapo.pwdstore.git.operation.ResetToRemoteOperation import com.zeapo.pwdstore.git.operation.SyncOperation import com.zeapo.pwdstore.utils.PreferenceKeys -import com.zeapo.pwdstore.utils.getEncryptedPrefs +import com.zeapo.pwdstore.utils.getEncryptedGitPrefs import com.zeapo.pwdstore.utils.sharedPrefs import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext @@ -86,7 +86,7 @@ abstract class BaseGitActivity : AppCompatActivity() { suspend fun promptOnErrorHandler(err: Throwable, onPromptDone: () -> Unit = {}) { val error = rootCauseException(err) if (!isExplicitlyUserInitiatedError(error)) { - getEncryptedPrefs("git_operation").edit { + getEncryptedGitPrefs().edit { remove(PreferenceKeys.HTTPS_PASSWORD) } sharedPrefs.edit { remove(PreferenceKeys.SSH_OPENKEYSTORE_KEYID) } |
