From 88b9c9dbae4f0f28529cd3b3ffe53cd26f19f738 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期日, 30 七月 2023 21:55:50 +0800 Subject: [PATCH] Merge branch 'wxr-2.1' into Dev-Branch --- HDL_ON/UI/UI2/UserPage.cs | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs index 26bdd0d..203c1e3 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,12 +134,12 @@ 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); } -- Gitblit v1.8.0