mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Add linter suppressor to use ternary operator
This commit is contained in:
parent
e4d0ff13f8
commit
ec1bbec00d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user