From cbe129e8754553ab5326b804f26714d209f0fa55 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 17 十一月 2022 21:04:28 +0800
Subject: [PATCH] 定位异常捕获
---
HDL_ON/UI/UI2/UserPage.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs
index e8c5add..506cee4 100644
--- a/HDL_ON/UI/UI2/UserPage.cs
+++ b/HDL_ON/UI/UI2/UserPage.cs
@@ -131,8 +131,13 @@
#if __Android__
//寮�鍚畾浣嶆湇鍔�
- Shared.Application.StartGPSLocationService();
-
+ try
+ {
+ Shared.Application.StartGPSLocationService();
+ }catch(Exception ex)
+ {
+ MainPage.Log("寮�鍚畾浣嶆湇鍔″紓甯�:" + ex.Message);
+ }
if (DB_ResidenceData.Instance.NeedTip) {
DB_ResidenceData.Instance.LastTipTime = DateTime.Now;
if (CN.Jpush.Android.Api.JPushInterface.IsNotificationEnabled(Shared.Application.Activity) != 1)
--
Gitblit v1.8.0