From 5b5ea5ab8a9079860e38d8b97e4376de41887381 Mon Sep 17 00:00:00 2001 From: mpm11011 Date: Wed, 26 Aug 2020 20:53:56 -0400 Subject: [PATCH] Remove unneeded SettingsControllerFactory. --- app/build.gradle | 1 - .../ui/setting/SettingsControllerFactory.kt | 13 ------------- .../settingssearch/SettingsSearchController.kt | 3 --- 3 files changed, 17 deletions(-) delete mode 100644 app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsControllerFactory.kt diff --git a/app/build.gradle b/app/build.gradle index bf29d4fd8..8768cac00 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 7f892f56d..000000000 --- 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 518460753..7227bd8b9 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) }