From ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 02 十二月 2024 17:17:19 +0800 Subject: [PATCH] tcp;可视对讲; --- HDL_ON/UI/UI2/UserPage.cs | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs index 6a3074f..203c1e3 100644 --- a/HDL_ON/UI/UI2/UserPage.cs +++ b/HDL_ON/UI/UI2/UserPage.cs @@ -91,7 +91,8 @@ { try { - bodyView = this; + + bodyView = this;//1 bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; ContextView = new FrameLayout() { @@ -104,12 +105,10 @@ { Y = Application.GetRealHeight(607), Height = Application.GetMinRealAverage(60), - //BackgroundColor = CSS_Color.BackgroundColor }; bodyView.AddChidren(navigationView); if (MainPage.Increase) { - //ContextView.Height = Application.GetRealHeight(618 + 20); navigationView.Y = Application.GetRealHeight(597 + 5); navigationView.Height = Application.GetRealHeight(70 - 5); } @@ -117,9 +116,9 @@ LoadEventList(); - var homePage = new HomePage(); - ContextView.AddChidren(homePage); - homePage.LoadPage(); + //var homePage = new HomePage(); + //ContextView.AddChidren(homePage); + //homePage.LoadPage(); if (!MainPage.NoLoginMode) { @@ -132,8 +131,15 @@ //寮�鍚畾浣嶆湇鍔� try { - Shared.Application.StartGPSLocationService(); - }catch(Exception ex) + if (DB_ResidenceData.Instance.CheckGPS_IsFirst) + { + DB_ResidenceData.Instance.CheckGPS_IsFirst = false; + (Shared.Application.Activity as BaseActivity).CheckLocationPermission(); + } + Shared.Application.StartGPSLocationService(); + + } + catch (Exception ex) { MainPage.Log("寮�鍚畾浣嶆湇鍔″紓甯�:" + ex.Message); } @@ -485,9 +491,10 @@ { btnNavigationSelectionIcon.SetRotation(0f); ContextView.RemoveAll(); - var classificaitionView = new ClassificationPage(); + var classificaitionView = new ClassificationPage(); ContextView.AddChidren(classificaitionView); classificaitionView.LoadPage(); + }); }) { IsBackground = true, Priority = System.Threading.ThreadPriority.Lowest }.Start(); -- Gitblit v1.8.0