From 9bef786592d10aaecc124fa7949519b2948df8be Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 14 六月 2023 16:27:29 +0800
Subject: [PATCH] 安卓linqhone闪退修复

---
 HDL_ON/UI/UI1-Login/LoginPage.cs |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs
index 0eda5db..8791ad1 100644
--- a/HDL_ON/UI/UI1-Login/LoginPage.cs
+++ b/HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -37,6 +37,10 @@
                 }
             };
             BaseActivity.ShowKeyboardEvent = () => {
+                if(this.Y != 0)
+                {
+                    return;
+                }
                 try
                 {
                     if (etPassword.Foucs)
@@ -96,6 +100,7 @@
                 waitPage.RemoveFromParent();
                 waitPage = null;
             }
+            Application.HideSoftInput();
 
 #if __ANDROID__
             BaseActivity.HideKeyboardEvent = () => {
@@ -246,6 +251,7 @@
 #if __Android__
             OnAppConfig.Instance.isAgreePrivacyPolicy = true;
 #endif
+            this.BackgroundColor = CSS_Color.MainBackgroundColor;
             var btnIcon = new Button()
             {
                 X = Application.GetRealWidth(28),
@@ -313,8 +319,8 @@
                     //etAccount.Text = "13751916353";
                     etAccount.Text = "13549566666";
                     etAccount.Text = "18316672920";
-                    etAccount.Text = "support7@hdlautomation.com";
                     etAccount.Text = "13375012446";//娴嬭瘯鏈嶅姟鍣�
+                    etAccount.Text = "support7@hdlautomation.com";
                 }
                 else
                 {
@@ -772,8 +778,13 @@
                         new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on"   },
                         new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="100",state = "100"   },
                         new FunctionAttributes() { key = "rgb",value =new List<string>(){ "0","100" }, curValue="0,0,0",state = "0,0,0"   },
-                        //new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0"   },
+                        new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0"   },
                         new FunctionAttributes() { key = "delay",value =new List<string>(){ "0","100" }, curValue="0",state = "0"   },
+                        //new FunctionAttributes() { key = "colorful",value =new List<string>(){ "on","off" }, curValue="on",state = "on"   },
+                        //new FunctionAttributes() { key = "colorful_begin",value =new List<string>(){ "0","100" }, curValue="0,0,0",state = "0,0,0"   },
+                        //new FunctionAttributes() { key = "colorful_end",value =new List<string>(){ "0","100" }, curValue="0,0,0",state = "0,0,0"   },
+                        //new FunctionAttributes() { key = "colorful_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0"   },
+                        
                     },
                 };
                 lightRgb1.SaveFunctionFile();

--
Gitblit v1.8.0