Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Decrease the chances of hero animation not working between faces in 'All' screen of People and People section when going back to search section from 'All' screen

ashilkn102929a5d63b
diff --git a/mobile/lib/ui/viewer/search_tab/people_section.dart b/mobile/lib/ui/viewer/search_tab/people_section.dart
index 7ec0686ed2..043f2c4439 100644
--- a/mobile/lib/ui/viewer/search_tab/people_section.dart
+++ b/mobile/lib/ui/viewer/search_tab/people_section.dart
@@ -198,8 +198,9 @@ class PersonSearchExample extends StatelessWidget {
Widget build(BuildContext context) {
final bool isCluster = (searchResult.type() == ResultType.faces &&
int.tryParse(searchResult.name()) != null);
- final heroTag =
- searchResult.heroTag() + (searchResult.previewThumbnail()?.tag ?? "");
+ final heroTag = searchResult.heroTag() +
+ (searchResult.previewThumbnail()?.tag ?? "") +
+ searchResult.resultFiles().length.toString();
return GestureDetector(
onTap: () {
RecentSearches().add(searchResult.name());