From 5c25f9546d0954befb202910540a5ac59af1adfe Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 04 一月 2021 14:07:27 +0800 Subject: [PATCH] 20210103:增加安卓后退按键 --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index daf89de..eb0a593 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -98,7 +98,7 @@ } string msg = function.name + Language.StringByID(StringId.CollectionCancelled); LoadDeviceFunctionControlZone(); - function.SaveFunctionData(true); + function.CollectFunction(); new PublicAssmebly().TipMsgAutoClose(msg, true); }; } @@ -202,7 +202,10 @@ } else { - btn.Text = function.lastState; + if (function.spk != SPK.LightSwitch) + { + btn.Text = function.lastState; + } } } } -- Gitblit v1.8.0