diff --git a/app/build.gradle b/app/build.gradle index bf29d4fd84..8768cac00d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -201,7 +201,6 @@ dependencies { // Preferences implementation 'com.github.tfcporciuncula:flow-preferences:1.3.0' - implementation 'com.github.ByteHamster:SearchPreference:v1.0.3' // Model View Presenter final nucleus_version = '3.0.0' diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsControllerFactory.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsControllerFactory.kt deleted file mode 100644 index 7f892f56db..0000000000 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsControllerFactory.kt +++ /dev/null @@ -1,13 +0,0 @@ -package eu.kanade.tachiyomi.ui.setting - -import android.content.Context -import com.bytehamster.lib.preferencesearch.SearchPreference -import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys - -class SettingsControllerFactory(context: Context) { - var searchablePrefs = Keys::class.members.map { member -> SearchPreference(context).key = member.name } - - companion object Factory { - var controllers: List? = null - } -} diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/settingssearch/SettingsSearchController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/settingssearch/SettingsSearchController.kt index 5184607532..7227bd8b90 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/settingssearch/SettingsSearchController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/settingssearch/SettingsSearchController.kt @@ -14,7 +14,6 @@ import eu.kanade.tachiyomi.databinding.SettingsSearchControllerBinding import eu.kanade.tachiyomi.ui.base.controller.NucleusController import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction import eu.kanade.tachiyomi.ui.setting.SettingsController -import eu.kanade.tachiyomi.ui.setting.SettingsControllerFactory /** * This controller shows and manages the different search result in settings search. @@ -32,8 +31,6 @@ open class SettingsSearchController( */ protected var adapter: SettingsSearchAdapter? = null - protected var controllers = SettingsControllerFactory.controllers - init { setHasOptionsMenu(true) }