diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaAllInOneHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaAllInOneHolder.kt
index 009dd9f6c..d9900c04d 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaAllInOneHolder.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaAllInOneHolder.kt
@@ -35,8 +35,6 @@ import kotlinx.android.synthetic.main.manga_all_in_one_header.btn_share
import kotlinx.android.synthetic.main.manga_all_in_one_header.btn_smart_search
import kotlinx.android.synthetic.main.manga_all_in_one_header.btn_tracking
import kotlinx.android.synthetic.main.manga_all_in_one_header.btn_webview
-import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_artist
-import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_artist_label
import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_author
import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_author_label
import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_chapters
@@ -154,22 +152,6 @@ class MangaAllInOneHolder(
}
.launchIn(adapter.delegate.controllerScope)
- manga_artist.longClicks()
- .onEach {
- adapter.delegate.copyToClipboard(manga_artist_label.text.toString(), manga_artist.text.toString())
- }
- .launchIn(adapter.delegate.controllerScope)
-
- manga_artist.clicks()
- .onEach {
- var text = manga_artist.text.toString()
- if (adapter.delegate.isEHentaiBasedSource()) {
- text = adapter.delegate.wrapTag("artist", text)
- }
- adapter.delegate.performGlobalSearch(text)
- }
- .launchIn(adapter.delegate.controllerScope)
-
manga_author.longClicks()
.onEach {
// EXH Special case E-Hentai/ExHentai to ignore author field (unused)
@@ -228,18 +210,12 @@ class MangaAllInOneHolder(
manga.title
}
- // Update artist TextView.
- manga_artist.text = if (manga.artist.isNullOrBlank()) {
+ // Update author/artist TextView.
+ val authors = listOf(manga.author, manga.artist).filter { !it.isNullOrBlank() }.distinct()
+ manga_author.text = if (authors.isEmpty()) {
itemView.context.getString(R.string.unknown)
} else {
- manga.artist
- }
-
- // Update author TextView.
- manga_author.text = if (manga.author.isNullOrBlank()) {
- itemView.context.getString(R.string.unknown)
- } else {
- manga.author
+ authors.joinToString(", ")
}
// If manga source is known update source TextView.
diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt
index e4ed96b43..b1a23631c 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt
@@ -176,25 +176,6 @@ class MangaInfoController(private val fromSource: Boolean = false) :
}
.launchIn(scope)
- binding.mangaArtist.longClicks()
- .onEach {
- activity?.copyToClipboard(
- binding.mangaArtistLabel.text.toString(),
- binding.mangaArtist.text.toString()
- )
- }
- .launchIn(scope)
-
- binding.mangaArtist.clicks()
- .onEach {
- var text = binding.mangaArtist.text.toString()
- if (isEHentaiBasedSource()) {
- text = wrapTag("artist", text)
- }
- performGlobalSearch(text)
- }
- .launchIn(scope)
-
binding.mangaAuthor.longClicks()
.onEach {
// EXH Special case E-Hentai/ExHentai to ignore author field (unused)
@@ -337,18 +318,12 @@ class MangaInfoController(private val fromSource: Boolean = false) :
manga.title
}
- // Update artist TextView.
- binding.mangaArtist.text = if (manga.artist.isNullOrBlank()) {
+ // Update author/artist TextView.
+ val authors = listOf(manga.author, manga.artist).filter { !it.isNullOrBlank() }.distinct()
+ binding.mangaAuthor.text = if (authors.isEmpty()) {
view.context.getString(R.string.unknown)
} else {
- manga.artist
- }
-
- // Update author TextView.
- binding.mangaAuthor.text = if (manga.author.isNullOrBlank()) {
- view.context.getString(R.string.unknown)
- } else {
- manga.author
+ authors.joinToString(", ")
}
// If manga source is known update source TextView.
diff --git a/app/src/main/res/layout-land/manga_all_in_one_header.xml b/app/src/main/res/layout-land/manga_all_in_one_header.xml
index 2e880ae57..b31bacbb5 100644
--- a/app/src/main/res/layout-land/manga_all_in_one_header.xml
+++ b/app/src/main/res/layout-land/manga_all_in_one_header.xml
@@ -70,62 +70,26 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
-
-
-
-
-
-
+ app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
+ tools:text="Author" />
+ app:layout_constraintTop_toBottomOf="@+id/manga_author" />
-
-
-
-
-
-
+ app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
+ tools:text="Author" />
+ app:layout_constraintTop_toBottomOf="@+id/manga_author" />
-
-
-
-
-
-
+ app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
+ tools:text="Author" />
+ app:layout_constraintTop_toBottomOf="@+id/manga_author" />
-
-
-
-
-
-
+ app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
+ tools:text="Author" />
+ app:layout_constraintTop_toBottomOf="@+id/manga_author" />
Title
Added to library
Removed from library
- Author
- Artist
Chapters
Last chapter
Updated