From 42fad29b1e280b512452f5552d1e9ce98474252e Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 17 五月 2021 09:40:14 +0800
Subject: [PATCH] 2021-05-17 1.在阿廖分支基础上增加iOS乐橙可视对讲功能,目前呼叫还有一点问题,偶尔会闪退,目前还没定位到原因

---
 HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs
index 1c95f32..c576ebf 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs
@@ -45,7 +45,6 @@
 
             var row = new FrameLayout()
             {
-                //Width = Application.GetRealWidth(200),
                 Height = Application.GetRealHeight(56),
             };
             contentView.AddChidren(row);
@@ -53,11 +52,10 @@
             int index = 0;
             foreach(var attr in device.attributes)
             {
-                if(index != 0 && index%3==0)
+                if (index != 0 && index % 3 == 0)
                 {
                     row = new FrameLayout()
                     {
-                        Width = Application.GetRealWidth(200),
                         Height = Application.GetRealHeight(56),
                     };
                     contentView.AddChidren(row);
@@ -92,7 +90,7 @@
 
                 btn.MouseUpEventHandler = (sender, e) => {
                     System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                    d.Add(FunctionAttributeKey.Key, attr.key);
+                    d.Add(attr.key, "");
                     Control.Ins.SendWriteCommand(device, d);
 
                     new System.Threading.Thread(() => {

--
Gitblit v1.8.0