|
|
@ -119,7 +119,9 @@ class ChapterListAdapter(context: Context, val callback: Callback) : |
|
|
|
) { |
|
|
|
) { |
|
|
|
binding.run { |
|
|
|
binding.run { |
|
|
|
val isDur = callback.durChapterIndex() == item.index |
|
|
|
val isDur = callback.durChapterIndex() == item.index |
|
|
|
val cached = callback.isLocalBook || cacheFileNames.contains(item.getFileName()) |
|
|
|
val cached = callback.isLocalBook |
|
|
|
|
|
|
|
|| item.isVolume |
|
|
|
|
|
|
|
|| cacheFileNames.contains(item.getFileName()) |
|
|
|
if (payloads.isEmpty()) { |
|
|
|
if (payloads.isEmpty()) { |
|
|
|
if (isDur) { |
|
|
|
if (isDur) { |
|
|
|
tvChapterName.setTextColor(context.accentColor) |
|
|
|
tvChapterName.setTextColor(context.accentColor) |
|
|
|