Remove codes for pre-21

This commit is contained in:
NekoInverter committed 2020-03-23 22:58:37 +08:00
1 parent 910c05b5a6
commit d75e2e78bf
30 files changed
+84 -805

No files matched your search

@@ -24,7 +24,6 @@ import android.os.Build;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.vectordrawable.graphics.drawable.VectorDrawableCompat;
public final class DrawableManager {
@@ -34,10 +33,6 @@ public final class DrawableManager {
public static Drawable getVectorDrawable(@NonNull Resources res,
@DrawableRes int resId, @Nullable Resources.Theme theme) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return res.getDrawable(resId, theme);
} else {
return VectorDrawableCompat.create(res, resId, theme);
}
return res.getDrawable(resId, theme);
}
}