summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-04-06 18:16:09 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-04-06 18:16:09 +0530
commit0a16ac762079dded7d5ff5e0305fb7b088cb168a (patch)
tree08689fa553e40ece5432b659af84a297dbc2fe3c
parentc4edf7f0e6203037384b042c8d450fb180d0c0f0 (diff)
fix: only check repo initialization in commit flow
-rw-r--r--app/src/main/java/app/passwordstore/util/extensions/AndroidExtensions.kt2
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) {