discord-jadx/app/src/main/java/c/f/g/f/a.java

75 lines
2.0 KiB
Java

package c.f.g.f;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import c.f.g.e.s;
import c.f.g.e.t;
import com.facebook.drawee.drawable.ScalingUtils$ScaleType;
import com.facebook.drawee.generic.GenericDraweeHierarchy;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
/* compiled from: GenericDraweeHierarchyBuilder */
public class a {
public static final ScalingUtils$ScaleType a = t.l;
public static final ScalingUtils$ScaleType b = s.l;
/* renamed from: c reason: collision with root package name */
public Resources f410c;
public int d = 300;
public float e = 0.0f;
public Drawable f = null;
public ScalingUtils$ScaleType g;
public Drawable h;
public ScalingUtils$ScaleType i;
public Drawable j;
public ScalingUtils$ScaleType k;
public Drawable l;
public ScalingUtils$ScaleType m;
public ScalingUtils$ScaleType n;
public Drawable o;
public List<Drawable> p;
public Drawable q;
public c r;
static {
ScalingUtils$ScaleType scalingUtils$ScaleType = ScalingUtils$ScaleType.a;
}
public a(Resources resources) {
this.f410c = resources;
ScalingUtils$ScaleType scalingUtils$ScaleType = a;
this.g = scalingUtils$ScaleType;
this.h = null;
this.i = scalingUtils$ScaleType;
this.j = null;
this.k = scalingUtils$ScaleType;
this.l = null;
this.m = scalingUtils$ScaleType;
this.n = b;
this.o = null;
this.p = null;
this.q = null;
this.r = null;
}
public GenericDraweeHierarchy a() {
List<Drawable> list = this.p;
if (list != null) {
for (Drawable drawable : list) {
Objects.requireNonNull(drawable);
}
}
return new GenericDraweeHierarchy(this);
}
public a b(Drawable drawable) {
if (drawable == null) {
this.p = null;
} else {
this.p = Arrays.asList(drawable);
}
return this;
}
}