π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][fix] l10n group types
Neeraj Guptafbc79e2315b1
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex 93baeef6ac..767821ebd4 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -1872,6 +1872,10 @@"thisMonth": "This month","thisYear": "This year","groupBy": "Group by",+ "groupByDay": "Day",+ "groupByWeek": "Week",+ "groupByMonth": "Month",+ "groupByYear": "Year","faceThumbnailGenerationFailed": "Unable to generate face thumbnails","fileAnalysisFailed": "Unable to analyze file","editAutoAddPeople": "Edit auto-add people",diff --git a/mobile/apps/photos/lib/models/gallery_type.dart b/mobile/apps/photos/lib/models/gallery_type.dartindex 9a773f1cb5..6fe9fefd42 100644--- a/mobile/apps/photos/lib/models/gallery_type.dart+++ b/mobile/apps/photos/lib/models/gallery_type.dart@@ -276,7 +276,7 @@ extension GalleyTypeExtension on GalleryType {case GalleryType.homepage:case GalleryType.archive:case GalleryType.uncategorized:- case GalleryType.favorite:+ case GalleryType.favorite:case GalleryType.ownedCollection:case GalleryType.searchResults:case GalleryType.locationTag:diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dartindex c75bfac474..e2393ba27e 100644--- a/mobile/apps/photos/lib/services/memories_cache_service.dart+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart@@ -224,9 +224,8 @@ class MemoriesCacheService {}return _memoriesGetLock.synchronized(() async {if (_cachedMemories != null && _cachedMemories!.isNotEmpty) {- final currentMemories = _cachedMemories!- .where((memory) => memory.shouldShowNow())- .toList();+ final currentMemories =+ _cachedMemories!.where((memory) => memory.shouldShowNow()).toList();if (currentMemories.isNotEmpty) {_logger.info("Found memories in memory cache");return currentMemories;diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dartindex 844b641f8d..14e008e381 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart@@ -32,6 +32,23 @@ extension GroupTypeExtension on GroupType {}}+ String getLocalizedName(BuildContext context) {+ switch (this) {+ case GroupType.day:+ return AppLocalizations.of(context).groupByDay;+ case GroupType.week:+ return AppLocalizations.of(context).groupByWeek;+ case GroupType.month:+ return AppLocalizations.of(context).groupByMonth;+ case GroupType.size:+ return "Size";+ case GroupType.year:+ return AppLocalizations.of(context).groupByYear;+ case GroupType.none:+ return "None";+ }+ }+bool timeGrouping() {return this == GroupType.day ||this == GroupType.week ||diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dartindex c3f0483d2a..7aed402757 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart@@ -1010,7 +1010,6 @@ class GalleryIndexUpdatedEvent {GalleryIndexUpdatedEvent(this.tag, this.index);}-/// Custom scroll physics that extends [BouncingScrollPhysics] to provide/// exponential bouncing behavior for scrollable widgets.///diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dartindex 8147e8e047..7798303d4b 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart@@ -115,7 +115,7 @@ class _ItemsWidgetState extends State<ItemsWidget> {key: ValueKey(groupType.name),menuItemColor: getEnteColorScheme(context).fillFaint,captionedTextWidget: CaptionedTextWidget(- title: groupType.name,+ title: groupType.getLocalizedName(context),),trailingIcon: currentGroupType == groupType ? Icons.check : null,alignCaptionedTextToLeft: true,