mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Remove code that's only needed on API 15.
This commit is contained in:
@@ -153,14 +153,11 @@ public class Localizer {
|
|||||||
* Indicates whether the language represented by locale
|
* Indicates whether the language represented by locale
|
||||||
* should be offered to the user on this device.
|
* should be offered to the user on this device.
|
||||||
* * Android doesn't pick up Asturian on API < 21
|
* * Android doesn't pick up Asturian on API < 21
|
||||||
* * Android can't render Devanagari characters on API 15.
|
|
||||||
* * RTL languages are supported since API >= 17
|
* * RTL languages are supported since API >= 17
|
||||||
*/
|
*/
|
||||||
public static boolean isLocaleSupported(Locale locale) {
|
public static boolean isLocaleSupported(Locale locale) {
|
||||||
if (SDK_INT >= 21) return true;
|
if (SDK_INT >= 21) return true;
|
||||||
if (locale.getLanguage().equals("ast")) return false;
|
if (locale.getLanguage().equals("ast")) return false;
|
||||||
if (SDK_INT == 15 && locale.getLanguage().equals("hi"))
|
|
||||||
return false;
|
|
||||||
if (SDK_INT >= 17) return true;
|
if (SDK_INT >= 17) return true;
|
||||||
return isLeftToRight(locale);
|
return isLeftToRight(locale);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user