From f8bd56a87a388bfe830a38a358bdd13d926058b2 Mon Sep 17 00:00:00 2001 From: hjhun <36876573+hjhun@users.noreply.github.com> Date: Mon, 5 Dec 2022 12:09:30 +0900 Subject: [PATCH] Call ToLower() and ToUpper() (#4800) To improve the performance of calling ToLower() and ToUpper(), the thread prints logs. Signed-off-by: Hwankyu Jhun Signed-off-by: Hwankyu Jhun --- .../Tizen.Applications/CoreApplication.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs b/src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs index 479882f..c2a97e7 100644 --- a/src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs +++ b/src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs @@ -381,6 +381,11 @@ namespace Tizen.Applications if (cultureInfo != null) { CultureInfo.CurrentCulture = cultureInfo; + Thread thread = new Thread(() => + { + Log.Info(LogTag, "Locale: " + locale.ToLower(cultureInfo) + ", " + locale.ToUpper(cultureInfo)); + }); + thread.Start(); } else { @@ -394,6 +399,11 @@ namespace Tizen.Applications if (cultureInfo != null) { CultureInfo.CurrentUICulture = cultureInfo; + Thread thread = new Thread(() => + { + Log.Info(LogTag, "Locale: " + locale.ToLower(cultureInfo) + ", " + locale.ToUpper(cultureInfo)); + }); + thread.Start(); } else { -- 2.7.4