Fix code styling issue in KiwixTextToSpeech

This commit is contained in:
Abishek 2018-03-05 07:16:38 +05:30 committed by Isaac Hutt
parent fcadd2fd41
commit 5550275b3f

View File

@ -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();
}
}