Fix linter errors

This commit is contained in:
Mohamed Sameh 2020-02-15 00:00:54 +02:00
parent 99a85349a3
commit e4d0ff13f8

View File

@ -147,7 +147,10 @@ public class KiwixTextToSpeech {
}
}
private Set<String> 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