JLChen
2020-12-12 b3abfd30576871c32f2839a322fa3bb783f96498
HDL-ON_Android/Application.cs
@@ -49,7 +49,9 @@
            string[] permissions = new string[] { Manifest.Permission.WriteExternalStorage, Manifest.Permission.RecordAudio,
            Manifest.Permission.Camera, Manifest.Permission.ProcessOutgoingCalls, Manifest.Permission.GetAccounts};
            //禁止屏幕长亮
            BaseActivity.KeepScreenON = false;
            //隐藏迪拜虚拟按键
            BaseActivity.IsHideVirualButtons = true;
            init();
            BaseActivity.OnCreateActoin += (activity, application) =>
@@ -92,13 +94,13 @@
            BaseActivity.OnResumeAction += (activity) =>
            {
                checkSomeInfo();
                new HDL_ON.UI.AppUnlockPage().LoadPage();
            };
            BaseActivity.OnDestroyAction += (activity) =>
            {
                Console.WriteLine("OnDestroyAction");
                //BusSocket.Stop();
                OnAppConfig.Instance.unlockTime = DateTime.Now;
                //UserInfo.Current.unlockTime = DateTime.Now;
            };
@@ -273,6 +275,8 @@
            {
                Console.WriteLine("HHH OnActivityStarted:foreground");
                BusSocketStart();
                //后台回到前台
                new HDL_ON.UI.AppUnlockPage().LoadPage();
            }
        }
@@ -284,6 +288,9 @@
            {
                Console.WriteLine("HHH OnActivityStopped: background");
                BusSocketStop();
                //进入后台
                UserInfo.Current.unlockTime = DateTime.Now;
            }
        }
@@ -308,7 +315,6 @@
        {
            IsEnterBackground = true;
            //BusSocket.Stop();
            OnAppConfig.Instance.unlockTime = DateTime.Now;
        }