From 3291885285dfd5d4f665c20676307878dc3163bc Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 20 十二月 2019 16:28:53 +0800
Subject: [PATCH] 请合并最新代码(优化设备不支持的功能)
---
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
old mode 100644
new mode 100755
index e019808..194f8d7
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
@@ -85,6 +85,7 @@
{
MidFrameLayoutContent();
CommonPage.Loading.Hide();
+ midVerticalScrolViewLayout.EndHeaderRefreshing();
});
}
});
@@ -150,14 +151,15 @@
{
};
this.midFrameLayout.AddChidren(midVerticalScrolViewLayout);
+
+ CommonPage.Loading.Start("Loading...");
+ ReadAccountDoorLockInfoList();
+
midVerticalScrolViewLayout.BeginHeaderRefreshingAction += () =>
{
midVerticalScrolViewLayout.BeginHeaderRefreshing();
-
- midVerticalScrolViewLayout.EndHeaderRefreshing();
+ ReadAccountDoorLockInfoList();
};
- CommonPage.Loading.Start("Loading...");
- ReadAccountDoorLockInfoList();
}
/// <summary>
@@ -220,7 +222,7 @@
line2.Visible = false;
}
- if (currentAccount.UserName != null)
+ if (!string.IsNullOrEmpty(currentAccount.UserName))
{
btnText.Text = currentAccount.UserName;
}
--
Gitblit v1.8.0