From f7c47d5783858c3d905cfa7b78feb7e56575c4b7 Mon Sep 17 00:00:00 2001
From: fengyuecanzhu <1021300691@qq.com>
Date: Fri, 12 Aug 2022 09:20:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=91=E7=8E=B0=E4=B9=A6?=
=?UTF-8?q?=E7=B1=8D=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/misc.xml | 1 +
.../fycz/myreader/ui/activity/BookDetailedActivity.java | 2 +-
.../fycz/myreader/ui/adapter/holder/FindBookHolder.java | 8 ++++++++
3 files changed, 10 insertions(+), 1 deletion(-)
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());