Don't private classes or methods of support libraries

This commit is contained in:
seven332 committed 2018-12-18 16:50:15 +08:00
1 parent 1285abdf71
commit a11fb869e2
21 files changed
+222 -48

No files matched your search

@@ -24,14 +24,11 @@ import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.graphics.drawable.VectorDrawableCompat;
import android.support.v7.widget.AppCompatDrawableManager;
public final class DrawableManager {
private static final AppCompatDrawableManager sManager = AppCompatDrawableManager.get();
public static Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) {
return sManager.getDrawable(context, resId);
public static Drawable getVectorDrawable(@NonNull Context context, @DrawableRes int resId) {
return getVectorDrawable(context.getResources(), resId, context.getTheme());
}
public static Drawable getVectorDrawable(@NonNull Resources res,