π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: continuous loading in map when no images + update copy
Prateek Sunal8341f67d29c9
diff --git a/mobile/apps/photos/lib/ui/map/map_pull_up_gallery.dart b/mobile/apps/photos/lib/ui/map/map_pull_up_gallery.dartindex 8a52acac3f..b2a5891c8d 100644--- a/mobile/apps/photos/lib/ui/map/map_pull_up_gallery.dart+++ b/mobile/apps/photos/lib/ui/map/map_pull_up_gallery.dart@@ -157,7 +157,8 @@ class _MapPullUpGalleryState extends State<MapPullUpGallery> {),const SizedBox(height: 4),Text(- AppLocalizations.of(context).zoomOutToSeePhotos,+ AppLocalizations.of(context)+ .noImagesWithLocation,style: textTheme.smallFaint,),],diff --git a/mobile/apps/photos/lib/ui/map/map_screen.dart b/mobile/apps/photos/lib/ui/map/map_screen.dartindex 7d6f310f11..3187db6772 100644--- a/mobile/apps/photos/lib/ui/map/map_screen.dart+++ b/mobile/apps/photos/lib/ui/map/map_screen.dart@@ -88,23 +88,34 @@ class _MapScreenState extends State<MapScreen> {final EnteFile? mostRecentFile = result.$1;final List<ImageMarker> tempMarkers = result.$2;- if (tempMarkers.isNotEmpty) {- center = widget.center ??- LatLng(- mostRecentFile!.location!.latitude!,- mostRecentFile.location!.longitude!,- );-- if (kDebugMode) {- debugPrint(- "Info for map: center $center, initialZoom ${widget.initialZoom}",- );- }- } else {+ if (tempMarkers.isEmpty) {showShortToast(context,AppLocalizations.of(context).noImagesWithLocation,);+ if (!visibleImages.isClosed) {+ visibleImages.sink.add([]);+ }+ if (!mounted) {+ return;+ }+ setState(() {+ imageMarkers = tempMarkers;+ isLoading = false;+ });+ return;+ }++ center = widget.center ??+ LatLng(+ mostRecentFile!.location!.latitude!,+ mostRecentFile.location!.longitude!,+ );++ if (kDebugMode) {+ debugPrint(+ "Info for map: center $center, initialZoom ${widget.initialZoom}",+ );}setState(() {@@ -117,6 +128,9 @@ class _MapScreenState extends State<MapScreen> {);Timer(Duration(milliseconds: debounceDuration), () {+ if (!mounted) {+ return;+ }calculateVisibleMarkers(mapController.camera.visibleBounds);setState(() {isLoading = false;