mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
feat: Removed limit of 5 search suggestions
This commit is contained in:
parent
3b80725673
commit
b5e5537691
3 changed files with 7 additions and 9 deletions
|
|
@ -12,8 +12,8 @@ import java.util.List;
|
|||
|
||||
@Dao
|
||||
public interface RecentSearchDao {
|
||||
@Query("SELECT * FROM recent_search GROUP BY search ORDER BY search DESC LIMIT :limit")
|
||||
List<String> getRecent(int limit);
|
||||
@Query("SELECT * FROM recent_search ORDER BY search ASC")
|
||||
List<String> getRecent();
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insert(RecentSearch search);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue