New versions (#1295)

This commit is contained in:
Omar Hatem
2024-02-11 02:04:46 +02:00
committed by GitHub
parent d6e10bdbd5
commit d6af37df06
8 changed files with 27 additions and 24 deletions
@@ -55,10 +55,12 @@ class ConnectionSyncPage extends BasePage {
onItemSelected: (syncMode) async {
dashboardViewModel.setSyncMode(syncMode);
if (Platform.isIOS) return;
if (syncMode.type != SyncType.disabled) {
final isDisabled = await isBatteryOptimizationDisabled();
if (isDisabled || Platform.isIOS) return;
if (isDisabled) return;
await showPopUp<void>(
context: context,
+2 -2
View File
@@ -9,7 +9,7 @@ class SyncMode {
static final all = [
SyncMode("Disabled", SyncType.disabled, Duration.zero),
SyncMode("Unobtrusive", SyncType.unobtrusive, Duration(days: 1)),
SyncMode("Aggressive", SyncType.aggressive, Duration(hours: 1)),
SyncMode("Unobtrusive", SyncType.unobtrusive, Duration(hours: 12)),
SyncMode("Aggressive", SyncType.aggressive, Duration(hours: 3)),
];
}