From 505effa88b17ce8c3c7ac5403b76d9e5d0cfc2a5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 28 十月 2024 11:58:31 +0800 Subject: [PATCH] 谷歌版本问题修复 --- HDL-ON_Android/Application.cs | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs index d76c42e..0aec7bf 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 @@ -109,7 +106,8 @@ multicast.Acquire(); //鍚庡彴鍥炲埌鍓嶅彴 - new HDL_ON.UI.AppUnlockPage().LoadPage(); + //new HDL_ON.UI.AppUnlockPage().LoadPage(); + } } @@ -124,8 +122,7 @@ BusSocketStop(); multicast.Release(); //杩涘叆鍚庡彴 - UserInfo.Current.unlockTime = DateTime.Now; - + //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