Merge remote-tracking branch 'origin/API8' into tizen_6.0
authoradmin <tizenapi@samsung.com>
Wed, 2 Dec 2020 15:52:33 +0000 (15:52 +0000)
committeradmin <tizenapi@samsung.com>
Wed, 2 Dec 2020 15:52:33 +0000 (15:52 +0000)
src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs

index a0efb42..6f2c1f3 100755 (executable)
@@ -232,8 +232,21 @@ namespace Tizen.NUI.BaseComponents
         [EditorBrowsable(EditorBrowsableState.Never)]
         public AnimationStates AnimationState
         {
-            private set;
-            get;
+            private set
+            {
+                CurrentAnimationState = value;
+            }
+            get
+            {
+                if (CurrentAnimationState == AnimationStates.Playing)
+                {
+                    if (PlayState == PlayStateType.Stopped)
+                    {
+                        CurrentAnimationState = AnimationStates.Stopped;
+                    }
+                }
+                return CurrentAnimationState;
+            }
         }
         #endregion Property
 
@@ -547,6 +560,7 @@ namespace Tizen.NUI.BaseComponents
         }
 
         private string tag = "NUITEST";
+        private AnimationStates CurrentAnimationState = AnimationStates.Stopped;
         #endregion Private
     }
 }
\ No newline at end of file