From c2c3632fab12bd5c2227eccc5993673363fba0f7 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Fri, 8 Apr 2022 03:34:50 +0200 Subject: [PATCH] Fix: Checking signature for if there's updates in Product's row query --- src/main/kotlin/com/looker/droidify/database/DAOs.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/looker/droidify/database/DAOs.kt b/src/main/kotlin/com/looker/droidify/database/DAOs.kt index 8f313183..d05e0faa 100644 --- a/src/main/kotlin/com/looker/droidify/database/DAOs.kt +++ b/src/main/kotlin/com/looker/droidify/database/DAOs.kt @@ -135,8 +135,9 @@ interface ProductDao : BaseDao { ): SupportSQLiteQuery { val builder = QueryBuilder() + // TODO improve signature matching logic val signatureMatches = """$TABLE_INSTALLED.$ROW_SIGNATURE IS NOT NULL AND - $TABLE_PRODUCT.$ROW_SIGNATURES LIKE ('%.' || $TABLE_INSTALLED.$ROW_SIGNATURE || '.%') AND + $TABLE_PRODUCT.$ROW_SIGNATURES LIKE ('%' || $TABLE_INSTALLED.$ROW_SIGNATURE || '%') AND $TABLE_PRODUCT.$ROW_SIGNATURES != ''""" // Select the return fields