package com.airbnb.lottie.animation.content; import com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation; import com.airbnb.lottie.model.content.ShapeTrimPath; import com.airbnb.lottie.model.layer.BaseLayer; import java.util.ArrayList; import java.util.List; /* loaded from: classes.dex */ public class TrimPathContent implements Content, BaseKeyframeAnimation.AnimationListener { private final BaseKeyframeAnimation endAnimation; private final boolean hidden; private final List listeners = new ArrayList(); private final String name; private final BaseKeyframeAnimation offsetAnimation; private final BaseKeyframeAnimation startAnimation; private final ShapeTrimPath.Type type; @Override // com.airbnb.lottie.animation.content.Content public void setContents(List list, List list2) { } public TrimPathContent(BaseLayer baseLayer, ShapeTrimPath shapeTrimPath) { this.name = shapeTrimPath.getName(); this.hidden = shapeTrimPath.isHidden(); this.type = shapeTrimPath.getType(); BaseKeyframeAnimation createAnimation = shapeTrimPath.getStart().createAnimation(); this.startAnimation = createAnimation; BaseKeyframeAnimation createAnimation2 = shapeTrimPath.getEnd().createAnimation(); this.endAnimation = createAnimation2; BaseKeyframeAnimation createAnimation3 = shapeTrimPath.getOffset().createAnimation(); this.offsetAnimation = createAnimation3; baseLayer.addAnimation(createAnimation); baseLayer.addAnimation(createAnimation2); baseLayer.addAnimation(createAnimation3); createAnimation.addUpdateListener(this); createAnimation2.addUpdateListener(this); createAnimation3.addUpdateListener(this); } @Override // com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.AnimationListener public void onValueChanged() { for (int i = 0; i < this.listeners.size(); i++) { this.listeners.get(i).onValueChanged(); } } /* JADX INFO: Access modifiers changed from: package-private */ public void addListener(BaseKeyframeAnimation.AnimationListener animationListener) { this.listeners.add(animationListener); } public boolean isHidden() { return this.hidden; } /* JADX INFO: Access modifiers changed from: package-private */ public ShapeTrimPath.Type getType() { return this.type; } public BaseKeyframeAnimation getStart() { return this.startAnimation; } public BaseKeyframeAnimation getOffset() { return this.offsetAnimation; } @Override // com.airbnb.lottie.animation.content.Content public String getName() { return this.name; } public BaseKeyframeAnimation getEnd() { return this.endAnimation; } }