From bbbfbb1fff6d2520c3f7c85d834b166e813a8a74 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期四, 06 四月 2023 10:34:49 +0800
Subject: [PATCH] 1.更新EZSDK.IOS.dll 2.增加使用app中定位隐私描述 3.更新添加萤石设备storyboard 4.更改萤石门锁页面适配

---
 HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs |   45 +++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 41 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs
index 352d61c..409c93e 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs
@@ -214,11 +214,17 @@
                 TextAlignment = TextAlignment.Center,
                 UnSelectedImagePath = "FunctionIcon/DoorLock/Cell.png",
             };
-            cellFrame.AddChidren(btnCell); 
+            cellFrame.AddChidren(btnCell);
+
+#if __IOS__
+            btnCell.Width += 5;
+            cellFrame.Width += 5;
+#else
+#endif
 
 
-             //闂ㄩ攣鐘舵��
-             btnDoorLockIcon = new Button
+                        //闂ㄩ攣鐘舵��
+                        btnDoorLockIcon = new Button
             {
                 X = Application.GetRealWidth(65),
                 Y = Application.GetRealHeight(108),
@@ -317,7 +323,7 @@
             //瀹炴椂瑙嗛
             this.rtvFL.SetClickListener((fl, btnStateImage, btnStateText) =>
             {
-                CommonMethod.Current.SkipRTVActivity(this.device.sid, this.device.deviceId, this.device.spk);
+                CommonMethod.Current.SkipRTVActivity(this.device.sid, this.device.deviceId, this.device.spk, false);
             });
             //涓存椂瀵嗙爜
             this.pswFL.SetClickListener((fl, btnStateImage, btnStateText) =>
@@ -363,18 +369,22 @@
             });
         }
 
+
+
         /// <summary>
         /// 閲嶆柊璁$畻瀹藉害(璁惧鍚嶇О,鎴块棿鎺т欢)
         /// </summary>
         private void CalculatedPosition()
         {
             this.btnCurrDeviceName.Width = this.btnCurrDeviceName.GetTextWidth();
+            this.btnCurrDeviceName.Width += 10;
             if (this.btnCurrDeviceName.GetTextWidth() > this.btnCollectIcon.X)
             {
                 //閲嶆柊璁$畻瀹藉害
                 this.btnCurrDeviceName.Width = this.btnCollectIcon.X + Application.GetRealWidth(-10);
             }
             this.btnCurrDeviceRoom.Width = this.btnCurrDeviceRoom.GetTextWidth();
+            this.btnCurrDeviceRoom.Width += 10;
             if (this.btnCurrDeviceRoom.GetTextWidth() > this.btnCollectIcon.X)
             {
                 //閲嶆柊璁$畻瀹藉害
@@ -383,6 +393,33 @@
             this.cellFrame.X = this.btnCurrDeviceRoom.Right + Application.GetRealWidth(20);
         }
 
+        /// <summary>
+        /// 鏇存柊鐘舵��
+        /// </summary>
+        public void UpdateState(PushMessageType pushMessageType)
+        {
+            CommonMethod.Current.MainThread(() =>
+            {
+                if (pushMessageType == PushMessageType.Alarm)
+                {
+                    //闂ㄩ攣鐢垫睜鍊�
+                    if (this.btnCell != null)
+                    {
+                        //videoDoorLockPage.btnCell.Text = "";
+                    }
+                }
+                else
+                {
+                    if (this.btnDoorLockIcon != null && !this.btnDoorLockIcon.IsSelected)
+                    {
+                        this.btnDoorLockIcon.IsSelected = false;
+                    }
+                }
+
+            });
+
+        }
+
     }
     /// <summary>
     /// 鑷繁寮勪竴涓狥rameLayout

--
Gitblit v1.8.0