diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/main/KiwixTextToSpeech.java b/core/src/main/java/org/kiwix/kiwixmobile/core/main/KiwixTextToSpeech.java index 8419b6bef..4a24e196b 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/main/KiwixTextToSpeech.java +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/main/KiwixTextToSpeech.java @@ -147,7 +147,10 @@ public class KiwixTextToSpeech { } } private Set getFeatures(TextToSpeech tts, Locale locale){ - return (VERSION.SDK_INT < VERSION_CODES.LOLLIPOP)? tts.getFeatures(locale) : tts.getVoice().getFeatures(); + if(VERSION.SDK_INT < VERSION_CODES.LOLLIPOP) + return tts.getFeatures(locale); + else + return tts.getVoice().getFeatures(); } private void loadURL(WebView webView) { // We use JavaScript to get the content of the page conveniently, earlier making some