From 9b76aa77b9c5bf8ccb373cb30e3dca85d224175e Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期五, 25 十月 2024 11:36:49 +0800 Subject: [PATCH] 金茂UI走查,字体更换 --- HDL-ON_Android/SplashActivity.cs | 33 +++++++++++++++------------------ 1 files changed, 15 insertions(+), 18 deletions(-) diff --git a/HDL-ON_Android/SplashActivity.cs b/HDL-ON_Android/SplashActivity.cs index ecdc3c4..2a45e06 100644 --- a/HDL-ON_Android/SplashActivity.cs +++ b/HDL-ON_Android/SplashActivity.cs @@ -3,16 +3,14 @@ using Android.App; using Android.Content; using Android.Content.PM; +using Android.Graphics; using Android.Locations; using Android.Net; using Android.OS; using Android.Support.V4.App; 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; namespace HDL_ON_Android @@ -23,7 +21,6 @@ { protected override void OnActivityResult(int requestCode, Result resultVal, Intent data) { - Console.WriteLine("123456"); if (requestCode == 99) { if (resultVal == Result.Ok) @@ -46,10 +43,11 @@ [Obsolete] protected override void OnCreate(Bundle savedInstanceState) { - Console.WriteLine("123456"); base.OnCreate(savedInstanceState); - if(Shared.Application.Activity != null && Shared.Application.Activity.GetType() == typeof(BaseActivity)) + + + if (Shared.Application.Activity != null && Shared.Application.Activity.GetType() == typeof(BaseActivity)) { Finish(); return; @@ -139,7 +137,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 +220,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 +272,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 +339,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 +353,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