From 0b0f87750410cfdb07f88c264bb059c7861a15c6 Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期五, 21 七月 2023 14:45:45 +0800
Subject: [PATCH] feature Resoure file update

---
 HDL_ON/UI/MainPage.cs |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index 4f1d9af..a237a77 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -223,7 +223,7 @@
 #if __ANDROID__
             new System.Threading.Thread(async () =>
             {
-                int i = 0;
+                int i = 10;
                 while (i < 10) {
                     try
                     {
@@ -454,7 +454,8 @@
                 addResidencePage.LoadView();
                 return;
             }
-            new System.Threading.Thread(async () =>
+
+            new System.Threading.Thread(() =>
             {
                 try
                 {
@@ -504,6 +505,19 @@
                 }
             }).Start();
 
+
+            try
+            {
+#if __ANDROID__
+                Com.Chteam.Agent.BuglyAgentHelper.SetUserId(UserInfo.Current.AccountString);
+#else
+                Bugly.Bugly.SetUserIdentifier(UserInfo.Current.AccountString);
+#endif
+            }
+            catch (Exception ex)
+            {
+                MainPage.Log("Bugly error");
+            }
         }
 
         /// <summary>

--
Gitblit v1.8.0