package ඓ.ᕣ.K.K;

import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;

/* renamed from: ඓ.ᕣ.K.K.ʬ  reason: contains not printable characters */
/* compiled from: ZLoadingDrawable */
public class C0738 extends Drawable implements Animatable {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final AbstractC0747 f3757;

    /* renamed from: ඓ.ᕣ.K.K.ʬ$K  reason: contains not printable characters */
    /* compiled from: ZLoadingDrawable */
    public class C0739 implements Drawable.Callback {
        public C0739() {
        }

        public void invalidateDrawable(Drawable drawable) {
            C0738.this.invalidateSelf();
        }

        public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) {
            C0738.this.scheduleSelf(runnable, j);
        }

        public void unscheduleDrawable(Drawable drawable, Runnable runnable) {
            C0738.this.unscheduleSelf(runnable);
        }
    }

    public C0738(AbstractC0747 k) {
        this.f3757 = k;
        this.f3757.f3805 = new C0739();
    }

    public void draw(Canvas canvas) {
        if (!getBounds().isEmpty()) {
            this.f3757.m2207(canvas);
        }
    }

    public int getIntrinsicHeight() {
        return (int) this.f3757.f3800;
    }

    public int getIntrinsicWidth() {
        return (int) this.f3757.f3802;
    }

    public int getOpacity() {
        return -3;
    }

    public boolean isRunning() {
        return this.f3757.f3801.isRunning();
    }

    public void setAlpha(int i) {
        this.f3757.m2203(i);
    }

    public void setColorFilter(ColorFilter colorFilter) {
        this.f3757.m2208(colorFilter);
    }

    public void start() {
        AbstractC0747 k = this.f3757;
        if (!k.f3801.isStarted()) {
            k.f3801.addUpdateListener(k);
            k.f3801.addListener(k);
            k.f3801.setRepeatCount(-1);
            k.f3801.setDuration(k.m2201());
            k.m2204(k.f3801);
            k.f3801.start();
        }
    }

    public void stop() {
        AbstractC0747 k = this.f3757;
        k.f3801.removeAllUpdateListeners();
        k.f3801.removeAllListeners();
        k.f3801.setRepeatCount(0);
        k.f3801.setDuration(0L);
        k.m2209();
        k.f3801.end();
    }
}
