Reorganizing advanced options slightly

This commit is contained in:
Jay 2020-08-09 20:39:19 -04:00
parent 2bb1427162
commit c60ffbbb25

View File

@ -92,16 +92,6 @@ class SettingsAdvancedController : SettingsController() {
coverCache.deleteAllCachedCovers() coverCache.deleteAllCachedCovers()
} }
} }
preference {
titleRes = R.string.clear_database
summaryRes = R.string.clear_database_summary
onClick {
val ctrl = ClearDatabaseDialogController()
ctrl.targetController = this@SettingsAdvancedController
ctrl.showDialog(router)
}
}
preference { preference {
titleRes = R.string.clean_up_downloaded_chapters titleRes = R.string.clean_up_downloaded_chapters
@ -113,6 +103,16 @@ class SettingsAdvancedController : SettingsController() {
ctrl.showDialog(router) ctrl.showDialog(router)
} }
} }
preference {
titleRes = R.string.clear_database
summaryRes = R.string.clear_database_summary
onClick {
val ctrl = ClearDatabaseDialogController()
ctrl.targetController = this@SettingsAdvancedController
ctrl.showDialog(router)
}
}
} }
preferenceCategory { preferenceCategory {