From 84b6fcc6db6c921ba1e89d356b2834ea8e25037a Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 4 Apr 2021 10:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E6=BA=90=E6=B7=BB=E5=8A=A0=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=A0=A1=E9=AA=8C=E4=BD=9C=E8=80=85=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/changesource/ChangeSourceAdapter.kt | 9 +-------- app/src/main/res/layout/item_change_source.xml | 7 +++---- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceAdapter.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceAdapter.kt index 1222391cc..b5298d4b7 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceAdapter.kt @@ -5,7 +5,6 @@ import android.os.Bundle import android.view.View import android.view.ViewGroup import androidx.appcompat.widget.PopupMenu -import androidx.core.view.isGone import androidx.recyclerview.widget.DiffUtil import io.legado.app.R import io.legado.app.base.adapter.DiffRecyclerAdapter @@ -51,13 +50,7 @@ class ChangeSourceAdapter( binding.apply { if (bundle == null) { tvOrigin.text = item.originName - val author = if (item.author.isEmpty()) { - context.getString(R.string.empty) - } else { - item.author - } - tvAuthor.text = context.getString(R.string.author_show, author) - tvAuthor.isGone = viewModel.author == item.author + tvAuthor.text = item.author tvLast.text = item.getDisplayLastChapterTitle() if (callBack.bookUrl == item.bookUrl) { ivChecked.visible() diff --git a/app/src/main/res/layout/item_change_source.xml b/app/src/main/res/layout/item_change_source.xml index 809b2b93d..28d02caca 100644 --- a/app/src/main/res/layout/item_change_source.xml +++ b/app/src/main/res/layout/item_change_source.xml @@ -23,7 +23,6 @@ android:singleLine="true" android:textColor="@color/primaryText" android:maxWidth="160dp" - android:visibility="gone" app:layout_constraintTop_toTopOf="parent" app:layout_constraintRight_toLeftOf="@+id/iv_checked" /> @@ -40,9 +39,9 @@