将已缓存章节加粗显示修改为未缓存章节加粗显示,更易于辨认

This commit is contained in:
Yuan Lei 2021-12-31 22:16:13 +08:00
parent 020adf45ef
commit 8b9045af27

View File

@ -75,7 +75,7 @@ class ChapterListAdapter(context: Context, val callback: Callback) :
private fun upHasCache(binding: ItemChapterListBinding, isDur: Boolean, cached: Boolean) =
binding.apply {
tvChapterName.paint.isFakeBoldText = cached
tvChapterName.paint.isFakeBoldText = !cached
ivChecked.setImageResource(R.drawable.ic_outline_cloud_24)
ivChecked.visible(!cached)
if (isDur) {