Update the VD and AVD's getOpacity()
static VectorDrawable should be returning Transparent while root alpha is 0. AnimatedVectorDrawable running on RenderThread now, and the opacity should be conservatively set as Translucent. http://b/27554766 Change-Id: I9a78696cab94f10ba40a733cc9c00f1c2d7ebb7f
This commit is contained in:
@@ -35,6 +35,7 @@ import android.graphics.Canvas;
|
||||
import android.graphics.ColorFilter;
|
||||
import android.graphics.Insets;
|
||||
import android.graphics.Outline;
|
||||
import android.graphics.PixelFormat;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Build;
|
||||
@@ -306,7 +307,7 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
|
||||
|
||||
@Override
|
||||
public int getOpacity() {
|
||||
return mAnimatedVectorState.mVectorDrawable.getOpacity();
|
||||
return PixelFormat.TRANSLUCENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user