Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix safearea issues

ashilknf40f39984a6e
diff --git a/mobile/lib/ui/map/map_pull_up_gallery.dart b/mobile/lib/ui/map/map_pull_up_gallery.dart
index f52439759e..22f1071888 100644
--- a/mobile/lib/ui/map/map_pull_up_gallery.dart
+++ b/mobile/lib/ui/map/map_pull_up_gallery.dart
@@ -71,11 +71,15 @@ class _MapPullUpGalleryState extends State<MapPullUpGallery> {
},
),
DeferPointer(
- child: FileSelectionOverlayBar(
- GalleryType.searchResults,
- _selectedFiles,
- backgroundColor:
- getEnteColorScheme(context).backgroundElevated2,
+ //This is to make the FileSelectionOverlayBar respect SafeArea
+ child: MediaQuery(
+ data: MediaQueryData.fromView(View.of(context)),
+ child: FileSelectionOverlayBar(
+ GalleryType.searchResults,
+ _selectedFiles,
+ backgroundColor:
+ getEnteColorScheme(context).backgroundElevated2,
+ ),
),
),
],
diff --git a/mobile/lib/ui/tabs/shared_collections_tab.dart b/mobile/lib/ui/tabs/shared_collections_tab.dart
index 8f4b61b38a..92c044c9fe 100644
--- a/mobile/lib/ui/tabs/shared_collections_tab.dart
+++ b/mobile/lib/ui/tabs/shared_collections_tab.dart
@@ -84,7 +84,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
(snapshot.data?.outgoing.length ?? 0) == 0) {
return const Center(child: SharedEmptyStateWidget());
}
- return _getSharedCollectionsGallery(snapshot.data!);
+ return SafeArea(child: _getSharedCollectionsGallery(snapshot.data!));
} else if (snapshot.hasError) {
_logger.severe(
"critical: failed to load share gallery",