[NUI] Temporal fix of not animating dali-lottie when the URL is only changed (#1015)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 17 Sep 2019 03:59:22 +0000 (12:59 +0900)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 03:59:22 +0000 (12:59 +0900)
src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs
src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs

index fa33bfe..543275f 100755 (executable)
@@ -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;
                         }
                     }
index c6e189c..852f357 100755 (executable)
@@ -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;