From: Jiyun Yang Date: Fri, 30 Jun 2023 05:42:44 +0000 (+0900) Subject: [NUI] Disable ThemeManager preload X-Git-Tag: submit/tizen_7.0/20230706.151019~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b041bdf195c8dfacaab163c1d3ca6af29ddf3f5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Disable ThemeManager preload Signed-off-by: Jiyun Yang --- diff --git a/src/Tizen.NUI.Components/Theme/DefaultTheme.cs b/src/Tizen.NUI.Components/Theme/DefaultTheme.cs index 1202042..18d2128 100755 --- a/src/Tizen.NUI.Components/Theme/DefaultTheme.cs +++ b/src/Tizen.NUI.Components/Theme/DefaultTheme.cs @@ -25,13 +25,6 @@ namespace Tizen.NUI.Components public static void Preload() { - if (ThemeManager.InitialThemeDisabled) return; - - ThemeManager.AddPackageTheme(Instance); - - if (string.IsNullOrEmpty(ExternalThemeManager.CurrentThemeId)) return; - - ThemeManager.LoadPlatformTheme(ExternalThemeManager.CurrentThemeId); } } } diff --git a/src/Tizen.NUI/src/public/Application/NUIApplication.cs b/src/Tizen.NUI/src/public/Application/NUIApplication.cs index 592421a..8232160 100755 --- a/src/Tizen.NUI/src/public/Application/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/Application/NUIApplication.cs @@ -610,7 +610,6 @@ namespace Tizen.NUI static public void Preload() { Interop.Application.PreInitialize(); - ThemeManager.Preload(); IsPreload = true; } diff --git a/src/Tizen.NUI/src/public/Theme/ThemeManager.cs b/src/Tizen.NUI/src/public/Theme/ThemeManager.cs index 2ff12cb..5f253da 100755 --- a/src/Tizen.NUI/src/public/Theme/ThemeManager.cs +++ b/src/Tizen.NUI/src/public/Theme/ThemeManager.cs @@ -453,15 +453,6 @@ namespace Tizen.NUI UpdateThemeForInitialize(); } - internal static void Preload() - { - if (InitialThemeDisabled) return; - - if (string.IsNullOrEmpty(ExternalThemeManager.CurrentThemeId)) return; - - LoadPlatformTheme(ExternalThemeManager.CurrentThemeId); - } - // TODO Please make it private after removing Tizen.NUI.Components.StyleManager. internal static void UpdateThemeForUpdate() {