[NUI] Change OnAccessibilityActivated() access modifier
authordongsug.song <dongsug.song@samsung.com>
Thu, 13 May 2021 22:41:58 +0000 (07:41 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 14 May 2021 01:56:48 +0000 (10:56 +0900)
 - Change OnAccessibilityActivated() access modifier to use in FH.NUI which includes NUI package
 - Split NotifyPropertyChangedAndRequestLayout() into equivalent two methods, because when using PropertySet event, the changed PropertyName comes as NotifyPropertyChangedAndRequestLayout

src/Tizen.NUI.Components/Controls/Button.Internal.cs
src/Tizen.NUI/src/public/BaseComponents/CustomView.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs

index b67b88a..9b679c2 100755 (executable)
@@ -454,7 +454,14 @@ namespace Tizen.NUI.Components
             LayoutChild();
         }
 
-        internal override bool OnAccessibilityActivated()
+        /// <summary>
+        /// This method is called when the control accessibility is activated.<br />
+        /// Derived classes should override this to perform custom accessibility activation.<br />
+        /// </summary>
+        /// <remarks>Hidden-API</remarks>
+        /// <returns>True if this control can perform accessibility activation.</returns>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        protected override bool OnAccessibilityActivated()
         {
             if (!IsEnabled)
             {
index 994a668..193566b 100755 (executable)
@@ -485,8 +485,10 @@ namespace Tizen.NUI.BaseComponents
         /// This method is called when the control accessibility is activated.<br />
         /// Derived classes should override this to perform custom accessibility activation.<br />
         /// </summary>
+        /// <remarks>Hidden-API</remarks>
         /// <returns>True if this control can perform accessibility activation.</returns>
-        internal virtual bool OnAccessibilityActivated()
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        protected virtual bool OnAccessibilityActivated()
         {
             return false;
         }
index 54dbbeb..ea1d437 100755 (executable)
@@ -241,7 +241,8 @@ namespace Tizen.NUI.BaseComponents
             {
                 SetValue(TextProperty, value);
                 selectorData?.Text.UpdateIfNeeds(this, value);
-                NotifyPropertyChangedAndRequestLayout();
+                Layout?.RequestLayout();
+                NotifyPropertyChanged();
             }
         }