From de8a6200f4c5f1044cdf0d2d2104ca4ed4c7f5d0 Mon Sep 17 00:00:00 2001 From: Dongsug Song Date: Wed, 2 Dec 2020 11:46:38 +0900 Subject: [PATCH] [NUI] Fix wrong AnimationState after VectorAnimatedImageView playing stoped --- .../public/BaseComponents/AnimatedVectorImageView.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs index a0efb42..6f2c1f3 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs @@ -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 -- 2.7.4