From 5ec581e5d37b108fc9d59e89afd8e94e21b32080 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 17 十月 2023 17:33:36 +0800
Subject: [PATCH] 2023年10月17日17:33:33

---
 HDL-ON_Android/SplashActivity.cs |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/HDL-ON_Android/SplashActivity.cs b/HDL-ON_Android/SplashActivity.cs
index 76007c4..096e3b3 100644
--- a/HDL-ON_Android/SplashActivity.cs
+++ b/HDL-ON_Android/SplashActivity.cs
@@ -59,12 +59,14 @@
             //StartActivityForResult(i, 1);
             //OverridePendingTransition(0, 0);
             //initAll();
+#if DEBUG
+            HDL_ON.OnAppConfig.Instance.isAgreePrivacyPolicy = true;
+#endif
             if (HDL_ON.OnAppConfig.Instance.FirstRunApp || !HDL_ON.OnAppConfig.Instance.isAgreePrivacyPolicy)
             {
                 //OnAppConfig.Instance.FirstRunApp = false;
                 //OnAppConfig.Instance.SaveConfig();
                 Language.CurrentLanguage = "Chinese";
-                Locale locale1 = Locale.Default;
                 var localeList = Resources.Configuration.Locale;
                 Console.WriteLine("褰撳墠璇█缂╁啓:" + localeList.Language);
                 if (localeList.Language == "zh")
@@ -82,6 +84,10 @@
                 else if (localeList.Language == "bg")
                 {
                     Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
+                }
+                else if (localeList.Language == "uk")
+                {
+                    Language.CurrentLanguage = "Ukraine";
                 }
                 else
                 {
@@ -198,7 +204,6 @@
             BaseActivity.OnCreateActoin = (activity, application) =>
             {
                 Language.CurrentLanguage = "Chinese";
-                Locale locale1 = Locale.Default;
                 var localeList = Resources.Configuration.Locale;
                 Console.WriteLine("褰撳墠璇█缂栧彿" + localeList.Language);
                 if (localeList.Language == "zh")
@@ -216,6 +221,10 @@
                 else if (localeList.Language == "bg")
                 {
                     Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
+                }
+                else if (localeList.Language == "uk")
+                {
+                    Language.CurrentLanguage = "Ukraine";
                 }
                 else
                 {
@@ -247,7 +256,6 @@
             BaseActivity.RefreshUIAction = (activity) =>
             {
                 Language.CurrentLanguage = "Chinese";
-                Locale locale1 = Locale.Default;
                 var localeList = Resources.Configuration.Locale;
                 Console.WriteLine("褰撳墠璇█锛�" + localeList.Language);
                 if (localeList.Language == "zh")
@@ -266,6 +274,10 @@
                 {
                     Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
                 }
+                else if (localeList.Language == "uk")
+                {
+                    Language.CurrentLanguage = "Ukraine";
+                }
                 else
                 {
                     Language.CurrentLanguage = "English";

--
Gitblit v1.8.0