Commit c48e1d96 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 3fbe8b8b
......@@ -135,8 +135,8 @@ class MainMyAdapter(context: Context, taskData: MutableList<MyInfo.AutoListBean>
if (taskBean.otherConfig != null) {
if (taskBean.baseConfig != null && taskBean.otherConfig.max != 0) {
holder.itemTaskPb.visibility = View.VISIBLE
holder.itemTaskPb.progress = taskBean.otherConfig.complete
holder.itemTaskPb.max = taskBean.otherConfig.max
holder.itemTaskPb.progress = taskBean.otherConfig.complete
} else {
holder.itemTaskPb.visibility = View.GONE
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment