Remove unneeded SettingsControllerFactory.

This commit is contained in:
mpm11011 2020-08-26 20:53:56 -04:00
parent 1a230b3900
commit 5b5ea5ab8a
3 changed files with 0 additions and 17 deletions

View File

@ -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'

View File

@ -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<SettingsController>? = null
}
}

View File

@ -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)
}