mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 23:13:36 +00:00
Limited number of search items in search bar
This commit is contained in:
@@ -80,10 +80,10 @@ public class RecentSearchRepository {
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getRecentSearchSuggestion() {
|
||||
public List<String> getRecentSearchSuggestion(int limit) {
|
||||
List<String> recent = new ArrayList<>();
|
||||
|
||||
RecentThreadSafe suggestionsThread = new RecentThreadSafe(recentSearchDao,10);
|
||||
RecentThreadSafe suggestionsThread = new RecentThreadSafe(recentSearchDao,limit);
|
||||
Thread thread = new Thread(suggestionsThread);
|
||||
thread.start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user