package q6; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import b7.j; import h6.h; /* loaded from: classes2.dex */ public abstract class b implements h, h6.f { /* renamed from: a, reason: collision with root package name */ protected final Drawable f13490a; public b(Drawable drawable) { this.f13490a = (Drawable) j.d(drawable); } @Override // h6.h /* renamed from: c, reason: merged with bridge method [inline-methods] */ public final Drawable get() { Drawable.ConstantState constantState = this.f13490a.getConstantState(); return constantState == null ? this.f13490a : constantState.newDrawable(); } @Override // h6.f public void initialize() { Bitmap j10; Drawable drawable = this.f13490a; if (drawable instanceof BitmapDrawable) { j10 = ((BitmapDrawable) drawable).getBitmap(); } else if (!(drawable instanceof s6.c)) { return; } else { j10 = ((s6.c) drawable).j(); } j10.prepareToDraw(); } }