lss
2021-03-25 3d7673c7b4aa0dc886d4816fe2d0ab400702e6e1
HDL-ON_Android/Application.cs
@@ -57,11 +57,10 @@
            Manifest.Permission.Camera, Manifest.Permission.ProcessOutgoingCalls, Manifest.Permission.GetAccounts};
            //禁止屏幕长亮
            BaseActivity.KeepScreenON = false;
            //隐藏迪拜虚拟按键
            //隐藏虚拟按键
            BaseActivity.IsHideVirualButtons = true;
            //实现安卓返回按键
            BaseActivity.BackKeyAction = () => {
                MainPage.Log($"android后退");
                try
                {
                    var result = MainPage.LoadEvent_BackAction();
@@ -78,9 +77,9 @@
                            break;
                    }
                }
                catch (System.Exception ezx)
                catch (Exception ex)
                {
                    Console.WriteLine(ezx.Message);
                    Console.WriteLine(ex.Message);
                }
            };
@@ -93,6 +92,10 @@
                if (localeList.Language == "zh")
                {
                    Language.CurrentLanguage = "Chinese";
                }
                else
                {
                    Language.CurrentLanguage = "English";
                }
        
                //获取极光推送ID
@@ -374,7 +377,7 @@
            if (CloseTime.AddSeconds(10) < DateTime.Now)
            {
                //后台超过10s就断开MQTT重连
                if (HDL_ON.DriverLayer.Control.Ins.IsRemote)
                //if (HDL_ON.DriverLayer.Control.Ins.IsRemote)
                {
                    HDL_ON.DAL.Mqtt.MqttClient.DisConnectRemote("closeTime", false);
                }