Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix for iOS, if needed for android we can test and always set it to true

Prateek Sunal136edecd684f
diff --git a/mobile/apps/photos/lib/ui/components/action_sheet_widget.dart b/mobile/apps/photos/lib/ui/components/action_sheet_widget.dart
index 4e23e91b4f..271db59ac9 100644
--- a/mobile/apps/photos/lib/ui/components/action_sheet_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/action_sheet_widget.dart
@@ -1,3 +1,5 @@
+import "dart:io";
+
import 'package:flutter/material.dart';
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart';
import 'package:photos/core/constants.dart';
@@ -29,7 +31,9 @@ Future<ButtonResult?> showActionSheet({
return showMaterialModalBottomSheet(
backgroundColor: Colors.transparent,
barrierColor: backdropFaintDark,
- useRootNavigator: true,
+ // On iOS setting it to false causes previous page to shift
+ // So we're explicitly setting it to true
+ useRootNavigator: Platform.isIOS ? true : false,
context: context,
isDismissible: isDismissible,
enableDrag: enableDrag,
diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txt
index 1707463f96..bed0aa58fb 100644
--- a/mobile/apps/photos/scripts/internal_changes.txt
+++ b/mobile/apps/photos/scripts/internal_changes.txt
@@ -1,3 +1,4 @@
+- Prateek: Change behaviour of bottom action sheet for iOS (test every sheet)
- Prateek: (i) Video streaming bitrate changes & enable streaming by default
- Prateek: (i) Add "Start with latest backups" (last 7 days onwards)
- Neeraj: (i) Admin Role + Suggest Delete feature