From b69d7735274b8d0f741da8a6bb8b8e1347477a5a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 19 三月 2020 17:14:16 +0800 Subject: [PATCH] 20200319 --- HDL-ON_iOS/AppDelegate.cs | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 730f24d..2e3dc19 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -149,12 +149,15 @@ public override void DidEnterBackground(UIApplication application) { SharedMethod.SharedMethod.IsBackground = true; + HDL_ON.Entity.DB_ResidenceData.residenceData.SaveResidenceData(); Console.WriteLine("DidEnterBackground"); } + public override void WillEnterForeground(UIApplication application) { SharedMethod.SharedMethod.IsBackground = false; + BusSocket.Start(6000); Console.WriteLine("WillEnterForeground"); UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; } @@ -173,12 +176,12 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { //AppCenter.Start("b95f7814-49fb-4345-bac5-98e70d098252", typeof(Analytics), typeof(Crashes)); - Console.WriteLine("FinishedLaunching"); base.FinishedLaunching(application, launchOptions); SharedMethod.SharedMethod.sharedApp = application; Shared.Application.IsGpsEnable = false; //NSString* nsCount = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]; + application.StatusBarStyle = UIStatusBarStyle.DarkContent; string nsCount = NSLocale.CurrentLocale.CountryCode; if (nsCount != UserConfig.Instance.CountryCode) @@ -227,13 +230,13 @@ { //RemoteInfo.Current.ReadMsgList(true); } - application.StatusBarStyle = UIStatusBarStyle.Default; //Harpy.Harpy.SharedInstance.PresentingViewController = this.Window.RootViewController; //Harpy.Harpy.SharedInstance.WeakDelegate = this; //Harpy.Harpy.SharedInstance.AlertType = Harpy.HarpyAlertType.Skip; //Harpy.Harpy.SharedInstance.DebugEnabled = false; //Harpy.Harpy.SharedInstance.ForceLanguageLocalization = Harpy.Constants.HarpyLanguageChineseSimplified; + Console.WriteLine("FinishedLaunching"); return true; } } -- Gitblit v1.8.0