diff --git a/lib/services/suspected_location_service.dart b/lib/services/suspected_location_service.dart index b6c6213..2dbda32 100644 --- a/lib/services/suspected_location_service.dart +++ b/lib/services/suspected_location_service.dart @@ -55,9 +55,9 @@ class SuspectedLocationService { final prefs = await SharedPreferences.getInstance(); await prefs.setBool(_prefsKeyEnabled, enabled); - // If enabling for the first time and no data, fetch it + // If enabling for the first time and no data, fetch it in background if (enabled && !_cache.hasData) { - await _fetchData(); + _fetchData(); // Don't await - let it run in background so UI updates immediately } // If disabling, clear the cache