From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Tue, 17 Sep 2019 03:59:22 +0000 (+0900) Subject: [NUI] Temporal fix of not animating dali-lottie when the URL is only changed (#1015) X-Git-Tag: submit/tizen/20190918.005212~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f4862f645f5dffebcbfce9a34aeeb39db6852ea;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Temporal fix of not animating dali-lottie when the URL is only changed (#1015) --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs index fa33bfed6..543275f7d 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs @@ -266,6 +266,7 @@ namespace Tizen.NUI.BaseComponents { tlog.Fatal(tag, $" [ERROR][{GetId()}](AnimatedVectorImageView) different LoopMode! gotten={ret}, loopMode={currentStates.loopMode}"); } + currentStates.loopMode = (LoopingModeType)ret; return (LoopingModeType)ret; } } @@ -308,6 +309,7 @@ namespace Tizen.NUI.BaseComponents { tlog.Fatal(tag, $"[ERROR][{GetId()}](AnimatedVectorImageView) different loop count! gotten={ret}, loopCount={currentStates.loopCount}"); } + currentStates.loopCount = ret; return currentStates.loopCount; } } @@ -351,6 +353,7 @@ namespace Tizen.NUI.BaseComponents { tlog.Fatal(tag, $"[ERROR][{GetId()}](AnimatedVectorImageView) different StopBehavior! gotten={ret}, StopBehavior={currentStates.stopEndAction}"); } + currentStates.stopEndAction = (StopBehaviorType)ret; return (StopBehaviorType)ret; } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs b/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs index c6e189c2e..852f3575b 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs @@ -289,9 +289,13 @@ namespace Tizen.NUI.BaseComponents } else { - //SetPlayRange(0, TotalFrameNumber - 1); + SetPlayRange(0, TotalFrameNumber - 1); } + //temporal fix + Extents tmp = base.Margin; + base.Margin = tmp; + base.Play(); AnimationState = AnimationStates.Playing;