[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 fa33bfed6b23dd2529d51f791617b4224225719c..543275f7df6d9b115fbcc6f01ab6c68e07684895 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 c6e189c2e2277622739f8c5be452bf6a1e374b67..852f3575bcecf7ea3d2f44d8ca5698691e88ebd5 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;