diff --git a/.idea/misc.xml b/.idea/misc.xml index 0ee8e03..386286d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -22,6 +22,7 @@ + diff --git a/app/src/main/java/xyz/fycz/myreader/ui/activity/BookDetailedActivity.java b/app/src/main/java/xyz/fycz/myreader/ui/activity/BookDetailedActivity.java index b62a4fb..eaf53fd 100644 --- a/app/src/main/java/xyz/fycz/myreader/ui/activity/BookDetailedActivity.java +++ b/app/src/main/java/xyz/fycz/myreader/ui/activity/BookDetailedActivity.java @@ -426,7 +426,7 @@ public class BookDetailedActivity extends BaseActivity() { diff --git a/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/FindBookHolder.java b/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/FindBookHolder.java index 35f5584..11a4cf8 100644 --- a/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/FindBookHolder.java +++ b/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/FindBookHolder.java @@ -106,12 +106,14 @@ public class FindBookHolder extends ViewHolderImpl { } 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 { 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());