From 617e809731d775d9e05758689bab024e34c9afbf Mon Sep 17 00:00:00 2001 From: Deepanshu Gupta Date: Tue, 28 Oct 2014 18:47:28 -0700 Subject: [PATCH] Add missing delegate for AnimatorInflater. Change-Id: I96ef2b1085dadfae280df6740aebc10f57e3b949 --- .../src/android/animation/AnimatorInflater_Delegate.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/layoutlib/bridge/src/android/animation/AnimatorInflater_Delegate.java b/tools/layoutlib/bridge/src/android/animation/AnimatorInflater_Delegate.java index 8ced2db1f223..d8a6ffc3f261 100644 --- a/tools/layoutlib/bridge/src/android/animation/AnimatorInflater_Delegate.java +++ b/tools/layoutlib/bridge/src/android/animation/AnimatorInflater_Delegate.java @@ -22,6 +22,7 @@ import android.content.Context; import android.content.res.Resources; import android.content.res.Resources.NotFoundException; import android.content.res.Resources.Theme; +import android.util.AttributeSet; /** * Delegate providing alternate implementation to static methods in {@link AnimatorInflater}. @@ -48,4 +49,11 @@ public class AnimatorInflater_Delegate { // TODO: Remove this override when Path.approximate() is supported. return new FakeAnimator(); } + + @LayoutlibDelegate + /*package*/ static ValueAnimator loadAnimator(Resources res, Theme theme, + AttributeSet attrs, ValueAnimator anim, float pathErrorScale) + throws NotFoundException { + return anim; + } } -- GitLab