From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 25 七月 2024 17:34:32 +0800 Subject: [PATCH] 2024年07月25日17:33:40 --- HDL-ON_Android/Application.cs | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs index d76c42e..e0d59a4 100644 --- a/HDL-ON_Android/Application.cs +++ b/HDL-ON_Android/Application.cs @@ -12,9 +12,6 @@ using CN.Jpush.Android.Api; using HDL_ON; using Java.Util; -using Microsoft.AppCenter; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Shared; namespace HDL_ON_Android @@ -110,6 +107,7 @@ //鍚庡彴鍥炲埌鍓嶅彴 new HDL_ON.UI.AppUnlockPage().LoadPage(); + } } @@ -125,7 +123,6 @@ multicast.Release(); //杩涘叆鍚庡彴 UserInfo.Current.unlockTime = DateTime.Now; - } } @@ -153,7 +150,7 @@ /// </summary> void BusSocketStop() { - //IsEnterBackground = true; + CloseTime = DateTime.Now; MainPage.IsEnterBackground = true; //杩涘叆鍚庡彴mqtt姝e湪杩炴帴閲嶇疆鐘舵�� @@ -167,15 +164,12 @@ /// </summary> void BusSocketStart() { - //IsEnterBackground = false; - if (CloseTime.AddSeconds(10) < DateTime.Now) { //鍚庡彴瓒呰繃10s灏辨柇寮�MQTT閲嶈繛 //if (HDL_ON.DriverLayer.Control.Ins.IsRemote) { HDL_ON.DAL.Mqtt.MqttClient.DisConnectRemote("closeTime", false); - HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Cloud = HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Local = false; } } -- Gitblit v1.8.0