Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: onTap not working for file type and extension results in search section

ashilkn82104c5174ae
diff --git a/lib/ui/viewer/search/search_section.dart b/lib/ui/viewer/search/search_section.dart
index 3c281fc1b2..e0c6213237 100644
--- a/lib/ui/viewer/search/search_section.dart
+++ b/lib/ui/viewer/search/search_section.dart
@@ -8,6 +8,7 @@ import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/viewer/file/no_thumbnail_widget.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
import "package:photos/ui/viewer/gallery/collection_page.dart";
+import "package:photos/ui/viewer/search/result/search_result_page.dart";
import "package:photos/ui/viewer/search/search_section_cta.dart";
import "package:photos/utils/navigation_util.dart";
@@ -102,6 +103,11 @@ class SearchExample extends StatelessWidget {
final genericSearchResult = searchResult as GenericSearchResult;
if (genericSearchResult.onResultTap != null) {
genericSearchResult.onResultTap!(context);
+ } else {
+ routeToPage(
+ context,
+ SearchResultPage(searchResult),
+ );
}
} else if (searchResult is AlbumSearchResult) {
final albumSearchResult = searchResult as AlbumSearchResult;