Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix selection actions sheet being under android system nav bar

ashilknb6df7bf969e1
diff --git a/mobile/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart b/mobile/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart
index 0f31986598..f2c16c8c39 100644
--- a/mobile/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart
+++ b/mobile/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart
@@ -31,7 +31,7 @@ class BottomActionBarWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
- final bottomPadding = MediaQuery.of(context).padding.bottom;
+ final bottomPadding = MediaQuery.paddingOf(context).bottom;
final widthOfScreen = MediaQuery.of(context).size.width;
final colorScheme = getEnteColorScheme(context);
final double leftRightPadding = widthOfScreen > restrictedMaxWidth
diff --git a/mobile/lib/ui/viewer/gallery/collection_page.dart b/mobile/lib/ui/viewer/gallery/collection_page.dart
index b4f1a12c82..aff40ef777 100644
--- a/mobile/lib/ui/viewer/gallery/collection_page.dart
+++ b/mobile/lib/ui/viewer/gallery/collection_page.dart
@@ -18,7 +18,7 @@ import "package:photos/ui/viewer/gallery/collect_photos_bottom_buttons.dart";
import "package:photos/ui/viewer/gallery/empty_album_state.dart";
import 'package:photos/ui/viewer/gallery/empty_state.dart';
import 'package:photos/ui/viewer/gallery/gallery.dart';
-import 'package:photos/ui/viewer/gallery/gallery_app_bar_widget.dart';
+import "package:photos/ui/viewer/gallery/gallery_app_bar_widget.dart";
import "package:photos/ui/viewer/gallery/hierarchical_search_gallery.dart";
import "package:photos/ui/viewer/gallery/state/gallery_files_inherited_widget.dart";
import "package:photos/ui/viewer/gallery/state/inherited_search_filter_data.dart";
@@ -130,7 +130,7 @@ class CollectionPage extends StatelessWidget {
c.collection,
selectedFiles: _selectedFiles,
)
- : const SizedBox.shrink(),
+ : null,
body: SelectionState(
selectedFiles: _selectedFiles,
child: Stack(