diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/MigrationController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/MigrationController.kt index 2b94d5694..0c4748c83 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/MigrationController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/MigrationController.kt @@ -14,8 +14,7 @@ import eu.kanade.tachiyomi.ui.browse.source.SourceDividerItemDecoration class MigrationController : NucleusController(), - FlexibleAdapter.OnItemClickListener, - SourceAdapter.OnSelectClickListener { + FlexibleAdapter.OnItemClickListener { private var adapter: FlexibleAdapter>? = null @@ -94,8 +93,4 @@ class MigrationController : } return false } - - override fun onSelectClick(position: Int) { - onItemClick(view!!, position) - } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceAdapter.kt index 7711fcc24..a556eafbf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceAdapter.kt @@ -21,18 +21,6 @@ class SourceAdapter(val controller: MigrationController) : setDisplayHeadersAtStartUp(true) } - /** - * Listener for browse item clicks. - */ - val selectClickListener: OnSelectClickListener? = controller - - /** - * Listener which should be called when user clicks select. - */ - interface OnSelectClickListener { - fun onSelectClick(position: Int) - } - override fun updateDataSet(items: MutableList>?) { if (this.items !== items) { this.items = items diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceHolder.kt index a96848b9c..04ef0c752 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/SourceHolder.kt @@ -1,7 +1,6 @@ package eu.kanade.tachiyomi.ui.browse.migration import android.view.View -import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.source.icon import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder import eu.kanade.tachiyomi.ui.base.holder.SlicedHolder @@ -26,10 +25,7 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) : init { source_latest.gone() - source_browse.setText(R.string.select) - source_browse.setOnClickListener { - adapter.selectClickListener?.onSelectClick(bindingAdapterPosition) - } + source_browse.gone() } fun bind(item: SourceItem) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e7d28cd5a..bf6965bca 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -20,7 +20,7 @@ Sources Categories Backup - Migration + Migrate Extensions Extension info Help @@ -566,7 +566,6 @@ Tap to select the source to migrate from Select data to include Select a source to migrate from - Select Migrate Copy