Merge pull request #1486 from ybasefinal/master

将已缓存章节加粗显示修改为未缓存章节加粗显示,更易于辨认
This commit is contained in:
kunfei 2022-01-01 18:55:49 +08:00 committed by GitHub
commit 9d5a5f9ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {