package p138.p145.p146.p170.p171;

import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
import android.widget.ImageView;
import p138.p145.p146.p170.p172.InterfaceC3223;

/* JADX WARN: Unexpected interfaces in signature: [java.lang.Object] */
/* JADX INFO: renamed from: ދ.ؠ.֏.ސ.ޅ.ރ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC3214<Z> extends AbstractC3218<ImageView, Z> {

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public Animatable f9553;

    public AbstractC3214(ImageView imageView) {
        super(imageView);
    }

    @Override // p138.p145.p146.p167.InterfaceC3172
    /* JADX INFO: renamed from: ֏ */
    public void mo4914() {
        Animatable animatable = this.f9553;
        if (animatable != null) {
            animatable.stop();
        }
    }

    @Override // p138.p145.p146.p170.p171.InterfaceC3217
    /* JADX INFO: renamed from: ֏ */
    public void mo4923(Drawable drawable) {
        m5305((Object) null);
        ((ImageView) this.f9555).setImageDrawable(drawable);
    }

    /* JADX INFO: renamed from: ֏ */
    public abstract void mo5294(Z z);

    @Override // p138.p145.p146.p170.p171.InterfaceC3217
    /* JADX INFO: renamed from: ֏ */
    public void mo4924(Z z, InterfaceC3223<? super Z> interfaceC3223) {
        m5305(z);
    }

    @Override // p138.p145.p146.p170.p171.InterfaceC3217
    /* JADX INFO: renamed from: ؠ */
    public void mo5298(Drawable drawable) {
        m5305((Object) null);
        ((ImageView) this.f9555).setImageDrawable(drawable);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m5305(Z z) {
        mo5294(z);
        if (!(z instanceof Animatable)) {
            this.f9553 = null;
            return;
        }
        Animatable animatable = (Animatable) z;
        this.f9553 = animatable;
        animatable.start();
    }

    @Override // p138.p145.p146.p167.InterfaceC3172
    /* JADX INFO: renamed from: ހ */
    public void mo4918() {
        Animatable animatable = this.f9553;
        if (animatable != null) {
            animatable.start();
        }
    }

    @Override // p138.p145.p146.p170.p171.InterfaceC3217
    /* JADX INFO: renamed from: ހ */
    public void mo5221(Drawable drawable) {
        this.f9556.m5307();
        Animatable animatable = this.f9553;
        if (animatable != null) {
            animatable.stop();
        }
        m5305((Object) null);
        ((ImageView) this.f9555).setImageDrawable(drawable);
    }
}
