Skip to content

Commit

Permalink
Reinitialise TTS after selecting the default engine in the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
drmfinlay committed Jun 17, 2020
1 parent 9e2b803 commit 0e079fd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ class SettingsFragment : PreferenceFragmentCompat() {
val onClickNeutralListener = {
// Remove the preferred engine's name from the preferences.
prefs.edit().putString(preferenceKey, null).apply()

// Set the default engine.
myApplication.reinitialiseSpeaker(myActivity, null)
}
displayAlertDialog(dialogTitle, engineNames, currentIndex,
onClickPositiveListener, onClickNeutralListener)
Expand Down

0 comments on commit 0e079fd

Please sign in to comment.