Inlined non-reused key strings.
This commit is contained in:
@@ -51,7 +51,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
preference {
|
||||
key = Keys.disableBatteryOptimization
|
||||
key = "pref_disable_battery_optimization"
|
||||
titleRes = R.string.pref_disable_battery_optimization
|
||||
summaryRes = R.string.pref_disable_battery_optimization_summary
|
||||
|
||||
@@ -85,7 +85,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
onClick { clearChapterCache() }
|
||||
}
|
||||
preference {
|
||||
key = Keys.clearDatabase
|
||||
key = "pref_clear_database"
|
||||
titleRes = R.string.pref_clear_database
|
||||
summaryRes = R.string.pref_clear_database_summary
|
||||
|
||||
@@ -101,7 +101,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
titleRes = R.string.label_network
|
||||
|
||||
preference {
|
||||
key = Keys.clearCookies
|
||||
key = "pref_clear_cookies"
|
||||
titleRes = R.string.pref_clear_cookies
|
||||
|
||||
onClick {
|
||||
@@ -121,13 +121,13 @@ class SettingsAdvancedController : SettingsController() {
|
||||
titleRes = R.string.label_library
|
||||
|
||||
preference {
|
||||
key = Keys.refreshLibraryCovers
|
||||
key = "pref_refresh_library_covers"
|
||||
titleRes = R.string.pref_refresh_library_covers
|
||||
|
||||
onClick { LibraryUpdateService.start(context, target = Target.COVERS) }
|
||||
}
|
||||
preference {
|
||||
key = Keys.refreshLibraryTracking
|
||||
key = "pref_refresh_library_tracking"
|
||||
titleRes = R.string.pref_refresh_library_tracking
|
||||
summaryRes = R.string.pref_refresh_library_tracking_summary
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class SettingsBackupController : SettingsController() {
|
||||
titleRes = R.string.backup
|
||||
|
||||
preference {
|
||||
key = Keys.createBackup
|
||||
key = "pref_create_backup"
|
||||
titleRes = R.string.pref_create_backup
|
||||
summaryRes = R.string.pref_create_backup_summ
|
||||
|
||||
@@ -68,7 +68,7 @@ class SettingsBackupController : SettingsController() {
|
||||
}
|
||||
}
|
||||
preference {
|
||||
key = Keys.restoreBackup
|
||||
key = "pref_restore_backup"
|
||||
titleRes = R.string.pref_restore_backup
|
||||
summaryRes = R.string.pref_restore_backup_summ
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class SettingsGeneralController : SettingsController() {
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
preference {
|
||||
key = Keys.manageNotifications
|
||||
key = "pref_manage_notifications"
|
||||
titleRes = R.string.pref_manage_notifications
|
||||
onClick {
|
||||
val intent = Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS).apply {
|
||||
|
||||
@@ -50,7 +50,7 @@ class SettingsLibraryController : SettingsController() {
|
||||
titleRes = R.string.pref_category_display
|
||||
|
||||
preference {
|
||||
key = Keys.libraryColumns
|
||||
key = "pref_library_columns"
|
||||
titleRes = R.string.pref_library_columns
|
||||
onClick {
|
||||
LibraryColumnsDialog().showDialog(router)
|
||||
@@ -84,7 +84,7 @@ class SettingsLibraryController : SettingsController() {
|
||||
titleRes = R.string.pref_category_library_categories
|
||||
|
||||
preference {
|
||||
key = Keys.actionEditCategories
|
||||
key = "pref_action_edit_categories"
|
||||
titleRes = R.string.action_edit_categories
|
||||
|
||||
val catCount = dbCategories.size
|
||||
|
||||
Reference in New Issue
Block a user