Skip to content

Commit ee00aed

Browse files
authored
Update LocalTtsViewModel.kt
1 parent d129c8b commit ee00aed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/com/github/jing332/tts_server_android/ui/systts/edit/local/LocalTtsViewModel.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ class LocalTtsViewModel : ViewModel() {
5858
mTts.engine = it.value.toString()
5959
mTts.onLoad()
6060
}
61-
mTts.locale = null
62-
mTts.voiceName = null
61+
6362

6463
viewModelScope.runOnIO {
6564
withMain { onStart.invoke() }
@@ -190,4 +189,4 @@ class LocalTtsViewModel : ViewModel() {
190189
val voices: SpinnerData = SpinnerData()
191190
)
192191

193-
}
192+
}

0 commit comments

Comments
 (0)