Преглед на файлове

* 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;