From 67536549b8a07077799f0224af7a39d13c9d3e0d Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 21 十二月 2020 21:05:49 +0800
Subject: [PATCH] 2020-12-21 1.IOS去掉bugly。2.修复EixtAccount没断开mqtt问题
---
HDL_ON/Entity/Function/Scene.cs | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs
index c6ad0eb..a369fa7 100644
--- a/HDL_ON/Entity/Function/Scene.cs
+++ b/HDL_ON/Entity/Function/Scene.cs
@@ -236,23 +236,17 @@
{
Application.RunOnMainThread(() =>
{
- if (time / 60 > 1)
+ if (time > 60)
{
- btnShowDelay.Text = (time / 60).ToString() + "min";
+ btnShowDelay.Text = (time / 60).ToString() + "min" + time % 60 + "s";
}
else
{
- btnShowDelay.Text = (time--).ToString() + "s";
+ btnShowDelay.Text = time.ToString() + "s";
}
});
- if (time / 60 > 1)
- {
- System.Threading.Thread.Sleep(time / 60 * 60000);
- }
- else
- {
- System.Threading.Thread.Sleep(1000);
- }
+ System.Threading.Thread.Sleep(1000);
+ time--;
}
Application.RunOnMainThread(() =>
{
--
Gitblit v1.8.0