|
|
|
@ -106,12 +106,14 @@ public class FindBookHolder extends ViewHolderImpl<Book> { |
|
|
|
|
} else { |
|
|
|
|
data.setNewestChapterTitle(""); |
|
|
|
|
tvNewestChapter.setText(""); |
|
|
|
|
tvNewestChapter.setVisibility(View.GONE); |
|
|
|
|
} |
|
|
|
|
if (!StringHelper.isEmpty(data.getDesc())) { |
|
|
|
|
tvDesc.setText(String.format("简介:%s", data.getDesc())); |
|
|
|
|
} else { |
|
|
|
|
data.setDesc(""); |
|
|
|
|
tvDesc.setText(""); |
|
|
|
|
tvDesc.setVisibility(View.GONE); |
|
|
|
|
} |
|
|
|
|
if (!StringHelper.isEmpty(source.getSourceName()) && !"未知书源".equals(source.getSourceName())) |
|
|
|
|
tvSource.setText(String.format("书源:%s", source.getSourceName())); |
|
|
|
@ -132,10 +134,16 @@ public class FindBookHolder extends ViewHolderImpl<Book> { |
|
|
|
|
private void initOtherInfo(Book book, ReadCrawler rc) { |
|
|
|
|
//简介
|
|
|
|
|
if (StringHelper.isEmpty(tvDesc.getText().toString())) { |
|
|
|
|
tvNewestChapter.setVisibility(View.VISIBLE); |
|
|
|
|
tvDesc.setText(String.format("简介:%s", book.getDesc())); |
|
|
|
|
} else { |
|
|
|
|
tvNewestChapter.setVisibility(View.GONE); |
|
|
|
|
} |
|
|
|
|
if (StringHelper.isEmpty(tvNewestChapter.getText().toString())) { |
|
|
|
|
tvNewestChapter.setVisibility(View.VISIBLE); |
|
|
|
|
tvNewestChapter.setText(getContext().getString(R.string.newest_chapter, book.getNewestChapterTitle())); |
|
|
|
|
} else { |
|
|
|
|
tvNewestChapter.setVisibility(View.GONE); |
|
|
|
|
} |
|
|
|
|
if (!StringHelper.isEmpty(book.getAuthor())) { |
|
|
|
|
tvAuthor.setText(book.getAuthor()); |
|
|
|
|