fix: issue findmy initial refresh

This commit is contained in:
zlshames
2024-11-06 10:16:13 -05:00
parent 04153835f8
commit 587564c4be
2 changed files with 5 additions and 4 deletions

View File

@ -38,6 +38,7 @@ This update brings a ton of QOL improvements and bug fixes.
- Fixes issue showing digital touch messages in the message view
- Fixes issue where downloading a live photo would crash the app
- Fixes issue where send/receive sounds would be backed-up causing a missing file path issue when restored
- Fixes issue where the FindMy page's initial location refresh may not update locations properly
### Desktop Specific

View File

@ -94,7 +94,7 @@ class _FindMyPageState extends OptimizedState<FindMyPage> with SingleTickerProvi
});
}
void getLocations({bool refresh = false}) async {
void getLocations({bool refresh = true}) async {
if (!(Platform.isLinux && !kIsWeb)) {
LocationPermission granted = await Geolocator.checkPermission();
if (granted == LocationPermission.denied) {
@ -876,7 +876,7 @@ class _FindMyPageState extends OptimizedState<FindMyPage> with SingleTickerProvi
refreshing = true;
refreshing2 = true;
});
getLocations(refresh: true);
getLocations();
},
),
),
@ -1193,7 +1193,7 @@ class _FindMyPageState extends OptimizedState<FindMyPage> with SingleTickerProvi
refreshing = true;
refreshing2 = true;
});
getLocations(refresh: true);
getLocations();
},
),
),
@ -1266,7 +1266,7 @@ class _FindMyPageState extends OptimizedState<FindMyPage> with SingleTickerProvi
refreshing = true;
refreshing2 = true;
});
getLocations(refresh: true);
getLocations();
},
),
),