From 25a4d431aafe58e4d378d7fde4030768369296c6 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期三, 11 九月 2024 18:04:04 +0800
Subject: [PATCH] Update HDL-ON_Android.csproj
---
HDL_ON/UI/UI2/UserPage.cs | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs
index 26bdd0d..a1748ae 100644
--- a/HDL_ON/UI/UI2/UserPage.cs
+++ b/HDL_ON/UI/UI2/UserPage.cs
@@ -91,6 +91,7 @@
{
try
{
+
bodyView = this;//1
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
ContextView = new FrameLayout()
@@ -133,28 +134,28 @@
if (DB_ResidenceData.Instance.CheckGPS_IsFirst)
{
DB_ResidenceData.Instance.CheckGPS_IsFirst = false;
- Console.WriteLine("寮�鍚畾浣嶆湇鍔�111111111");
- Shared.Application.StartGPSLocationService();
- Console.WriteLine("寮�鍚畾浣嶆湇鍔�1111111112");
+ (Shared.Application.Activity as BaseActivity).CheckLocationPermission();
}
+ Shared.Application.StartGPSLocationService();
+
}
- catch(Exception ex)
+ 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)
- {
- Action action = () =>
- {
- CN.Jpush.Android.Api.JPushInterface.GoToAppNotificationSettings(Shared.Application.Activity);
- };
- Shared.Application.RunOnMainThread(() =>
- {
- new HDL_ON.UI.ConfirmDialog().ShowDialog(StringId.Tip, StringId.Android_MessagePushTip, action);
- });
- }
+ //if (CN.Jpush.Android.Api.JPushInterface.IsNotificationEnabled(Shared.Application.Activity) != 1)
+ //{
+ // Action action = () =>
+ // {
+ // CN.Jpush.Android.Api.JPushInterface.GoToAppNotificationSettings(Shared.Application.Activity);
+ // };
+ // Shared.Application.RunOnMainThread(() =>
+ // {
+ // new HDL_ON.UI.ConfirmDialog().ShowDialog(StringId.Tip, StringId.Android_MessagePushTip, action);
+ // });
+ //}
}
#endif
--
Gitblit v1.8.0