Remove codes for pre-21
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user