summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tenghui Zhu <ztenghui@google.com> 2016-03-11 17:35:58 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-03-11 17:36:00 +0000
commit335875bb480d340e5dfed19bd4512df0c177674d (patch)
treeafe9529094c5f0590baedffaa275f9cd6bc839dd
parente11936725e6227c98f356572cbfd512f16b98c3b (diff)
parent1af03b1d5319921c9f898103353f2646975ab0af (diff)
Merge "Add the missing overriden API" into nyc-dev
-rw-r--r--graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java b/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
index 219bca82b702..d354c1f761c1 100644
--- a/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
+++ b/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
@@ -260,6 +260,13 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
return mAnimatedVectorState.mVectorDrawable.setLayoutDirection(layoutDirection);
}
+ /**
+ * AnimatedVectorDrawable is running on render thread now. Therefore, if the root alpha is being
+ * animated, then the root alpha value we get from this call could be out of sync with alpha
+ * value used in the render thread. Otherwise, the root alpha should be always the same value.
+ *
+ * @return the containing vector drawable's root alpha value.
+ */
@Override
public int getAlpha() {
return mAnimatedVectorState.mVectorDrawable.getAlpha();
@@ -276,6 +283,11 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
}
@Override
+ public ColorFilter getColorFilter() {
+ return mAnimatedVectorState.mVectorDrawable.getColorFilter();
+ }
+
+ @Override
public void setTintList(ColorStateList tint) {
mAnimatedVectorState.mVectorDrawable.setTintList(tint);
}