package o; import android.graphics.Bitmap; import android.graphics.drawable.Animatable; import android.graphics.drawable.Drawable; import android.widget.ImageView; import com.squareup.picasso.Picasso; /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.fNL, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C12982fNL extends AbstractC13013fNz { private InterfaceC12980fNE m; /* JADX INFO: Access modifiers changed from: package-private */ public C12982fNL(Picasso picasso, ImageView imageView, fNW fnw, int i, int i2, int i3, Drawable drawable, String str, Object obj, InterfaceC12980fNE interfaceC12980fNE, boolean z) { super(picasso, imageView, fnw, i, i2, i3, drawable, str, obj, z); this.m = interfaceC12980fNE; } @Override // o.AbstractC13013fNz public final void aBD_(Bitmap bitmap, Picasso.HBt hBt) { if (bitmap == null) { throw new AssertionError(String.format("Attempted to complete action with no result!\n%s", this)); } ImageView imageView = (ImageView) this.n.get(); if (imageView == null) { return; } C12986fNY.aBq_(imageView, this.h.c, bitmap, hBt, this.i, this.h.j); InterfaceC12980fNE interfaceC12980fNE = this.m; if (interfaceC12980fNE != null) { interfaceC12980fNE.d(); } } @Override // o.AbstractC13013fNz public final void a(Exception exc) { ImageView imageView = (ImageView) this.n.get(); if (imageView == null) { return; } Object drawable = imageView.getDrawable(); if (drawable instanceof Animatable) { ((Animatable) drawable).stop(); } if (this.b != 0) { imageView.setImageResource(this.b); } else if (this.d != null) { imageView.setImageDrawable(this.d); } InterfaceC12980fNE interfaceC12980fNE = this.m; if (interfaceC12980fNE != null) { interfaceC12980fNE.b(exc); } } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC13013fNz public final void d() { super.d(); if (this.m != null) { this.m = null; } } }