Skip to content

Commit 73d0b63

Browse files
authored
Debug info: Sync interval "0 min" when actually -1 (manual) (#928)
Added check for only manual sync Signed-off-by: Arnau Mora Gras <[email protected]>
1 parent a361888 commit 73d0b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/at/bitfire/davdroid/ui/DebugInfoModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class DebugInfoModel @AssistedInject constructor(
554554
info.authority,
555555
ContentResolver.getIsSyncable(account, info.authority),
556556
ContentResolver.getSyncAutomatically(account, info.authority), // content-triggered sync
557-
accountSettings.getSyncInterval(info.authority)?.let {"${it/60} min"},
557+
accountSettings.getSyncInterval(info.authority)?.takeIf { it >= 0 }?.let {"${it/60} min"},
558558
nrEntries
559559
)
560560
}

0 commit comments

Comments
 (0)