feat: Removed limit of 5 search suggestions

This commit is contained in:
antonio 2023-06-24 11:16:05 +02:00
parent 3b80725673
commit b5e5537691
3 changed files with 7 additions and 9 deletions

View file

@ -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);