mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-18 15:18:37 -05:00
Fix no results sometimes not correctly displayed
This commit is contained in:
@@ -685,9 +685,13 @@ public class DBHelper extends SQLiteOpenHelper
|
||||
*/
|
||||
public int getLoyaltyCardCount(String filter)
|
||||
{
|
||||
if (filter.isEmpty()) {
|
||||
return getLoyaltyCardCount();
|
||||
}
|
||||
|
||||
SQLiteDatabase db = getReadableDatabase();
|
||||
return (int) DatabaseUtils.queryNumEntries(db, LoyaltyCardDbFTS.TABLE,
|
||||
LoyaltyCardDbIds.TABLE + " MATCH ? ", withArgs(filter + '*'));
|
||||
LoyaltyCardDbFTS.TABLE + " MATCH ? ", withArgs(filter + '*'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user