package o;

import android.graphics.drawable.Drawable;
import android.os.Handler;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class D6 implements Drawable.Callback {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;

    public /* synthetic */ D6(int i, Object obj) {
        this.l = i;
        this.m = obj;
    }

    @Override // android.graphics.drawable.Drawable.Callback
    public final void invalidateDrawable(Drawable drawable) {
        int i = this.l;
        Object obj = this.m;
        switch (i) {
            case 0:
                ((G6) obj).invalidateSelf();
                break;
            default:
                C2474st c2474st = (C2474st) obj;
                MV mv = c2474st.r;
                mv.setValue(Integer.valueOf(((Number) mv.getValue()).intValue() + 1));
                Drawable drawable2 = c2474st.q;
                Object obj2 = AbstractC2569tt.a;
                c2474st.s.setValue(new T80((drawable2.getIntrinsicWidth() < 0 || drawable2.getIntrinsicHeight() < 0) ? 9205357640488583168L : C1884mi0.e(drawable2.getIntrinsicWidth(), drawable2.getIntrinsicHeight())));
                break;
        }
    }

    /* JADX WARN: Type inference failed for: r1v4, types: [java.lang.Object, o.zK] */
    @Override // android.graphics.drawable.Drawable.Callback
    public final void scheduleDrawable(Drawable drawable, Runnable runnable, long j) {
        switch (this.l) {
            case 0:
                ((G6) this.m).scheduleSelf(runnable, j);
                break;
            default:
                ((Handler) AbstractC2569tt.a.getValue()).postAtTime(runnable, j);
                break;
        }
    }

    /* JADX WARN: Type inference failed for: r1v4, types: [java.lang.Object, o.zK] */
    @Override // android.graphics.drawable.Drawable.Callback
    public final void unscheduleDrawable(Drawable drawable, Runnable runnable) {
        switch (this.l) {
            case 0:
                ((G6) this.m).unscheduleSelf(runnable);
                break;
            default:
                ((Handler) AbstractC2569tt.a.getValue()).removeCallbacks(runnable);
                break;
        }
    }
}
