fix search in category

This commit is contained in:
korelstar 2019-09-12 09:10:55 +02:00 committed by GitHub
parent ff7f766ce7
commit b7e6272532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,7 +343,7 @@ public class NoteSQLiteOpenHelper extends SQLiteOpenHelper {
}
if (category != null) {
where.add(key_category + "=? OR " + key_category + " LIKE ?");
where.add("(" + key_category + "=? OR " + key_category + " LIKE ? )");
args.add(category);
args.add(category + "/%");
}