commit | 989f4cb6da0c1d20f74a278878bc173c690d0848 | [log] [tgz] |
---|---|---|
author | Jerome Gaillard <jgaillard@google.com> | Thu Nov 24 21:51:22 2016 +0000 |
committer | Jerome Gaillard <jgaillard@google.com> | Mon Nov 28 10:40:33 2016 +0000 |
tree | ca1ad345e537ca6ba7fe86254e35b460edd34c0f | |
parent | 705dfac58d3a477d6d1877d04ba154c9e71b1d40 [diff] [blame] |
Fix layoutlib to reflect recent changes in platform code Test: Layoutlib tests Change-Id: I81964233a9e580ccee9c9e9b0cf3525babf30bd4
diff --git a/bridge/src/android/graphics/drawable/AnimatedVectorDrawable_VectorDrawableAnimatorRT_Delegate.java b/bridge/src/android/graphics/drawable/AnimatedVectorDrawable_VectorDrawableAnimatorRT_Delegate.java index 3d78931..fc848d9 100644 --- a/bridge/src/android/graphics/drawable/AnimatedVectorDrawable_VectorDrawableAnimatorRT_Delegate.java +++ b/bridge/src/android/graphics/drawable/AnimatedVectorDrawable_VectorDrawableAnimatorRT_Delegate.java
@@ -18,6 +18,7 @@ import com.android.tools.layoutlib.annotations.LayoutlibDelegate; +import android.graphics.Canvas; import android.graphics.drawable.AnimatedVectorDrawable.VectorDrawableAnimatorRT; public class AnimatedVectorDrawable_VectorDrawableAnimatorRT_Delegate { @@ -25,4 +26,9 @@ /*package*/ static boolean useLastSeenTarget(VectorDrawableAnimatorRT thisDrawableAnimator) { return true; } + + @LayoutlibDelegate + /*package*/ static void onDraw(VectorDrawableAnimatorRT thisDrawableAnimator, Canvas canvas) { + // Do not attempt to record as we are not using a DisplayListCanvas + } }