From a251442d9fc088b3d8cf74d20b959f0f6103b095 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 14 九月 2020 17:42:10 +0800
Subject: [PATCH] 20200914
---
HDL-ON_Android/Application.cs | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs
index ff0cb70..52ae5fa 100644
--- a/HDL-ON_Android/Application.cs
+++ b/HDL-ON_Android/Application.cs
@@ -49,8 +49,9 @@
BaseActivity.IsHideVirualButtons = true;
init();
- BaseActivity.OnCreateActoin += (activity, application) => {
- Language.CurrentLanguage = "Chinese";
+ BaseActivity.OnCreateActoin += (activity, application) =>
+ {
+ Language.CurrentLanguage = "Chinese";
Locale locale1 = Locale.Default;
var localeList = Resources.Configuration.Locale;
if (localeList.Language == "zh")
@@ -58,7 +59,14 @@
Language.CurrentLanguage = "Chinese";
}
- BaseActivity.NetworkStateChanged += (int obj) => {
+ BaseActivity.NetworkStateChanged += (int obj) =>
+ {
+ BusSocket.Stop();
+ new System.Threading.Thread(() => {
+ System.Threading.Thread.Sleep(1000);
+ BusSocket.Start(6000);
+ })
+ { IsBackground = true }.Start();
};
};
@@ -68,6 +76,7 @@
};
BaseActivity.OnResumeAction += (activity) => {
checkSomeInfo();
+ new HDL_ON.UI.AppUnlockPage().LoadPage();
};
BaseActivity.OnDestroyAction += (activity) => {
Console.WriteLine("OnDestroyAction");
--
Gitblit v1.8.0