tweaking a string to make it clearer

This commit is contained in:
tibbi
2021-02-07 23:06:14 +01:00
parent 195bb2573d
commit c3e7895a11
37 changed files with 40 additions and 40 deletions

View File

@ -94,7 +94,7 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
if (note?.type == NoteType.TYPE_CHECKLIST.value) {
val checklistItemType = object : TypeToken<List<ChecklistItem>>() {}.type
checklistItems = Gson().fromJson<ArrayList<ChecklistItem>>(note!!.value, checklistItemType) ?: ArrayList(1)
if (context.config.moveUndoneChecklistItems) {
if (context.config.moveDoneChecklistItems) {
checklistItems.sortBy { it.isDone }
}
}