Fixing circleCI
authork.stepaniuk <k.stepaniuk@samsung.com>
Tue, 8 Dec 2020 15:38:03 +0000 (16:38 +0100)
committerPiotr Czaja <p.czaja@samsung.com>
Tue, 14 Sep 2021 11:01:34 +0000 (13:01 +0200)
Signed-off-by: k.stepaniuk <k.stepaniuk@samsung.com>
Fitness/Controls/NinePatchButton.cs
Fitness/Views/Styles/NinePatchButtonStyle.cs

index a078ab8..b1370ab 100644 (file)
@@ -13,6 +13,17 @@ namespace Fitness.Controls
             this.Relayout += NinePatchButton_Relayout;
         }
 
+        private static string AsPath(string url)
+        {
+            if (!string.IsNullOrEmpty(url) && url.Contains("*Resource*"))
+            {
+                string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
+                url = url.Replace("*Resource*", resource);
+            }
+
+            return url;
+        }
+
         protected override void OnControlStateChanged(ControlStateChangedEventArgs controlStateChangedInfo)
         {
             UpdateButton();
@@ -24,17 +35,6 @@ namespace Fitness.Controls
             UpdateButton();
         }
 
-        private static string AsPath(string url)
-        {
-            if (!String.IsNullOrEmpty(url) && url.Contains("*Resource*"))
-            {
-                string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
-                url = url.Replace("*Resource*", resource);
-            }
-
-            return url;
-        }
-
         private void UpdateButton(Color color, string url)
         {
             PropertyMap outputVisualMap = null;
@@ -60,7 +60,7 @@ namespace Fitness.Controls
 
         private void UpdateButton()
         {
-            if (ViewStyle is NinePatchButtonStyle style && !String.IsNullOrEmpty(style.NormalImageUrl))
+            if (ViewStyle is NinePatchButtonStyle style && !string.IsNullOrEmpty(style.NormalImageUrl))
             {
                 if (ControlState == ControlState.Normal)
                 {
index 9ba6bb4..afca248 100644 (file)
@@ -5,10 +5,15 @@ namespace Fitness.Views.Styles
     public class NinePatchButtonStyle : ButtonStyle
     {
         public string NormalImageUrl { get; set; }
+
         public string PressedImageUrl { get; set; }
+
         public string DisabledImageUrl { get; set; }
+
         public Tizen.NUI.Color NormalColor { get; set; }
+
         public Tizen.NUI.Color PressedColor { get; set; }
+
         public Tizen.NUI.Color DisabledColor { get; set; }
     }
 }