mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
New versions (#1295)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user