From a827046acc4155b0a8474739b9344a6cf9d6b63a Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 1 Mar 2024 20:21:46 -0500 Subject: [PATCH] More BG update interval options (#1431) --- lib/providers/settings_provider.dart | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/providers/settings_provider.dart b/lib/providers/settings_provider.dart index 147dfc9..1b0edcc 100644 --- a/lib/providers/settings_provider.dart +++ b/lib/providers/settings_provider.dart @@ -30,8 +30,22 @@ enum SortOrderSettings { ascending, descending } const maxAPIRateLimitMinutes = 30; const minUpdateIntervalMinutes = maxAPIRateLimitMinutes + 30; -const maxUpdateIntervalMinutes = 4320; -List updateIntervals = [15, 30, 60, 120, 180, 360, 720, 1440, 4320, 0] +const maxUpdateIntervalMinutes = 43200; +List updateIntervals = [ + 15, + 30, + 60, + 120, + 180, + 360, + 720, + 1440, + 4320, + 10080, + 20160, + 43200, + 0 +] .where((element) => (element >= minUpdateIntervalMinutes && element <= maxUpdateIntervalMinutes) ||