package kf1; import android.content.Context; import com.liulishuo.okdownload.core.cause.EndCause; import com.liulishuo.okdownload.core.cause.ResumeFailedCause; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.shizhuang.duapp.libs.yeezy.listener.YeezyListener; import com.shizhuang.duapp.libs.yeezy.model.YeezyEntry; import fd.n; import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function1; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import s9.c; /* compiled from: EffectPrepareTask.kt */ public final class b extends YeezyListener { public static ChangeQuickRedirect changeQuickRedirect; /* renamed from: a reason: collision with root package name */ public final /* synthetic */ d f34668a; public final /* synthetic */ Context b; /* compiled from: PumpExtension.kt */ public static final class a extends vl.a { public static ChangeQuickRedirect changeQuickRedirect; /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Function1 f34669a; public a(Function1 function1) { this.f34669a = function1; } @Override // com.liulishuo.okdownload.core.listener.assist.Listener1Assist.Listener1Callback, vl.a public void connected(@NotNull c cVar, int i, long j, long j12) { Object[] objArr = {cVar, new Integer(i), new Long(j), new Long(j12)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Long.TYPE; if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 335842, new Class[]{c.class, Integer.TYPE, cls, cls}, Void.TYPE).isSupported) { super.connected(cVar, i, j, j12); } } @Override // vl.a public void onTaskEnd(@NotNull c cVar, @NotNull EndCause endCause, @Nullable Exception exc) { if (!PatchProxy.proxy(new Object[]{cVar, endCause, exc}, this, changeQuickRedirect, false, 335843, new Class[]{c.class, EndCause.class, Exception.class}, Void.TYPE).isSupported && endCause == EndCause.COMPLETED) { this.f34669a.invoke(cVar); } } @Override // vl.a public void onTaskStart(@NotNull c cVar) { boolean z = PatchProxy.proxy(new Object[]{cVar}, this, changeQuickRedirect, false, 335840, new Class[]{c.class}, Void.TYPE).isSupported; } @Override // vl.a public void progress(@NotNull c cVar, float f, long j, long j12) { Object[] objArr = {cVar, new Float(f), new Long(j), new Long(j12)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Long.TYPE; if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 335844, new Class[]{c.class, Float.TYPE, cls, cls}, Void.TYPE).isSupported) { super.progress(cVar, f, j, j12); } } @Override // com.liulishuo.okdownload.core.listener.assist.Listener1Assist.Listener1Callback, vl.a public void retry(@NotNull c cVar, @NotNull ResumeFailedCause resumeFailedCause) { if (!PatchProxy.proxy(new Object[]{cVar, resumeFailedCause}, this, changeQuickRedirect, false, 335841, new Class[]{c.class, ResumeFailedCause.class}, Void.TYPE).isSupported) { super.retry(cVar, resumeFailedCause); } } } /* renamed from: kf1.b$b reason: collision with other inner class name */ /* compiled from: EffectPrepareTask.kt */ public static final class C0531b implements Function1<c, Unit> { public static ChangeQuickRedirect changeQuickRedirect; public final /* synthetic */ b b; /* JADX WARN: Incorrect args count in method signature: ()V */ public C0531b(b bVar) { this.b = bVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public Unit invoke(c cVar) { if (!PatchProxy.proxy(new Object[]{cVar}, this, changeQuickRedirect, false, 335845, new Class[]{c.class}, Void.TYPE).isSupported) { tl.a.n((String) n.c("community_module", "ModelResourceV2", String.class, "https://apk.poizon.com/duApp/Android_Config/Assets/resouces/150892cc40cf771a348e45fac826ac07.zip"), new c(this)); } return Unit.INSTANCE; } } public b(d dVar, Context context) { this.f34668a = dVar; this.b = context; } @Override // com.shizhuang.duapp.libs.yeezy.listener.YeezyListener public void onError(@NotNull String str) { boolean z = PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 335839, new Class[]{String.class}, Void.TYPE).isSupported; } @Override // com.shizhuang.duapp.libs.yeezy.listener.YeezyListener public void onSuccess(@NotNull List<String> list, @NotNull List<? extends YeezyEntry> list2) { if (!PatchProxy.proxy(new Object[]{list, list2}, this, changeQuickRedirect, false, 335838, new Class[]{List.class, List.class}, Void.TYPE).isSupported) { tl.a.r((String) n.c("community_module", "community_cv_license_v2", String.class, "https://apk.poizon.com/duApp/Android_Config/license/cv/duapp_20210309_20210608_com.shizhuang.duapp_v1.0.2.licbag"), null, null, new a(new C0531b(this))); } } }