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 6dcd2b341..14f5c0b9b 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 @@ -93,10 +93,8 @@ class ReadAloudConfigDialog : DialogFragment() { } } PreferKey.readAloudOnLine -> { - if (BaseReadAloudService.isRun) { - ReadAloud.stop(requireContext()) - ReadAloud.aloudClass = ReadAloud.getReadAloudClass() - } + ReadAloud.stop(requireContext()) + ReadAloud.aloudClass = ReadAloud.getReadAloudClass() } PreferKey.ttsSpeechPer -> ReadAloud.upTtsSpeechRate(requireContext()) } @@ -113,7 +111,7 @@ class ReadAloudConfigDialog : DialogFragment() { // For all other preferences, set the summary to the value's preference?.summary = stringValue } - return true + return false } private fun bindPreferenceSummaryToValue(preference: Preference?) {