Merge "Quick fix: Make incorrect animator usage a warning" into oc-mr1-dev am: 2d362d7159

am: a54a5f6512

Change-Id: I3e78ede76656eff16fce54808a052ab79105ae79
This commit is contained in:
John Reck
2017-09-26 16:52:15 +00:00
committed by android-build-merger

View File

@@ -71,9 +71,11 @@ void AnimatorManager::setAnimationHandle(AnimationHandle* handle) {
void AnimatorManager::pushStaging() {
if (mNewAnimators.size()) {
LOG_ALWAYS_FATAL_IF(!mAnimationHandle,
"Trying to start new animators on %p (%s) without an animation handle!",
&mParent, mParent.getName());
if (CC_UNLIKELY(!mAnimationHandle)) {
ALOGW("Trying to start new animators on %p (%s) without an animation handle!",
&mParent, mParent.getName());
return;
}
// Only add new animators that are not already in the mAnimators list
for (auto& anim : mNewAnimators) {