[NUI] Change Feedback default as false in Control
authorDongsug Song <dongsug.song@samsung.com>
Tue, 26 Jan 2021 09:10:22 +0000 (18:10 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 1 Feb 2021 08:04:43 +0000 (17:04 +0900)
- Change Feedback default as false in Control
- Change Feedback as true in each Components (ex: Switch, Button)
- Add #if PROFILE_MOBILE to make NUI.Components run on Ubuntu

src/Tizen.NUI.Components/Controls/Button.Internal.cs
src/Tizen.NUI.Components/Controls/Control.cs
src/Tizen.NUI.Components/Controls/Switch.cs

index 82ff7a5..996f777 100755 (executable)
@@ -413,6 +413,10 @@ namespace Tizen.NUI.Components
             LayoutDirectionChanged += OnLayoutDirectionChanged;
 
             AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Button");
+            
+            #if PROFILE_MOBILE
+                Feedback = true;
+            #endif
         }
 
         private void UpdateUIContent()
index 833ca7f..a9a7464 100755 (executable)
@@ -303,8 +303,6 @@ namespace Tizen.NUI.Components
             StateFocusableOnTouchMode = false;
 
             EnableControlState = true;
-
-            Feedback = true;
         }
     }
 }
index 90945d4..4b04a91 100755 (executable)
@@ -315,6 +315,9 @@ namespace Tizen.NUI.Components
         private void Initialize()
         {
             IsSelectable = true;
+            #if PROFILE_MOBILE
+                Feedback = true;
+            #endif
         }
 
         private void OnSelect()