[Tizen] Fixed many issues.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / CustomView / Spin.cs
index f208769..cfed4a8 100755 (executable)
@@ -87,7 +87,7 @@ namespace Tizen.NUI
 
             // Create image visual for the arrow keys
             _arrowVisualPropertyIndex = RegisterProperty("ArrowImage", new PropertyValue(_arrowImage), Tizen.NUI.PropertyAccessMode.ReadWrite);
-            _arrowVisual = VisualFactory.Get().CreateVisual(
+            _arrowVisual = VisualFactory.Instance.CreateVisual(
                 new PropertyMap().Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))
                                  .Add(ImageVisualProperty.URL, new PropertyValue(_arrowImage))
                                  .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(150))
@@ -187,9 +187,8 @@ namespace Tizen.NUI
             }
             else
             {
-                // Return a native empty handle as nothing can be focused in the left or right
-                nextFocusedView = new View();
-                nextFocusedView.Reset();
+                // Return null
+                return null;
             }
 
             return nextFocusedView;
@@ -378,7 +377,7 @@ namespace Tizen.NUI
             set
             {
                 _arrowImage = value;
-                _arrowVisual = VisualFactory.Get().CreateVisual(
+                _arrowVisual = VisualFactory.Instance.CreateVisual(
                     new PropertyMap().Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))
                                  .Add(ImageVisualProperty.URL, new PropertyValue(_arrowImage))
                                  .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(150))