show right dialog when opening a broken task

This commit is contained in:
Phillip Thelen 2025-01-06 14:59:17 +01:00
parent 03de0bbf91
commit a8234e6b2a

View file

@ -307,7 +307,11 @@ abstract class BaseTaskViewHolder(
}
}
task?.let {
openTaskFunc(it, mainTaskWrapper)
if (it.challengeBroken?.isNotBlank() == true) {
brokenTaskFunc(it)
} else {
openTaskFunc(it, mainTaskWrapper)
}
}
return true
}