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() {
|
||||
if (currentTTSTask == null)
|
||||
if (currentTTSTask == null) {
|
||||
return;
|
||||
|
||||
if (currentTTSTask.paused) {
|
||||
} else if (currentTTSTask.paused) {
|
||||
if (!requestAudioFocus()) return;
|
||||
currentTTSTask.start();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
currentTTSTask.pause();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user