Skip to content

Commit 073c277

Browse files
fix dblist type bug for the widget in the launcher
1 parent c6ff2db commit 073c277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/nononsenseapps/notepad/widget/list/ListWidgetService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ public void onDataSetChanged() {
311311
// if user does not want to also show completed tasks in widget, the query
312312
// will filter away database records with a "completed" unix time
313313
listWhere = isShowingCompleted
314-
? Task.Columns.DBLIST + " IS ?"
315-
: Task.Columns.DBLIST + " IS ? AND " + Task.Columns.COMPLETED + " IS NULL";
314+
? "CAST(" + Task.Columns.DBLIST + " AS INTEGER) IS ?"
315+
: "CAST(" + Task.Columns.DBLIST + " AS INTEGER) IS ? AND " + Task.Columns.COMPLETED + " IS NULL";
316316
} else {
317317
// all list ids
318318
listArg = null;

0 commit comments

Comments
 (0)