Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Fix title for month grouping

Neeraj Guptacff695dd02ff
diff --git a/mobile/lib/ui/viewer/gallery/component/group/type.dart b/mobile/lib/ui/viewer/gallery/component/group/type.dart
index 0e36d0106a..b101fda925 100644
--- a/mobile/lib/ui/viewer/gallery/component/group/type.dart
+++ b/mobile/lib/ui/viewer/gallery/component/group/type.dart
@@ -35,10 +35,13 @@ extension GroupTypeExtension on GroupType {
final date = DateTime.fromMicrosecondsSinceEpoch(file.creationTime!);
return DateFormat.y(Localizations.localeOf(context).languageCode)
.format(date);
+ } else if (this == GroupType.month) {
+ final date = DateTime.fromMicrosecondsSinceEpoch(file.creationTime!);
+ return DateFormat.MMMd(Localizations.localeOf(context).languageCode)
+ .format(date);
} else {
throw UnimplementedError("not implemented for $this");
}
- throw UnimplementedError("not implemented for $this");
}
bool areFromSameGroup(EnteFile first, EnteFile second) {