|
|
|
@ -103,6 +103,7 @@ public class FindBookHolder extends ViewHolderImpl<Book> { |
|
|
|
|
initTagList(data); |
|
|
|
|
if (!StringHelper.isEmpty(data.getNewestChapterTitle())) { |
|
|
|
|
tvNewestChapter.setText(getContext().getString(R.string.newest_chapter, data.getNewestChapterTitle())); |
|
|
|
|
tvNewestChapter.setVisibility(View.VISIBLE); |
|
|
|
|
} else { |
|
|
|
|
data.setNewestChapterTitle(""); |
|
|
|
|
tvNewestChapter.setText(""); |
|
|
|
@ -110,6 +111,7 @@ public class FindBookHolder extends ViewHolderImpl<Book> { |
|
|
|
|
} |
|
|
|
|
if (!StringHelper.isEmpty(data.getDesc())) { |
|
|
|
|
tvDesc.setText(String.format("简介:%s", data.getDesc())); |
|
|
|
|
tvDesc.setVisibility(View.VISIBLE); |
|
|
|
|
} else { |
|
|
|
|
data.setDesc(""); |
|
|
|
|
tvDesc.setText(""); |
|
|
|
@ -134,14 +136,14 @@ 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())); |
|
|
|
|
tvNewestChapter.setVisibility(View.VISIBLE); |
|
|
|
|
} 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())); |
|
|
|
|
tvNewestChapter.setVisibility(View.VISIBLE); |
|
|
|
|
} else { |
|
|
|
|
tvNewestChapter.setVisibility(View.GONE); |
|
|
|
|
} |
|
|
|
|