result r = E_SUCCESS;
bool isInMainThread;
- isInMainThread = IsInMainThread(animation);
+ isInMainThread = IsInMainThread(target, type, animation);
if (__pCurrentTransaction->IsCommitted()) // default transaction
{
}
bool
-_AnimationManager::IsInMainThread(VisualElementAnimation& animation)
+_AnimationManager::IsInMainThread(Tizen::Base::Object& target, _AnimationTargetType type, VisualElementAnimation& animation)
{
VisualElementValueAnimation* pValueAnimation;
}
}
+ if (type == _ANIMATION_TARGET_VE)
+ {
+ VisualElement& targetVE = static_cast< VisualElement& >(target);
+ _VisualElementImpl* pVeImpl = _VisualElementImpl::GetInstance(targetVE);
+
+ if (pVeImpl->GetRoot() == null)
+ {
+ return true;
+ }
+ // TODO: add condition for EFL
+ }
+
return false;
}
const VisualElementAnimation* GetAnimation(Tizen::Base::Object& target, const Tizen::Base::String& keyName) const;
- bool IsInMainThread(VisualElementAnimation& animation);
+ bool IsInMainThread(Tizen::Base::Object& target, _AnimationTargetType type, VisualElementAnimation& animation);
private:
static _AnimationManager* __pInstance;