Merge "Ensure all Java-side usages of config flags are using Java flags" into nyc-dev

This commit is contained in:
Alan Viverette
2016-03-14 15:01:50 +00:00
committed by Android (Google) Code Review
28 changed files with 219 additions and 121 deletions

View File

@@ -27,6 +27,7 @@ import android.annotation.NonNull;
import android.annotation.Nullable;
import android.app.ActivityThread;
import android.app.Application;
import android.content.pm.ActivityInfo.Config;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.Resources.Theme;
@@ -230,7 +231,7 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
}
@Override
public int getChangingConfigurations() {
public @Config int getChangingConfigurations() {
return super.getChangingConfigurations() | mAnimatedVectorState.getChangingConfigurations();
}
@@ -449,7 +450,7 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
}
private static class AnimatedVectorDrawableState extends ConstantState {
int mChangingConfigurations;
@Config int mChangingConfigurations;
VectorDrawable mVectorDrawable;
/** Animators that require a theme before inflation. */
@@ -513,7 +514,7 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
}
@Override
public int getChangingConfigurations() {
public @Config int getChangingConfigurations() {
return mChangingConfigurations;
}