From 6f4862f645f5dffebcbfce9a34aeeb39db6852ea Mon Sep 17 00:00:00 2001 From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Tue, 17 Sep 2019 12:59:22 +0900 Subject: [PATCH] [NUI] Temporal fix of not animating dali-lottie when the URL is only changed (#1015) --- .../src/public/BaseComponents/AnimatedVectorImageView.cs | 3 +++ .../src/public/BaseComponents/VectorAnimationView.cs | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.34.1