Index: adblock-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java |
=================================================================== |
--- a/adblock-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java |
+++ b/adblock-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java |
@@ -76,17 +76,21 @@ |
private volatile boolean elemhideEnabled; |
private volatile boolean enabled = true; |
private volatile List<String> whitelistedDomains; |
public static AppInfo generateAppInfo(final Context context, boolean developmentBuild, |
String application, String applicationVersion) |
{ |
final String sdkVersion = String.valueOf(VERSION.SDK_INT); |
- final String locale = Locale.getDefault().toString().replace('_', '-'); |
+ String locale = Locale.getDefault().toString().replace('_', '-'); |
+ if (locale.startsWith("iw-")) |
+ { |
+ locale = "he" + locale.substring(2); |
+ } |
diegocarloslima
2018/07/20 13:48:44
Looks good, but I believe that if you use Locale.g
|
AppInfo.Builder builder = |
AppInfo |
.builder() |
.setApplicationVersion(sdkVersion) |
.setLocale(locale) |
.setDevelopmentBuild(developmentBuild); |