fix:滑动目录 一级目录的tag错误显示

pull/1555/head
Xwite 3 years ago
parent eb845ea7b9
commit e7962ae3fc
  1. 3
      app/src/main/java/io/legado/app/ui/book/toc/ChapterListAdapter.kt

@ -14,6 +14,7 @@ import io.legado.app.lib.theme.ThemeUtils
import io.legado.app.help.AppConfig import io.legado.app.help.AppConfig
import io.legado.app.utils.getCompatColor import io.legado.app.utils.getCompatColor
import io.legado.app.utils.visible import io.legado.app.utils.visible
import io.legado.app.utils.gone
class ChapterListAdapter(context: Context, val callback: Callback) : class ChapterListAdapter(context: Context, val callback: Callback) :
RecyclerAdapter<BookChapter, ItemChapterListBinding>(context) { RecyclerAdapter<BookChapter, ItemChapterListBinding>(context) {
@ -68,6 +69,8 @@ class ChapterListAdapter(context: Context, val callback: Callback) :
//卷名不显示tag(更新时间规则) //卷名不显示tag(更新时间规则)
tvTag.text = item.tag tvTag.text = item.tag
tvTag.visible() tvTag.visible()
} else {
tvTag.gone()
} }
upHasCache(binding, isDur, cached) upHasCache(binding, isDur, cached)
} else { } else {

Loading…
Cancel
Save