pull/34/head
kunfei 5 years ago
parent e06b6b4bfd
commit ecddadad7a
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/config/MoreConfigDialog.kt

@ -74,11 +74,15 @@ class MoreConfigDialog : DialogFragment() {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
preferenceManager.sharedPreferences.registerOnSharedPreferenceChangeListener(this) preferenceManager
.sharedPreferences
.registerOnSharedPreferenceChangeListener(this)
} }
override fun onPause() { override fun onPause() {
preferenceManager.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this) preferenceManager
.sharedPreferences
.unregisterOnSharedPreferenceChangeListener(this)
super.onPause() super.onPause()
} }

Loading…
Cancel
Save