From 22288c2816f39348316a961806dc41bbe0ab6822 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 08 一月 2024 09:40:01 +0800 Subject: [PATCH] V2.4.3 bug fixed --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 50 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs index f27995e..9995fae 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs @@ -225,7 +225,31 @@ var regionId = (string)btnHomeName.Tag; dialog.Close(); LoadEvent_ChangeCurHome(home); - LoadContentView(); + new System.Threading.Thread(() => { + try + { + while (true) + { + if (Common.ApiUtlis.Ins.DownloadDataComplete) + { + System.Threading.Thread.Sleep(100); + } + else + { + Application.RunOnMainThread(() => + { + LoadContentView(); + }); + break; + } + } + } + catch { } + { + + } + }) { IsBackground = true }.Start(); + HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home); }; } @@ -409,7 +433,31 @@ var regionId = (string)btnHomeName.Tag; dialog.Close(); LoadEvent_ChangeCurHome(home); - LoadContentView(); + new System.Threading.Thread(() => { + try + { + while (true) + { + if (Common.ApiUtlis.Ins.DownloadDataComplete) + { + System.Threading.Thread.Sleep(100); + } + else + { + Application.RunOnMainThread(() => + { + LoadContentView(); + }); + break; + } + } + } + catch { } + { + + } + }) + { IsBackground = true }.Start(); HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home); }; } -- Gitblit v1.8.0