饼图按系列根任务与任务当前项目归并,选择器改为立即创建(v3.11)
This commit is contained in:
@@ -34,7 +34,6 @@ class ProjectAdapter(
|
||||
private val onLongClick: (Project) -> Unit,
|
||||
private val onMore: (Project) -> Unit,
|
||||
private val onStart: (Task) -> Unit,
|
||||
private val onStartRecord: (ProjectCompletion) -> Unit,
|
||||
private val onEdit: (Task) -> Unit,
|
||||
private val onToggleDone: () -> Unit,
|
||||
) : RecyclerView.Adapter<ProjectAdapter.VH>() {
|
||||
@@ -186,11 +185,8 @@ class ProjectAdapter(
|
||||
val tvTitle: TextView = item.findViewById(R.id.tvTaskTitle)
|
||||
val tvMeta: TextView = item.findViewById(R.id.tvTaskMeta)
|
||||
val btnPlay: ImageView = item.findViewById(R.id.btnTaskPlay)
|
||||
// 完成记录行同样带开始键:点一下就把这条记录对应的任务重新开始一轮,
|
||||
// 具体绑给哪一条(系列根任务 / 当前未完成实例)由上层按 id 反查
|
||||
btnPlay.visible(true)
|
||||
btnPlay.tint(ctx.col(R.color.brand))
|
||||
btnPlay.setOnClickListener { onStartRecord(record) }
|
||||
// 完成记录行只做历史展示:开始键只出现在上面的创建任务行
|
||||
btnPlay.visible(false)
|
||||
|
||||
// 完成记录与任务页底部一致:任务名划线,完成原因跟在后面但不划线
|
||||
val noteText = record.note.replace('\n', ' ')
|
||||
|
||||
Reference in New Issue
Block a user