[NUI] Fix the crash in ubuntu-backend
authordongsug.song <dongsug.song@samsung.com>
Mon, 29 Apr 2024 07:59:48 +0000 (16:59 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 29 Apr 2024 08:09:05 +0000 (17:09 +0900)
src/Tizen.NUI/src/internal/Application/Application.cs
src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs

index cc9209e..7bdb603 100755 (executable)
@@ -690,9 +690,16 @@ namespace Tizen.NUI
             ProcessorController.Instance.Initialize();
             Tizen.Tracer.End();
 
+#if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
+            if(NUIApplication.IsUsingXaml)
+            {
+                Tizen.NUI.BaseComponents.View.CreateBindableProperties();
+            }
+#endif
             Log.Info("NUI", "[NUI] OnApplicationInit: GetWindow");
             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;
index 6aacc99..c4f29d0 100755 (executable)
@@ -393,12 +393,6 @@ namespace Tizen.NUI
 
             Log.Info("NUI", $"NUICorebackend OnPreCreated Called IsUsingXaml={NUIApplication.IsUsingXaml}");
 
-#if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
-            if(NUIApplication.IsUsingXaml)
-            {
-                View.CreateBindableProperties();
-            }
-#endif
             Tizen.Tracer.Begin("[NUI] OnInitialized(): OnPreCreated event handler");
             var preCreateHandler = Handlers[EventType.PreCreated] as Action;
             preCreateHandler?.Invoke();