Fixes for building and new extensions screen
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package eu.kanade.tachiyomi.ui.browse.extension
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.view.View
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.data.glide.GlideApp
|
||||
@@ -90,7 +91,12 @@ class ExtensionHolder(view: View, override val adapter: ExtensionAdapter) :
|
||||
setText(R.string.ext_update)
|
||||
}
|
||||
else -> {
|
||||
setText(R.string.action_settings)
|
||||
if (extension.sources.any { it is ConfigurableSource }) {
|
||||
@SuppressLint("SetTextI18n")
|
||||
text = context.getString(R.string.action_settings) + "+"
|
||||
} else {
|
||||
setText(R.string.action_settings)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (extension is Extension.Untrusted) {
|
||||
|
||||
@@ -36,7 +36,6 @@ 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_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
|
||||
import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_cover
|
||||
import kotlinx.android.synthetic.main.manga_all_in_one_header.manga_full_title
|
||||
@@ -156,7 +155,7 @@ class MangaAllInOneHolder(
|
||||
.onEach {
|
||||
// EXH Special case E-Hentai/ExHentai to ignore author field (unused)
|
||||
if (!adapter.delegate.isEHentaiBasedSource()) {
|
||||
adapter.delegate.copyToClipboard(manga_author_label.text.toString(), manga_author.text.toString())
|
||||
adapter.delegate.copyToClipboard("author", manga_author.text.toString())
|
||||
}
|
||||
}
|
||||
.launchIn(adapter.delegate.controllerScope)
|
||||
|
||||
Reference in New Issue
Block a user