From 6d55af8792cf8fbef0055e677b900fc352dba9a2 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 04 六月 2020 15:17:14 +0800
Subject: [PATCH] 2020-06-04 1.更新。

---
 SmartHome/ON/Application.cs |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/SmartHome/ON/Application.cs b/SmartHome/ON/Application.cs
index 9600210..d9c63b4 100644
--- a/SmartHome/ON/Application.cs
+++ b/SmartHome/ON/Application.cs
@@ -56,7 +56,7 @@
             Locale locale1 = Locale.Default;
             var localeList = Resources.Configuration.Locale;
             //if(localeList.Language == "zh") {
-                //Language.CurrentLanguage = "Chinese";
+            //Language.CurrentLanguage = "Chinese";
             //}
 
             string [] permissions = new string [] { Manifest.Permission.WriteExternalStorage, Manifest.Permission.RecordAudio,
@@ -129,7 +129,7 @@
                     while (string.IsNullOrEmpty (tokenID)) {
                         System.Threading.Thread.Sleep (1000);
                         tokenID = JPushInterface.GetRegistrationID (activity);
-                        Console.WriteLine ("Sleep.tokenID + "+ JPushInterface.GetRegistrationID (activity));
+                        Console.WriteLine ("Sleep.tokenID + " + JPushInterface.GetRegistrationID (activity));
                         loadTokenCount++;
                         if (loadTokenCount > 30) {
                             break;
@@ -144,14 +144,14 @@
 #endif
 
                 BaseActivity.NetworkStateChanged += (int obj) => {
-                    MqttCommon.DisConnectRemoteMqttClient("NetworkStateChanged") ;
+                    MqttCommon.DisConnectRemoteMqttClient ("NetworkStateChanged");
                     Shared.SimpleControl.EquipmentPublicClass.CheckLinkRemote (obj);
                 };
-                
+
             };
             BaseActivity.RefreshUIAction += (activity) => {
                 MainPage.Show ();
-                    checkSomeInfo ();
+                checkSomeInfo ();
             };
             BaseActivity.OnResumeAction += (activity) => {
                 //new System.Threading.Thread (() => {
@@ -159,7 +159,7 @@
                 //        System.Threading.Thread.Sleep (50);
                 //    }
                 MqttCommon.DisConnectRemoteMqttClient ();
-                    checkSomeInfo ();
+                checkSomeInfo ();
                 Console.WriteLine ("Close OnResumeAction!!!");
                 WiFiSet.refreshView?.Invoke ();
             };
@@ -178,7 +178,8 @@
             //璁剧疆鏋佸厜璋冭瘯妯″紡锛屼负false鏃跺彧鎵撳嵃璀﹀憡淇℃伅
             JPushInterface.SetDebugMode (false);
             JPushInterface.Init (this);//淇濆瓨鎵嬫満鍚嶇О鍒版湰鍦版枃浠�
-            //鑾峰彇缁忕含搴� 
+            //鑾峰彇缁忕含搴�
+            MainPage.AirQuality = new AirQuality ();
             Shared.Application.LocationAction = (arg1, arg2) => {
                 Shared.Application.LocationAction = null;
                 System.Threading.Tasks.Task.Run (() => {
@@ -280,7 +281,7 @@
         "cn.jpush.android.intent.NOTIFICATION_OPENED",
         "cn.jpush.android.intent.CONNECTION"
         },
-               Categories = new string [] { "com.hdl.on" })
+               Categories = new string [] { "com.hdl.in" })
            ]
     public class JpushNotificationReceiver : BroadcastReceiver
     {
@@ -301,9 +302,8 @@
                 else if (JPushInterface.ActionRegistrationId == intent.Action) {
                     string regId = bundle.GetString (JPushInterface.ExtraRegistrationId);
                     //System.Console.WriteLine ("Registration ID:" + regId);
-                }
-                else if (JPushInterface.ActionNotificationOpened == intent.Action) {
-                Console.WriteLine ("鐢ㄦ埛鐐瑰嚮鎵撳紑浜嗛�氱煡");
+                } else if (JPushInterface.ActionNotificationOpened == intent.Action) {
+                    Console.WriteLine ("鐢ㄦ埛鐐瑰嚮鎵撳紑浜嗛�氱煡");
                     Application.IsShowTip = false;
 
                     if (Shared.Application.Activity == null) {
@@ -312,7 +312,7 @@
                         context.StartActivity (tempIntent);
                     } else {
                         (Shared.Application.Activity as BaseActivity).MoveToFront ();
-                        RemoteInfo.Current.ReadMsgList ( false);
+                        RemoteInfo.Current.ReadMsgList (false);
                     }
                 } else {
                     Console.WriteLine ("鏋佸厜鎺ㄩ��!!!");

--
Gitblit v1.8.0