mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-14 09:02:21 -05:00
Search filter app lists by package name as well
previously we only filtered by name and summary
This commit is contained in:
@@ -56,7 +56,8 @@ fun AppListPresenter(
|
||||
val matchesRepos = filteredRepositoryIds.isEmpty() || it.repoId in filteredRepositoryIds
|
||||
val matchesQuery = searchQuery.isEmpty() ||
|
||||
it.name.normalize().contains(searchQuery, ignoreCase = true) ||
|
||||
it.summary.normalize().contains(searchQuery, ignoreCase = true)
|
||||
it.summary.normalize().contains(searchQuery, ignoreCase = true) ||
|
||||
it.packageName.contains(searchQuery, ignoreCase = true)
|
||||
val matchesCompatibility = !filterIncompatible || it.isCompatible
|
||||
matchesCategories && matchesRepos && matchesQuery && matchesCompatibility
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user