- Ensure all Preferences have a key set or else the highlighting effect will have no effect on it.
- remove ExtensionFilterController and SourceFilterController from settingControllersList in SettingsSearchHelper, since those are related to Extensions and not Settings
This commit is contained in:
@@ -33,7 +33,6 @@ import rx.schedulers.Schedulers
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
|
||||
class SettingsAdvancedController : SettingsController() {
|
||||
|
||||
private val network: NetworkHelper by injectLazy()
|
||||
|
||||
private val chapterCache: ChapterCache by injectLazy()
|
||||
@@ -43,7 +42,6 @@ class SettingsAdvancedController : SettingsController() {
|
||||
@SuppressLint("BatteryLife")
|
||||
override fun setupPreferenceScreen(screen: PreferenceScreen) = screen.apply {
|
||||
titleRes = R.string.pref_category_advanced
|
||||
|
||||
switchPreference {
|
||||
key = "acra.enable"
|
||||
titleRes = R.string.pref_enable_acra
|
||||
@@ -53,6 +51,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
preference {
|
||||
key = Keys.disableBatteryOptimization
|
||||
titleRes = R.string.pref_disable_battery_optimization
|
||||
summaryRes = R.string.pref_disable_battery_optimization_summary
|
||||
|
||||
@@ -86,6 +85,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
onClick { clearChapterCache() }
|
||||
}
|
||||
preference {
|
||||
key = Keys.clearDatabase
|
||||
titleRes = R.string.pref_clear_database
|
||||
summaryRes = R.string.pref_clear_database_summary
|
||||
|
||||
@@ -101,6 +101,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
titleRes = R.string.label_network
|
||||
|
||||
preference {
|
||||
key = Keys.clearCookies
|
||||
titleRes = R.string.pref_clear_cookies
|
||||
|
||||
onClick {
|
||||
@@ -120,11 +121,13 @@ class SettingsAdvancedController : SettingsController() {
|
||||
titleRes = R.string.label_library
|
||||
|
||||
preference {
|
||||
key = Keys.refreshLibraryCovers
|
||||
titleRes = R.string.pref_refresh_library_covers
|
||||
|
||||
onClick { LibraryUpdateService.start(context, target = Target.COVERS) }
|
||||
}
|
||||
preference {
|
||||
key = Keys.refreshLibraryTracking
|
||||
titleRes = R.string.pref_refresh_library_tracking
|
||||
summaryRes = R.string.pref_refresh_library_tracking_summary
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ class SettingsBackupController : SettingsController() {
|
||||
titleRes = R.string.backup
|
||||
|
||||
preference {
|
||||
key = Keys.createBackup
|
||||
titleRes = R.string.pref_create_backup
|
||||
summaryRes = R.string.pref_create_backup_summ
|
||||
|
||||
@@ -67,6 +68,7 @@ class SettingsBackupController : SettingsController() {
|
||||
}
|
||||
}
|
||||
preference {
|
||||
key = Keys.restoreBackup
|
||||
titleRes = R.string.pref_restore_backup
|
||||
summaryRes = R.string.pref_restore_backup_summ
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ class SettingsGeneralController : SettingsController() {
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
preference {
|
||||
key = Keys.manageNotifications
|
||||
titleRes = R.string.pref_manage_notifications
|
||||
onClick {
|
||||
val intent = Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS).apply {
|
||||
|
||||
@@ -50,6 +50,7 @@ class SettingsLibraryController : SettingsController() {
|
||||
titleRes = R.string.pref_category_display
|
||||
|
||||
preference {
|
||||
key = Keys.libraryColumns
|
||||
titleRes = R.string.pref_library_columns
|
||||
onClick {
|
||||
LibraryColumnsDialog().showDialog(router)
|
||||
@@ -83,6 +84,7 @@ class SettingsLibraryController : SettingsController() {
|
||||
titleRes = R.string.pref_category_library_categories
|
||||
|
||||
preference {
|
||||
key = Keys.actionEditCategories
|
||||
titleRes = R.string.action_edit_categories
|
||||
|
||||
val catCount = dbCategories.size
|
||||
|
||||
-4
@@ -6,8 +6,6 @@ import androidx.preference.Preference
|
||||
import androidx.preference.PreferenceCategory
|
||||
import androidx.preference.PreferenceGroup
|
||||
import androidx.preference.PreferenceManager
|
||||
import eu.kanade.tachiyomi.ui.browse.extension.ExtensionFilterController
|
||||
import eu.kanade.tachiyomi.ui.browse.source.SourceFilterController
|
||||
import eu.kanade.tachiyomi.ui.more.AboutController
|
||||
import eu.kanade.tachiyomi.ui.setting.SettingsAdvancedController
|
||||
import eu.kanade.tachiyomi.ui.setting.SettingsBackupController
|
||||
@@ -41,8 +39,6 @@ object SettingsSearchHelper {
|
||||
SettingsReaderController::class,
|
||||
SettingsSecurityController::class,
|
||||
SettingsTrackingController::class,
|
||||
ExtensionFilterController::class,
|
||||
SourceFilterController::class,
|
||||
AboutController::class
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user