[Tizen] Modified value type of native layout direction property 54/148354/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 7 Sep 2017 13:17:24 +0000 (22:17 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 7 Sep 2017 13:17:24 +0000 (22:17 +0900)
Change-Id: Ibe6afa9a44a93f1edc50e2413246a807aad90648

Tizen.NUI/src/public/BaseComponents/View.cs

index 13067f1..0afc78d 100755 (executable)
@@ -4109,43 +4109,16 @@ namespace Tizen.NUI.BaseComponents
         {
             get
             {
-                string temp;
+                int temp;
                 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
                 {
                     NUILog.Error("LAYOUT_DIRECTION get error!");
                 }
-                switch (temp)
-                {
-                    case "LTR":
-                        return ViewLayoutDirectionType.LTR;
-                    case "RTL":
-                        return ViewLayoutDirectionType.RTL;
-                    default:
-                        return ViewLayoutDirectionType.LTR;
-                }
+                return (ViewLayoutDirectionType)temp;
             }
             set
             {
-                string valueToString = "";
-                switch (value)
-                {
-                    case ViewLayoutDirectionType.LTR:
-                    {
-                        valueToString = "LTR";
-                        break;
-                    }
-                    case ViewLayoutDirectionType.RTL:
-                    {
-                        valueToString = "RTL";
-                        break;
-                    }
-                    default:
-                    {
-                        valueToString = "LTR";
-                        break;
-                    }
-                }
-                SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(valueToString));
+                SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
             }
         }
     }