From 61852f188796c8ef82597bfa8f13c0ddcbb42ac1 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 27 十一月 2020 14:59:33 +0800
Subject: [PATCH] 2020-11-27-1
---
HDL-ON_Android/Application.cs | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs
index fd6bb1c..f84ae5d 100644
--- a/HDL-ON_Android/Application.cs
+++ b/HDL-ON_Android/Application.cs
@@ -63,14 +63,13 @@
BaseActivity.NetworkStateChanged += (int obj) =>
{
-
if (!IsEnterBackground)
{
- BusSocket.Stop();
+ //BusSocket.Stop();
new System.Threading.Thread(() =>
{
System.Threading.Thread.Sleep(1000);
- BusSocket.Start(6000);
+ //BusSocket.Start();
})
{ IsBackground = true }.Start();
}
@@ -94,7 +93,7 @@
BaseActivity.OnDestroyAction += (activity) =>
{
Console.WriteLine("OnDestroyAction");
- BusSocket.Stop();
+ //BusSocket.Stop();
OnAppConfig.Instance.unlockTime = DateTime.Now;
};
@@ -110,10 +109,7 @@
new HDL_ON.DAL.Server.HttpServerRequest().GetCityInfo(arg1.ToString(), arg2.ToString());
MainPage.Log($"缁忕含搴�:::{arg1}:{arg2}");
-
};
-
-
}
public static bool IsShowTip = true;
void init()
@@ -244,7 +240,7 @@
void BusSocketStop()
{
IsEnterBackground = true;
- BusSocket.Stop();
+ //BusSocket.Stop();
OnAppConfig.Instance.unlockTime = DateTime.Now;
}
@@ -256,7 +252,7 @@
{
IsEnterBackground = false;
- BusSocket.Start(6000);
+ //BusSocket.Start();
}
}
}
\ No newline at end of file
--
Gitblit v1.8.0