Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Add delay before loading cities

Neeraj Gupta5d09123cbc28
diff --git a/mobile/lib/services/location_service.dart b/mobile/lib/services/location_service.dart
index 5fc2fc0777..c2d797cba9 100644
--- a/mobile/lib/services/location_service.dart
+++ b/mobile/lib/services/location_service.dart
@@ -32,7 +32,9 @@ class LocationService {
void init(SharedPreferences preferences) {
prefs = preferences;
- _loadCities();
+ Future.delayed(const Duration(seconds: 3), () {
+ _loadCities();
+ });
}
Future<Iterable<LocalEntity<LocationTag>>> _getStoredLocationTags() async {