From 8615f80ef3a66cb115298510c625db4cb2ba6f8e Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 02 七月 2020 12:08:14 +0800
Subject: [PATCH] 2020-07-02-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
index 32005f1..cb02f21 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
@@ -1275,7 +1275,15 @@
                         var nightlight = new Nightlight();
                         UserView.HomePage.Instance.AddChidren(nightlight);
                         UserView.HomePage.Instance.PageIndex += 1;
-                        nightlight.Show(common, false, _if[1]);
+                        if (edit)
+                        {
+                            nightlight.Show(common, edit, _if[1], Common.Logic.CurrentLogic.Actions[intValue]);
+                        }
+                        else
+                        {
+                            nightlight.Show(common, edit, _if[1]);
+                        }
+                        
                     }
                     break;
             }

--
Gitblit v1.8.0