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 | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs index 153c1a1..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"); @@ -79,7 +88,6 @@ //Shared.Application.IsGpsEnable = true; Shared.Application.LocationAction = (arg1, arg2) => { - Console.WriteLine( "1111111111111111"); Shared.Application.LocationAction = null; new HDL_ON.DAL.Server.HttpServerRequest().GetCityInfo(arg1.ToString(), arg2.ToString()); -- Gitblit v1.8.0