From f718d23a262a5a8e1241fdeaeb4153399f95e79d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 21 四月 2020 09:19:05 +0800
Subject: [PATCH] 20200421
---
HDL-ON_iOS/AppDelegate.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index afe1206..b85adf9 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -147,7 +147,8 @@
public override void DidEnterBackground(UIApplication application)
{
SharedMethod.SharedMethod.IsBackground = true;
- HDL_ON.Entity.DB_ResidenceData.residenceData.SaveResidenceData();
+ if (MainPage.LoginUser != null)
+ HDL_ON.Entity.DB_ResidenceData.residenceData.SaveResidenceData();
Console.WriteLine("DidEnterBackground");
}
--
Gitblit v1.8.0