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 @@