From 43110ef19b9e69d5afd7ce0a978565786baa87b5 Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期三, 27 四月 2022 14:13:53 +0800
Subject: [PATCH] 修复红米手机闪退问题

---
 ZigbeeApp/Shared/Phone/MainPage/LeftListRoomViewFrom.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/LeftListRoomViewFrom.cs b/ZigbeeApp/Shared/Phone/MainPage/LeftListRoomViewFrom.cs
index da61323..9f5be03 100755
--- a/ZigbeeApp/Shared/Phone/MainPage/LeftListRoomViewFrom.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/LeftListRoomViewFrom.cs
@@ -161,6 +161,11 @@
         /// </summary>
         public void RefreshListRoom()
         {
+            if (Config.Instance.Home.FloorDics.Count == 0)
+            {
+                //鏉ュ洖鍒囨崲澶囦唤,浼氬嚭鐜伴棶棰�,妤煎眰id娌℃竻闄�
+                this.curFloorId = string.Empty;
+            }
             //淇濋櫓璧疯,杩欓噷瑕佸叧闂湭鍒嗛厤鐣岄潰
             this.CloseUnallocatedRoomForm();
 
@@ -293,7 +298,7 @@
             frameBack.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
 
             //鏈垎閰�
-            var btnName = new NormalViewControl(141, 84, true);
+            var btnName = new NormalViewControl(250, 84, true);
             btnName.X = this.GetPictrueRealSize(244);
             btnName.Y = this.GetPictrueRealSize(131);
             btnName.IsBold = true;

--
Gitblit v1.8.0