mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-15 10:26:53 -04:00
Fix code styling issue in KiwixTextToSpeech
This commit is contained in:
parent
fcadd2fd41
commit
5550275b3f
@ -167,14 +167,12 @@ public class KiwixTextToSpeech {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void pauseOrResume() {
|
public void pauseOrResume() {
|
||||||
if (currentTTSTask == null)
|
if (currentTTSTask == null) {
|
||||||
return;
|
return;
|
||||||
|
} else if (currentTTSTask.paused) {
|
||||||
if (currentTTSTask.paused) {
|
|
||||||
if (!requestAudioFocus()) return;
|
if (!requestAudioFocus()) return;
|
||||||
currentTTSTask.start();
|
currentTTSTask.start();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
currentTTSTask.pause();
|
currentTTSTask.pause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user