Search filter app lists by package name as well

previously we only filtered by name and summary
This commit is contained in:
Torsten Grote
2025-11-07 16:55:21 -03:00
parent 99e14793df
commit bfa775bf98

View File

@@ -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
}