From 8297d5884fcfcb9c9af74c4392e6ae0a068dfa5b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 16 Feb 2020 13:54:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/config/PaddingConfigDialog.kt | 5 +++++ 1 file changed, 5 insertions(+) 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