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

Commit f60e77b7 authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

Merge branch 'issue-1044' into 'master'

Limit search suggestion to three

See merge request e/apps/BlissLauncher!34
parents e10d9921 1b254eee
Loading
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 -> {