π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Stop passing sort order to DetailPage since DetailPage uses files in GalleryFilesState which updates when sort order changes in gallery
ashilknfa3a9f4f52bf
diff --git a/mobile/lib/ui/viewer/file/detail_page.dart b/mobile/lib/ui/viewer/file/detail_page.dartindex 726b74d950..a4f9a26cc4 100644--- a/mobile/lib/ui/viewer/file/detail_page.dart+++ b/mobile/lib/ui/viewer/file/detail_page.dart@@ -40,14 +40,12 @@ class DetailPageConfiguration {final int selectedIndex;final String tagPrefix;final DetailPageMode mode;- final bool sortOrderAsc;DetailPageConfiguration(this.files,this.selectedIndex,this.tagPrefix, {this.mode = DetailPageMode.full,- this.sortOrderAsc = false,});DetailPageConfiguration copyWith({@@ -55,13 +53,11 @@ class DetailPageConfiguration {GalleryLoader? asyncLoader,int? selectedIndex,String? tagPrefix,- bool? sortOrderAsc,}) {return DetailPageConfiguration(files ?? this.files,selectedIndex ?? this.selectedIndex,tagPrefix ?? this.tagPrefix,- sortOrderAsc: sortOrderAsc ?? this.sortOrderAsc,);}}@@ -91,6 +87,7 @@ class _DetailPageState extends State<DetailPage> {void initState() {super.initState();_files = widget.config.files;+_selectedIndexNotifier.value = widget.config.selectedIndex;_pageController = PageController(initialPage: _selectedIndexNotifier.value);_guestViewEventSubscription =diff --git a/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart b/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dartindex 4558f2e9ed..1a5317c407 100644--- a/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart+++ b/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart@@ -172,7 +172,6 @@ class GalleryFileWidget extends StatelessWidget {galleryFiles,galleryFiles.indexOf(file),tag,- sortOrderAsc: GalleryContextState.of(context)!.sortOrderAsc,),);routeToPage(context, page, forceCustomPageRoute: true);