From: Dongsug Song Date: Tue, 26 Jan 2021 09:10:22 +0000 (+0900) Subject: [NUI] Change Feedback default as false in Control X-Git-Tag: accepted/tizen/unified/20210219.040944~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a3a3481c0cc00e98bb57944dac8e2706383142c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Change Feedback default as false in Control - 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 --- diff --git a/src/Tizen.NUI.Components/Controls/Button.Internal.cs b/src/Tizen.NUI.Components/Controls/Button.Internal.cs index 82ff7a5..996f777 100755 --- a/src/Tizen.NUI.Components/Controls/Button.Internal.cs +++ b/src/Tizen.NUI.Components/Controls/Button.Internal.cs @@ -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() diff --git a/src/Tizen.NUI.Components/Controls/Control.cs b/src/Tizen.NUI.Components/Controls/Control.cs index 833ca7f..a9a7464 100755 --- a/src/Tizen.NUI.Components/Controls/Control.cs +++ b/src/Tizen.NUI.Components/Controls/Control.cs @@ -303,8 +303,6 @@ namespace Tizen.NUI.Components StateFocusableOnTouchMode = false; EnableControlState = true; - - Feedback = true; } } } diff --git a/src/Tizen.NUI.Components/Controls/Switch.cs b/src/Tizen.NUI.Components/Controls/Switch.cs index 90945d4..4b04a91 100755 --- a/src/Tizen.NUI.Components/Controls/Switch.cs +++ b/src/Tizen.NUI.Components/Controls/Switch.cs @@ -315,6 +315,9 @@ namespace Tizen.NUI.Components private void Initialize() { IsSelectable = true; + #if PROFILE_MOBILE + Feedback = true; + #endif } private void OnSelect()