Browse Source

* Fixed locale detection on new Android versions.

git-svn-id: trunk@40200 -
yury 6 years ago
parent
commit
8958d94091
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/rtl-extra/src/android/clocale.pp

+ 3 - 0
packages/rtl-extra/src/android/clocale.pp

@@ -88,6 +88,9 @@ function GetCurrentLocaleStr: utf8string;
 var
   s: utf8string;
 begin
+  Result:=GetSystemProperty('persist.sys.locale');
+  if Result <> '' then
+    exit;
   Result:=GetSystemProperty('persist.sys.language');
   if Result = '' then
     exit;