gxc
2019-12-25 944b87b6bcccb095cd73f13f4410fb20faf48f74
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
@@ -37,6 +37,7 @@
        /// </summary>
        private CommonDevice deviceObj = null;
        Action action;
        Action actionNone;
        string modifyDeviceName = "";
        bool IsModifyName = true;
        public Action<string> devicNameAction;
@@ -293,21 +294,18 @@
                 {
                     if (currentIndex == 3)
                     {
                         if (!UserCenterResourse.Option.DoorUnLockByRemote)
                         action = async () =>
                         {
                             SecurityRequest(doorLock, action);
                         }
                         else
                             var temporaryPassword = new Shared.Phone.UserCenter.DoorLock.TemporaryPassword(doorLock);
                             Shared.Phone.UserView.HomePage.Instance.AddChidren(temporaryPassword);
                             Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
                             temporaryPassword.Show();
                         };
                         actionNone = async () =>
                         {
                             action = async () =>
                             {
                                 var temporaryPassword = new Shared.Phone.UserCenter.DoorLock.TemporaryPassword(doorLock);
                                 Shared.Phone.UserView.HomePage.Instance.AddChidren(temporaryPassword);
                                 Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
                                 temporaryPassword.Show();
                             };
                             HdlCheckLogic.Current.CheckSecondarySecurity(action);
                         }
                             Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock, action);
                         };
                         HdlCheckLogic.Current.CheckSecondarySecurity(action, actionNone);
                     }
                     else if (currentIndex == 4)
                     {