|
|
@ -51,7 +51,12 @@ class ChangeSourceAdapter( |
|
|
|
binding.apply { |
|
|
|
binding.apply { |
|
|
|
if (bundle == null) { |
|
|
|
if (bundle == null) { |
|
|
|
tvOrigin.text = item.originName |
|
|
|
tvOrigin.text = item.originName |
|
|
|
tvAuthor.text = context.getString(R.string.author_show, item.author) |
|
|
|
val author = if (item.author.isEmpty()) { |
|
|
|
|
|
|
|
context.getString(R.string.empty) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
item.author |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tvAuthor.text = context.getString(R.string.author_show, author) |
|
|
|
tvAuthor.isGone = viewModel.author == item.author |
|
|
|
tvAuthor.isGone = viewModel.author == item.author |
|
|
|
tvLast.text = item.getDisplayLastChapterTitle() |
|
|
|
tvLast.text = item.getDisplayLastChapterTitle() |
|
|
|
if (callBack.bookUrl == item.bookUrl) { |
|
|
|
if (callBack.bookUrl == item.bookUrl) { |
|
|
|