diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudConfigDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudConfigDialog.kt index a5b1349a2..2b2d27eb4 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudConfigDialog.kt +++ b/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?) { super.onViewCreated(view, savedInstanceState) var preferenceFragment = childFragmentManager.findFragmentByTag(readAloudPreferTag) - if (preferenceFragment == null) preferenceFragment = - ReadAloudPreferenceFragment() + if (preferenceFragment == null) preferenceFragment = ReadAloudPreferenceFragment() childFragmentManager.beginTransaction() .replace(view.id, preferenceFragment, readAloudPreferTag) .commit()