Merge "Ensure all Java-side usages of config flags are using Java flags" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
781fbf28c7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user