修复:移除常驻通知底部模板按钮;提前完成只留带备注记录、隐藏无备注源任务行(v0.8)
This commit is contained in:
@@ -125,8 +125,10 @@ class TasksFragment : Fragment(R.layout.fragment_tasks) {
|
||||
|
||||
val all = Store.tasks(includeDone = true)
|
||||
val spans = if (all.any { it.done }) Store.lastSessions() else emptyMap()
|
||||
// 提前完成的任务:源任务行(无备注)隐藏,只显示带备注的独立完成记录
|
||||
val finishedIds = Store.completedSourceIds()
|
||||
|
||||
val matched = all.filter { matches(it) }
|
||||
val matched = all.filter { matches(it) && !(it.done && it.id in finishedIds) }
|
||||
val rows = ArrayList<TaskAdapter.Row>(matched.size)
|
||||
matched.forEach { rows.add(toRow(it, spans)) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user