Fix: Crash on changing category

This commit is contained in:
machiav3lli 2022-04-08 01:24:15 +02:00
parent ac04b1641c
commit a1e6b30408
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ const val NOTIFICATION_ID_INSTALLER = 4
const val ROW_REPOSITORY_ID = "repositoryId"
const val ROW_PACKAGE_NAME = "packageName"
const val ROW_NAME = "name"
const val ROW_LABEL = "label"
const val ROW_SUMMARY = "summary"
const val ROW_DESCRIPTION = "description"
const val ROW_ADDED = "added"

View File

@ -190,7 +190,7 @@ interface ProductDao : BaseDao<Product> {
// Filter only the selected repository/category
if (section is Section.Category) {
builder += "AND category.${ROW_NAME} = ?"
builder += "AND category.${ROW_LABEL} = ?"
builder %= section.name
} else if (section is Section.Repository) {
builder += "AND product.${ROW_REPOSITORY_ID} = ?"