mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -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){
|
private Set<String> getFeatures(TextToSpeech tts, Locale locale){
|
||||||
if(VERSION.SDK_INT < VERSION_CODES.LOLLIPOP)
|
return ((VERSION.SDK_INT < VERSION_CODES.LOLLIPOP)?tts.getFeatures(locale):tts.getVoice().getFeatures());
|
||||||
return tts.getFeatures(locale);
|
|
||||||
else
|
|
||||||
return tts.getVoice().getFeatures();
|
|
||||||
}
|
}
|
||||||
private void loadURL(WebView webView) {
|
private void loadURL(WebView webView) {
|
||||||
// We use JavaScript to get the content of the page conveniently, earlier making some
|
// We use JavaScript to get the content of the page conveniently, earlier making some
|
||||||
|
Loading…
x
Reference in New Issue
Block a user