From c9a987ced5454cfc6b9363eadcad038191706f5b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期六, 12 十二月 2020 16:37:09 +0800 Subject: [PATCH] 2020-12-12 1.解锁设置优化 --- HDL-ON_Android/Application.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs index 8cb39a6..2d2491d 100644 --- a/HDL-ON_Android/Application.cs +++ b/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锛歠oreground"); 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; } -- Gitblit v1.8.0