[Tizen](Vector) Add task even when StopAnimation is called 39/221339/1 accepted/tizen/5.5/unified/20200102.110131 submit/tizen_5.5/20200102.004531
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 31 Dec 2019 08:17:40 +0000 (17:17 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 31 Dec 2019 08:17:40 +0000 (17:17 +0900)
Change-Id: Ifc4e970a1ea64e33f8d81fe38871cd6ab7af3121

dali-toolkit/internal/visuals/animated-vector-image/vector-animation-task.cpp

index f1feb6f..0455db3 100644 (file)
@@ -208,11 +208,13 @@ void VectorAnimationTask::PlayAnimation()
 
 void VectorAnimationTask::StopAnimation()
 {
-  if( mPlayState != PlayState::STOPPED && mPlayState != PlayState::STOPPING )
+  if( mPlayState != PlayState::STOPPING )
   {
     mNeedAnimationFinishedTrigger = false;
     mPlayState = PlayState::STOPPING;
 
+    mVectorAnimationThread.AddTask( this );
+
     DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "VectorAnimationTask::StopAnimation: Stop [%p]\n", this );
   }
 }