Commit 2afcabac authored by jyx's avatar jyx

代码优化

parent 6f62eced
......@@ -19,7 +19,7 @@ class MainMyAdapter(context: Context, taskData: MutableList<MyInfo.AutoListBean>
// 分享文章
const val TO_SHARE_NEWS = "TO_SHARE_NEWS"
// 跳转首页
// 高额任务
const val APP_HiGH_ACTIVITY = "APP_HiGH_ACTIVITY"
// 跳转首页
......@@ -115,6 +115,12 @@ class MainMyAdapter(context: Context, taskData: MutableList<MyInfo.AutoListBean>
holder.itemTaskClick.setBackgroundResource(R.drawable.shape_btn_orange)
holder.itemTaskClick.setTextColor(mContext.resources.getColor(R.color.color_FB560C))
}
else -> {
if (taskBean.baseConfig.taskId == APP_HiGH_ACTIVITY) {
holder.itemTaskClick.setBackgroundResource(R.drawable.shape_btn_orange_complete)
holder.itemTaskClick.setTextColor(Color.WHITE)
}
}
}
} else {
holder.itemTaskClick.setBackgroundResource(R.drawable.shape_btn_orange)
......
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