mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-13 17:38:42 -04:00
Fixed TTS issues on earlier android versions #411
This commit is contained in:
parent
1bb65fa8b8
commit
5d364d8c5c
@ -1,3 +1,6 @@
|
|||||||
|
2.2
|
||||||
|
FIX: Text To Speech issues on earlier Android versions
|
||||||
|
|
||||||
2.1
|
2.1
|
||||||
FIX: Display of storage devices
|
FIX: Display of storage devices
|
||||||
FIX: External SD cards detection
|
FIX: External SD cards detection
|
||||||
|
@ -78,6 +78,7 @@ public class KiwixTextToSpeech {
|
|||||||
currentTTSTask = null;
|
currentTTSTask = null;
|
||||||
} else if (tts.isSpeaking()) {
|
} else if (tts.isSpeaking()) {
|
||||||
if (tts.stop() == TextToSpeech.SUCCESS) {
|
if (tts.stop() == TextToSpeech.SUCCESS) {
|
||||||
|
tts.setOnUtteranceProgressListener(null);
|
||||||
onSpeakingListener.onSpeakingEnded();
|
onSpeakingListener.onSpeakingEnded();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -113,6 +114,7 @@ public class KiwixTextToSpeech {
|
|||||||
public void stop() {
|
public void stop() {
|
||||||
if (tts.stop() == TextToSpeech.SUCCESS) {
|
if (tts.stop() == TextToSpeech.SUCCESS) {
|
||||||
currentTTSTask = null;
|
currentTTSTask = null;
|
||||||
|
tts.setOnUtteranceProgressListener(null);
|
||||||
onSpeakingListener.onSpeakingEnded();
|
onSpeakingListener.onSpeakingEnded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -186,6 +188,7 @@ public class KiwixTextToSpeech {
|
|||||||
public void pause() {
|
public void pause() {
|
||||||
paused = true;
|
paused = true;
|
||||||
currentPiece.decrementAndGet();
|
currentPiece.decrementAndGet();
|
||||||
|
tts.setOnUtteranceProgressListener(null);
|
||||||
tts.stop();
|
tts.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user