From aed247d7fa4499665041864479fae82089eafe5f Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 07 一月 2020 09:15:57 +0800
Subject: [PATCH] 2019.1.7

---
 ZigbeeApp/Shared/Common/DeviceUI.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/DeviceUI.cs b/ZigbeeApp/Shared/Common/DeviceUI.cs
index 913102d..e2e697b 100644
--- a/ZigbeeApp/Shared/Common/DeviceUI.cs
+++ b/ZigbeeApp/Shared/Common/DeviceUI.cs
@@ -339,6 +339,10 @@
             {
                 return Language.StringByID(R.MyInternationalizationString.UnallocatedArea);
             }
+            if(string.IsNullOrEmpty(room.FloorId))
+            {
+                return room.Name;
+            }
             var floorName = Config.Instance.Home.GetFloorNameById(room.FloorId);
             if (floorName == null)
             {

--
Gitblit v1.8.0