[NUI] make Theme not be loaded in tv profile
authordongsug.song <dongsug.song@samsung.com>
Tue, 13 Dec 2022 03:38:10 +0000 (12:38 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Wed, 14 Dec 2022 02:16:18 +0000 (11:16 +0900)
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/internal/Application/Application.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/Input/FocusManager.cs
src/Tizen.NUI/src/public/Theme/ThemeManager.cs

index c07625b..d9c7ab5 100755 (executable)
@@ -4,6 +4,10 @@
         <NoWarn>$(NoWarn);CS0618;CS0809;CS1591;CA1054;CA1056</NoWarn>
         <LangVersion>8.0</LangVersion>
     </PropertyGroup>
+    <PropertyGroup>
+        <DefineConstants>$(DefineConstants);NUI_DEBUG_OFF</DefineConstants>
+    </PropertyGroup>
+
     <ItemGroup>
         <TizenPreloadFile Include="Tizen.NUI.preload"
                           Sequence="30" />
index 176577e..7ccacae 100755 (executable)
@@ -688,6 +688,7 @@ namespace Tizen.NUI
             Tizen.Tracer.Begin("[NUI] OnApplicationInit: GetWindow");
             Window.Instance = GetWindow();
 #if !PROFILE_TV
+            //tv profile never use default focus indicator, so this is not needed!
             _ = FocusManager.Instance;
 #endif
             Tizen.Tracer.End();
index 5e64ac1..2bf18e4 100755 (executable)
@@ -1561,7 +1561,7 @@ namespace Tizen.NUI.BaseComponents
         protected virtual void InitializeStyle(ViewStyle style = null)
         {
 #if PROFILE_TV
-            Tizen.Log.Info("NUI", $"InitializeStyle() just return here in PROFILE_TV");
+            // tv profile doesn't use NUI Style, so do nothing and just return here!
             return;
 #endif
             var initialStyle = ThemeManager.GetInitialStyleWithoutClone(GetType());
index 66392d7..7cf7383 100755 (executable)
@@ -584,6 +584,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
 #if !PROFILE_TV
+            //tv profile never use default focus indicator, so this is not needed!
             ret.FocusIndicator = ret.GetDefaultFocusIndicator();
 #endif
             return ret;
index 96710ec..615edbe 100755 (executable)
@@ -54,10 +54,9 @@ namespace Tizen.NUI
         static ThemeManager()
         {
 #if ExternalThemeEnabled
-            Tizen.Log.Info("NUI", $"must not be shown in PROFILE_TV");
             ExternalThemeManager.Initialize();
-#endif
             AddPackageTheme(DefaultThemeCreator.Instance);
+#endif
         }
 
         /// <summary>
@@ -354,7 +353,7 @@ namespace Tizen.NUI
         internal static void AddPackageTheme(IThemeCreator themeCreator)
         {
 #if PROFILE_TV
-            Tizen.Log.Info("NUI", $"PROFILE_TV AddPackageTheme()");
+            // for tv profile, set empty theme and just return here!
             userTheme = null;
             baseTheme = themeCreator.Create();
             return;