mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-11 08:48:16 +02:00
fix: only check repo initialization in commit flow
This commit is contained in:
parent
c4edf7f0e6
commit
0a16ac7620
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue