浏览代码

* Fixed locale detection on new Android versions.

git-svn-id: trunk@40200 -
yury 6 年之前
父节点
当前提交
8958d94091
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;