Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: adblock-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java

Issue 29835555: Issue 6799 - Hebrew subscription is not installed for Hebrew locale (Closed)
Patch Set: Created July 20, 2018, 1:13 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld