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