From 52e317b95d830f8cd1156b403ff5a34fb8f9bccb Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 31 七月 2020 17:43:42 +0800
Subject: [PATCH] 2020-7-31-2
---
HDL-ON_iOS/AppDelegate.cs | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index b85adf9..0af72b9 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -7,6 +7,7 @@
using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter.Crashes;
+using HDL_ON.UI;
namespace SharedMethod
{
@@ -147,8 +148,6 @@
public override void DidEnterBackground(UIApplication application)
{
SharedMethod.SharedMethod.IsBackground = true;
- if (MainPage.LoginUser != null)
- HDL_ON.Entity.DB_ResidenceData.residenceData.SaveResidenceData();
Console.WriteLine("DidEnterBackground");
}
@@ -156,7 +155,8 @@
public override void WillEnterForeground(UIApplication application)
{
SharedMethod.SharedMethod.IsBackground = false;
- BusSocket.Start(6000);
+ //BusSocket.Start(6000);
+ new AppUnlockPage().LoadPage();
Console.WriteLine("WillEnterForeground");
UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
}
@@ -170,16 +170,16 @@
{
Console.WriteLine("OnActivated");
base.OnActivated(application);
+
}
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
- AppCenter.Start("e1add75a-82c6-4a5c-a902-4705b195748e",
- typeof(Analytics), typeof(Crashes));
+ Shared.Application.IsGpsEnable = true;
+ AppCenter.Start("e1add75a-82c6-4a5c-a902-4705b195748e",typeof(Analytics), typeof(Crashes));
base.FinishedLaunching(application, launchOptions);
SharedMethod.SharedMethod.sharedApp = application;
- Shared.Application.IsGpsEnable = false;
//NSString* nsCount = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];
application.StatusBarStyle = UIStatusBarStyle.DarkContent;
--
Gitblit v1.8.0