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,