JLChen
2020-12-12 b3abfd30576871c32f2839a322fa3bb783f96498
HDL-ON_Android/Application.cs
@@ -94,13 +94,13 @@
            BaseActivity.OnResumeAction += (activity) =>
            {
                checkSomeInfo();
                new HDL_ON.UI.AppUnlockPage().LoadPage();
            };
            BaseActivity.OnDestroyAction += (activity) =>
            {
                Console.WriteLine("OnDestroyAction");
                //BusSocket.Stop();
                UserInfo.Current.unlockTime = DateTime.Now;
                //UserInfo.Current.unlockTime = DateTime.Now;
            };
@@ -275,6 +275,8 @@
            {
                Console.WriteLine("HHH OnActivityStarted:foreground");
                BusSocketStart();
                //后台回到前台
                new HDL_ON.UI.AppUnlockPage().LoadPage();
            }
        }
@@ -286,6 +288,9 @@
            {
                Console.WriteLine("HHH OnActivityStopped: background");
                BusSocketStop();
                //进入后台
                UserInfo.Current.unlockTime = DateTime.Now;
            }
        }
@@ -310,7 +315,6 @@
        {
            IsEnterBackground = true;
            //BusSocket.Stop();
            UserInfo.Current.unlockTime = DateTime.Now;
        }