From 312f9ece8d4a46d8989187730fc7f5c7fc36cfb5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期五, 12 七月 2024 15:20:52 +0800 Subject: [PATCH] Update SplashActivity.cs --- HDL-ON_Android/SplashActivity.cs | 24 +++++++++++------------- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/HDL-ON_Android/SplashActivity.cs b/HDL-ON_Android/SplashActivity.cs index ecdc3c4..6741136 100644 --- a/HDL-ON_Android/SplashActivity.cs +++ b/HDL-ON_Android/SplashActivity.cs @@ -10,7 +10,6 @@ using Android.Support.V4.Content; using CN.Jpush.Android.Api; //using Android.Widget; -using Com.Hdl.ON.Jpush.Androidjpush; using HDL_ON; using Java.Util; using Shared; @@ -139,7 +138,7 @@ //#endif JPushInterface.Init(this); - Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83"); + //Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83"); BaseActivity.OnCreateActoin += (activity, application) => @@ -222,10 +221,10 @@ { Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈"; } - else if (localeList.Language == "uk") - { - Language.CurrentLanguage = "Ukraine"; - } + //else if (localeList.Language == "uk") + //{ + // Language.CurrentLanguage = "Ukraine"; + //} else { Language.CurrentLanguage = "English"; @@ -274,10 +273,10 @@ { Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈"; } - else if (localeList.Language == "uk") - { - Language.CurrentLanguage = "Ukraine"; - } + //else if (localeList.Language == "uk") + //{ + // Language.CurrentLanguage = "Ukraine"; + //} else { Language.CurrentLanguage = "English"; @@ -341,7 +340,7 @@ { //淇濆瓨鑾峰彇鐨勬瀬鍏夋湇鍔″櫒涓婄殑娉ㄥ唽ID鍒版湰鍦版枃浠� var tokenID = JPushInterface.GetRegistrationID(activity); - Console.WriteLine("RegistrationID: " + tokenID); + Console.WriteLine("鏋佸厜鎺ㄩ�両d: " + tokenID); if (!string.IsNullOrEmpty(tokenID) && OnAppConfig.Instance.PushDeviceToken != tokenID) { OnAppConfig.Instance.PushDeviceToken = tokenID; @@ -355,14 +354,13 @@ { System.Threading.Thread.Sleep(1000); tokenID = JPushInterface.GetRegistrationID(activity); - Console.WriteLine("Sleep.tokenID + " + JPushInterface.GetRegistrationID(activity)); loadTokenCount++; if (loadTokenCount > 30) { break; } } - Console.WriteLine("RegistrationID: " + tokenID); + Console.WriteLine("鏋佸厜鎺ㄩ�両d: " + tokenID); if (!string.IsNullOrEmpty(tokenID) && OnAppConfig.Instance.PushDeviceToken != tokenID) { OnAppConfig.Instance.PushDeviceToken = tokenID; -- Gitblit v1.8.0