pull/49/head
kunfei 5 years ago
parent ab5aa65e43
commit 0d568374ae
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudConfigDialog.kt

@ -51,8 +51,7 @@ class ReadAloudConfigDialog : DialogFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
var preferenceFragment = childFragmentManager.findFragmentByTag(readAloudPreferTag) var preferenceFragment = childFragmentManager.findFragmentByTag(readAloudPreferTag)
if (preferenceFragment == null) preferenceFragment = if (preferenceFragment == null) preferenceFragment = ReadAloudPreferenceFragment()
ReadAloudPreferenceFragment()
childFragmentManager.beginTransaction() childFragmentManager.beginTransaction()
.replace(view.id, preferenceFragment, readAloudPreferTag) .replace(view.id, preferenceFragment, readAloudPreferTag)
.commit() .commit()

Loading…
Cancel
Save