Skip to content

Commit a5f1f12

Browse files
committed
Fixed missing content of checklist widget
1 parent 1df1059 commit a5f1f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/WidgetAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
125125
note = context.notesDB.getNoteWithId(noteId)
126126
if (note?.type == NoteType.TYPE_CHECKLIST.value) {
127127
val checklistItemType = object : TypeToken<List<ChecklistItem>>() {}.type
128-
checklistItems = Gson().fromJson<ArrayList<ChecklistItem>>(note!!.value, checklistItemType) ?: ArrayList(1)
128+
checklistItems = Gson().fromJson<ArrayList<ChecklistItem>>(note!!.getNoteStoredValue(context), checklistItemType) ?: ArrayList(1)
129129

130130
// checklist title can be null only because of the glitch in upgrade to 6.6.0, remove this check in the future
131131
checklistItems = checklistItems.filter { it.title != null }.toMutableList() as ArrayList<ChecklistItem>

0 commit comments

Comments
 (0)