From 61852f188796c8ef82597bfa8f13c0ddcbb42ac1 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 27 十一月 2020 14:59:33 +0800
Subject: [PATCH] 2020-11-27-1
---
HDL-ON_iOS/AppDelegate.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index 4932f56..ac81ce3 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -144,7 +144,7 @@
{
Console.WriteLine("OnResignActivation");
OnAppConfig.Instance.unlockTime = DateTime.Now;
- BusSocket.Stop();
+ //BusSocket.Stop();
}
public override void DidEnterBackground(UIApplication application)
@@ -157,7 +157,7 @@
public override void WillEnterForeground(UIApplication application)
{
SharedMethod.SharedMethod.IsBackground = false;
- BusSocket.Start(6000);
+ //BusSocket.Start();
new AppUnlockPage().LoadPage();
Console.WriteLine("WillEnterForeground");
UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
@@ -195,9 +195,10 @@
application.StatusBarStyle = UIStatusBarStyle.DarkContent;
string nsCount = NSLocale.CurrentLocale.CountryCode;
- if (nsCount != OnAppConfig.Instance.CountryCode)
+
+ if (MainPage.LoginUser != null && nsCount != MainPage.LoginUser.areaCode.ToString())
{
- OnAppConfig.Instance.CountryCode = nsCount;
+ int.TryParse(nsCount,out MainPage.LoginUser.areaCode);
OnAppConfig.Instance.SaveUserConfig();
}
application.IdleTimerDisabled = true;
--
Gitblit v1.8.0