From cc1332856db3b6b903ab6c9ed9066a484acd0f78 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Thu, 17 Oct 2024 15:30:12 +0530 Subject: [PATCH] [mob][photos] Surface hide within person cluster --- mobile/lib/models/gallery_type.dart | 4 ++-- .../lib/ui/viewer/actions/file_selection_actions_widget.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/lib/models/gallery_type.dart b/mobile/lib/models/gallery_type.dart index bff3a6c312..9712dbc267 100644 --- a/mobile/lib/models/gallery_type.dart +++ b/mobile/lib/models/gallery_type.dart @@ -204,15 +204,15 @@ extension GalleyTypeExtension on GalleryType { case GalleryType.locationTag: case GalleryType.quickLink: case GalleryType.magic: + case GalleryType.peopleTag: + case GalleryType.cluster: return true; case GalleryType.hiddenSection: - case GalleryType.peopleTag: case GalleryType.hiddenOwnedCollection: case GalleryType.localFolder: case GalleryType.trash: case GalleryType.favorite: - case GalleryType.cluster: case GalleryType.sharedCollection: return false; } diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart index 0d1854d066..385ad09950 100644 --- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart +++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart @@ -59,12 +59,12 @@ class FileSelectionActionsWidget extends StatefulWidget { const FileSelectionActionsWidget( this.type, this.selectedFiles, { - Key? key, + super.key, this.collection, this.person, this.clusterID, this.deviceCollection, - }) : super(key: key); + }); @override State createState() =>