diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-06 18:16:09 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-06 18:16:09 +0530 |
commit | 0a16ac762079dded7d5ff5e0305fb7b088cb168a (patch) | |
tree | 08689fa553e40ece5432b659af84a297dbc2fe3c | |
parent | c4edf7f0e6203037384b042c8d450fb180d0c0f0 (diff) |
fix: only check repo initialization in commit flow
-rw-r--r-- | app/src/main/java/app/passwordstore/util/extensions/AndroidExtensions.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/util/extensions/AndroidExtensions.kt b/app/src/main/java/app/passwordstore/util/extensions/AndroidExtensions.kt index a780163d..f66fd33c 100644 --- a/app/src/main/java/app/passwordstore/util/extensions/AndroidExtensions.kt +++ b/app/src/main/java/app/passwordstore/util/extensions/AndroidExtensions.kt @@ -83,7 +83,7 @@ fun Context.resolveAttribute(attr: Int): Int { suspend fun FragmentActivity.commitChange( message: String, ): Result<Unit, Throwable> { - if (!PasswordRepository.isGitRepo()) { + if (!PasswordRepository.isInitialized) { return Ok(Unit) } return object : GitOperation(this@commitChange) { |