黄学彪
2019-11-18 4ce5177289b1d34e467de9d8790836559cc5a09e
ZigbeeApp/Shared/Phone/Device/Account/AccountRegisterSuccess.cs
@@ -103,7 +103,8 @@
                {
                    try
                    {
                        UserPage.Instance.Fresh();
                        HomePage.Instance.ShowLoginLoadView();
                        CommonPage.Loading.Start(Language.StringByID(R.MyInternationalizationString.Logining));
                        Action action = async () => {
                            var loginSuccess = await HomePage.Instance.LoginByPWDAsync(account, password);
@@ -123,16 +124,15 @@
                                    //刷新个人中心的内存及线程
                                    await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
                                    Shared.Common.Room.CanInitAllRoom = true;
                                    Shared.Common.Room.InitAllRoom();
                                    Application.RunOnMainThread(() =>
                                    {
                                        UserPage.Instance.Fresh();
                                        CommonPage.Loading.Hide();
                                        this.RemoveFromParent();
                                        CommonPage.Instance.RemoveViewByTag("Register");
                                        CommonPage.Instance.RemoveViewByTag("Login");
                                        UserPage.Instance.Fresh();
                                    });
                                })
                                { IsBackground = true }.Start();