mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Remove unneeded SettingsControllerFactory.
This commit is contained in:
		@@ -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'
 | 
			
		||||
 
 | 
			
		||||
@@ -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