mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix recent groups not showing body text for unread history entries
This commit is contained in:
parent
9ffde130b9
commit
a28e1b8759
1 changed files with 5 additions and 2 deletions
|
@ -72,7 +72,10 @@ class RecentMangaHolder(
|
|||
} else {
|
||||
addMoreUpdatesText(!moreVisible)
|
||||
}
|
||||
readLastText(!moreVisible).takeIf { it.isNotEmpty() }?.let { binding.body.text = it }
|
||||
if (adapter.viewType.isHistory) {
|
||||
readLastText(!moreVisible).takeIf { it.isNotEmpty() }
|
||||
?.let { binding.body.text = it }
|
||||
}
|
||||
binding.endView.updateLayoutParams<ViewGroup.LayoutParams> {
|
||||
height = binding.mainView.height
|
||||
}
|
||||
|
@ -299,7 +302,7 @@ class RecentMangaHolder(
|
|||
private fun readLastText(show: Boolean, originalItem: RecentMangaItem? = null): String {
|
||||
val item = originalItem ?: adapter.getItem(bindingAdapterPosition) as? RecentMangaItem ?: return ""
|
||||
val notValidNum = item.mch.chapter.chapter_number <= 0
|
||||
return if (adapter.viewType.isHistory && item.chapter.id != item.mch.chapter.id) {
|
||||
return if (item.chapter.id != item.mch.chapter.id) {
|
||||
if (show) {
|
||||
itemView.context.timeSpanFromNow(R.string.read_, item.mch.history.last_read) + "\n"
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue