Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b254eee authored by Dayona Joseph's avatar Dayona Joseph Committed by Romain Hunault
Browse files

Limit search suggestion to three

parent e10d9921
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public class DuckDuckGoProvider implements SuggestionProvider {
                }))
                .onErrorReturn(throwable -> new ArrayList<>())
                .flatMapIterable(duckDuckGoResults -> duckDuckGoResults)
                .take(5)
                .take(3)
                .map(DuckDuckGoResult::getPhrase)
                .toList()
                .map(suggestions -> {
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ public class QwantProvider implements SuggestionProvider {
                }))
                .filter(qwantResult -> qwantResult.getStatus().equals("success"))
                .flatMapIterable(qwantResult -> qwantResult.getData().getItems())
                .take(5)
                .take(3)
                .map(QwantItem::getValue)
                .toList()
                .map(suggestions -> {