Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix people_all_page missing small person

laurenspriem6b5c4f07c2d4
diff --git a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
index efb211825d..a28e3d12ed 100644
--- a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
+++ b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
@@ -78,7 +78,8 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {
normalFaces.clear();
extraFaces.clear();
for (final face in allFaces) {
- if (face.fileCount() >= kMinimumClusterSizeSearchResult) {
+ if (face.fileCount() >= kMinimumClusterSizeSearchResult ||
+ face.name().isNotEmpty) {
normalFaces.add(face);
} else {
extraFaces.add(face);
@@ -246,7 +247,9 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {
mainAxisSize: MainAxisSize.min,
children: [
Text(
- _showingAllFaces ? S.of(context).showLessFaces : S.of(context).showMoreFaces,
+ _showingAllFaces
+ ? S.of(context).showLessFaces
+ : S.of(context).showMoreFaces,
style: getEnteTextTheme(context).small.copyWith(
color: Theme.of(context).colorScheme.primary,
),