mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 11:22:12 +00:00
Fix: Crash on changing category
This commit is contained in:
parent
ac04b1641c
commit
a1e6b30408
@ -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"
|
||||
|
@ -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} = ?"
|
||||
|
Loading…
x
Reference in New Issue
Block a user