diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/PaddingConfigDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/PaddingConfigDialog.kt index f458ddfa5..abdbafeb1 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/PaddingConfigDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/PaddingConfigDialog.kt @@ -44,6 +44,11 @@ class PaddingConfigDialog : DialogFragment() { initView() } + override fun onDestroy() { + super.onDestroy() + ReadBookConfig.save() + } + private fun initData() = with(ReadBookConfig.getConfig()) { //正文 dsb_padding_top.progress = paddingTop