package ඓ.ῲ.K.ᕣ.ᕣ.ඓ;

import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import ඓ.ῲ.K.ᕣ.ᕣ.ⁱ.C0901;
import ඓ.ῲ.K.ᕣ.ᨨ.AbstractC0937;
import ඓ.ῲ.K.ᕣ.ᨨ.AbstractC1027;
import ῲ.ᨨ.㳳.C1841;

/* renamed from: ඓ.ῲ.K.ᕣ.ᕣ.ඓ.ῲ  reason: contains not printable characters */
/* compiled from: DrawableResource */
public abstract class AbstractC0897<T extends Drawable> implements AbstractC1027<T>, AbstractC0937 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final T f4151;

    public AbstractC0897(T t) {
        C1841.m4783(t, "Argument must not be null");
        this.f4151 = t;
    }

    @Override // ඓ.ῲ.K.ᕣ.ᨨ.AbstractC1027
    public Object get() {
        Drawable.ConstantState constantState = this.f4151.getConstantState();
        if (constantState == null) {
            return this.f4151;
        }
        return constantState.newDrawable();
    }

    @Override // ඓ.ῲ.K.ᕣ.ᨨ.AbstractC0937
    public void initialize() {
        T t = this.f4151;
        if (t instanceof BitmapDrawable) {
            ((BitmapDrawable) t).getBitmap().prepareToDraw();
        } else if (t instanceof C0901) {
            ((C0901) t).m2587().prepareToDraw();
        }
    }
}
