Move state calculation to Button class
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Mon, 22 Mar 2021 16:34:24 +0000 (17:34 +0100)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 30 Mar 2021 06:51:02 +0000 (15:51 +0900)
src/Tizen.NUI.Components/Controls/Button.cs
src/Tizen.NUI.Components/Controls/SelectButton.cs

index 511b8266f483900be56f21332e225912aca7ce7a..a10fd20511d92a0901d9358ccf732895efff9017 100755 (executable)
@@ -184,6 +184,7 @@ namespace Tizen.NUI.Components
         protected override AccessibilityStates AccessibilityCalculateStates()
         {
             var states = base.AccessibilityCalculateStates();
+            states.Set(AccessibilityState.Checked, this.IsSelected);
             states.Set(AccessibilityState.Enabled, this.IsEnabled);
             return states;
         }
index f9204f3f90aea5d4912fbcff91d3b65cd2baa6de..e0241ee82fbaab157bce796a35236b640466f83a 100755 (executable)
@@ -76,17 +76,6 @@ namespace Tizen.NUI.Components
         {
         }
 
-        /// <summary>
-        /// Informs AT-SPI bridge about the set of AT-SPI states associated with this object.
-        /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        protected override AccessibilityStates AccessibilityCalculateStates()
-        {
-            var states = base.AccessibilityCalculateStates();
-            states.Set(AccessibilityState.Checked, this.IsSelected);
-            return states;
-        }
-
         /// <summary>
         /// An event for the item selected signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
         /// </summary>