mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Remove unneeded SettingsControllerFactory.
This commit is contained in:
		| @@ -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 | ||||
|     } | ||||
| } | ||||
| @@ -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) | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user