Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8760544 authored by Tor Norbye's avatar Tor Norbye
Browse files

177611: IDE is not recognizing android.R.anim. interpolators

Change-Id: I4fbbec56c4529dc311a9ffa846b11d6e17c9007f
parent 653da431
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.view.animation;

import android.annotation.AnimRes;
import android.annotation.ColorInt;
import android.annotation.InterpolatorRes;
import android.content.Context;
@@ -389,7 +390,7 @@ public abstract class Animation implements Cloneable {
     * @param resID The resource identifier of the interpolator to load
     * @attr ref android.R.styleable#Animation_interpolator
     */
    public void setInterpolator(Context context, @InterpolatorRes int resID) {
    public void setInterpolator(Context context, @AnimRes @InterpolatorRes int resID) {
        setInterpolator(AnimationUtils.loadInterpolator(context, resID));
    }

+1 −1
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ public class AnimationUtils {
     * @return The animation object reference by the specified id
     * @throws NotFoundException
     */
    public static Interpolator loadInterpolator(Context context, @InterpolatorRes int id)
    public static Interpolator loadInterpolator(Context context, @AnimRes @InterpolatorRes int id)
            throws NotFoundException {
        XmlResourceParser parser = null;
        try {