diff --git a/core/database/src/main/java/de/mm20/launcher2/database/SearchDao.kt b/core/database/src/main/java/de/mm20/launcher2/database/SearchDao.kt index 9e47e1db..355b76e5 100644 --- a/core/database/src/main/java/de/mm20/launcher2/database/SearchDao.kt +++ b/core/database/src/main/java/de/mm20/launcher2/database/SearchDao.kt @@ -24,7 +24,7 @@ interface SearchDao { "WHERE ((:manuallySorted AND pinned > 1) OR " + "(:automaticallySorted AND pinned = 1) OR" + "(:frequentlyUsed AND pinned = 0 AND launchCount > 0)" + - ") ORDER BY pinned DESC, weight DESC, launchCount DESC LIMIT :limit" + ") AND hidden = 0 ORDER BY pinned DESC, weight DESC, launchCount DESC LIMIT :limit" ) fun getFavorites( manuallySorted: Boolean = false, @@ -39,7 +39,7 @@ interface SearchDao { "(:manuallySorted AND pinned > 1) OR " + "(:automaticallySorted AND pinned = 1) OR" + "(:frequentlyUsed AND pinned = 0 AND launchCount > 0)" + - ") ORDER BY pinned DESC, weight DESC, launchCount DESC LIMIT :limit" + ") AND hidden = 0 ORDER BY pinned DESC, weight DESC, launchCount DESC LIMIT :limit" ) fun getFavoritesWithTypes( includeTypes: List, @@ -55,7 +55,7 @@ interface SearchDao { "(:manuallySorted AND pinned > 1) OR " + "(:automaticallySorted AND pinned = 1) OR" + "(:frequentlyUsed AND pinned = 0 AND launchCount > 0)" + - ") ORDER BY pinned DESC, weight DESC, launchCount DESC LIMIT :limit" + ") AND hidden = 0 ORDER BY pinned DESC, weight DESC, launchCount DESC LIMIT :limit" ) fun getFavoritesWithoutTypes( excludeTypes: List,