Fix widget crash

pull/2851/head
Alex Baker 7 months ago
parent 1eff2d1cd5
commit 26aa916c20

@ -92,7 +92,8 @@ internal class TasksWidgetViewFactory(
override fun getViewTypeCount(): Int = 2
override fun getItemId(position: Int) = getTask(position).id
override fun getItemId(position: Int) =
if (tasks.isHeader(position)) tasks.getSection(position).value else getTask(position).id
override fun hasStableIds(): Boolean = true

Loading…
Cancel
Save