From d53e6af2c5f17838fa79659614b15a2a1f383399 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 31 三月 2023 10:04:58 +0800
Subject: [PATCH] 1

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
index b4f8024..6046a51 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
@@ -48,6 +48,39 @@
             //    Utlis.WriteLine (ex.ToString ());
             //}
 
+            ShowBodyView ();
+
+        }
+
+        /// <summary>
+        /// 褰撳墠setting椤甸潰 鍔犺浇鏄惁鍒嗕韩浣忓畢瑙掕壊,鍐冲畾鏄惁闅愯棌鐩稿簲鐨勮彍鍗曟寜閽�
+        /// </summary>
+        static bool IsOthreShare = false;
+        /// <summary>
+        /// 浣忓畢鍒楄〃椤甸潰
+        /// 鍒囨崲浣忓畢鍚庨渶瑕佸垽鏂槸鍚﹂渶瑕侀殣钘忔垨鑰呮樉绀哄姛鑳借彍鍗曟寜閽埛鏂板竷灞�
+        /// 褰撳墠浣忓畢鑷繁鐨勶細鏄剧ず鏁版嵁鎺ユ敹銆佸悓姝ユ暟鎹�佸畾鏃跺櫒銆乤lexa銆佸瓙璐﹀彿绠$悊 5涓姛鑳借彍鍗曟寜閽�
+        /// 瀛愯处鍙峰綋鍓嶄綇瀹呬笉鏄嚜宸辩殑锛氶殣钘忎笂闈�5涓寜閽�
+        /// </summary>
+        public static void CheckIfRefreshView ()
+        {
+           if(UserConfig.Instance.CurrentRegion.IsOthreShare != IsOthreShare) {
+                ShowBodyView ();
+                //Utlis.WriteLine ("闇�瑕佸埛鏂�");
+            }
+        }
+
+        /// <summary>
+        /// 鍔犺浇BodyView 
+        /// </summary>
+        public static void ShowBodyView ()
+        {
+            if (UserMiddle.SettingView == null) return;
+
+            UserMiddle.SettingView.RemoveAll ();
+
+            IsOthreShare = UserConfig.Instance.CurrentRegion.IsOthreShare;
+
             FrameLayout topUserMsgView = new FrameLayout () {
                 Y = Application.GetRealHeight (126),
                 Height = Application.GetRealHeight (175),
@@ -327,6 +360,7 @@
                 };
 
                 CommonUtlis.Current.ShowActionAlert (Language.StringByID (R.MyInternationalizationString.DoYouWantToSynchronizeToTheCloud), okAction);
+
             };
             SyncDeviceView.MouseUpEventHandler += SyncDeviceEventHandler;
             btnSyncDeviceIcon.MouseUpEventHandler += SyncDeviceEventHandler;
@@ -391,10 +425,11 @@
             };
             AlexaView.AddChidren (btnAlexaIcon);
 
+            //鏅鸿兘闊崇
             Button btnAlexaTitle = new Button () {
                 X = Application.GetRealWidth (125),
                 TextAlignment = TextAlignment.CenterLeft,
-                Text = "Alexa Integration",
+                Text = "Smart speaker",
                 TextColor = SkinStyle.Current.TextColor1,
             };
             AlexaView.AddChidren (btnAlexaTitle);
@@ -556,7 +591,6 @@
                 BackgroundColor = SkinStyle.Current.MainColor
             };
             UserMiddle.SettingView.AddChidren (btnNullSkin);
-
         }
 
         static void GoData ()

--
Gitblit v1.8.0