This commit is contained in:
machiav3lli 2022-02-18 02:53:48 +01:00
parent d4fa141962
commit 768c8dfa1d

View File

@ -97,18 +97,6 @@ interface ProductDao : BaseDao<Product> {
buildProductQuery(installed, updates, searchQuery, section, order, numberOfItems)
)
@RawQuery(observedEntities = [Product::class])
fun queryList(
query: SupportSQLiteQuery
): DataSource.Factory<Int, Product>
fun queryList(
installed: Boolean, updates: Boolean, searchQuery: String,
section: Section, order: Order, numberOfItems: Int = 0
): DataSource.Factory<Int, Product> = queryList(
buildProductQuery(installed, updates, searchQuery, section, order, numberOfItems)
)
// TODO add an UpdateCategory argument
fun buildProductQuery(
installed: Boolean, updates: Boolean, searchQuery: String,