Add linter suppressor to use ternary operator

This commit is contained in:
Mohamed Sameh 2020-02-20 19:38:53 +02:00
parent e4d0ff13f8
commit ec1bbec00d

View File

@ -146,11 +146,9 @@ public class KiwixTextToSpeech {
}
}
}
@SuppressLint("NewApi")
private Set<String> getFeatures(TextToSpeech tts, Locale locale){
if(VERSION.SDK_INT < VERSION_CODES.LOLLIPOP)
return tts.getFeatures(locale);
else
return tts.getVoice().getFeatures();
return ((VERSION.SDK_INT < VERSION_CODES.LOLLIPOP)?tts.getFeatures(locale):tts.getVoice().getFeatures());
}
private void loadURL(WebView webView) {
// We use JavaScript to get the content of the page conveniently, earlier making some