55 lines
2.0 KiB
Java
55 lines
2.0 KiB
Java
package o;
|
|
|
|
import android.net.Uri;
|
|
import android.widget.ImageView;
|
|
import com.squareup.picasso.Picasso;
|
|
import com.squareup.picasso.RequestCreator;
|
|
import java.io.File;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class Ppq implements uGc {
|
|
private final InterfaceC13024fOe a;
|
|
private final Picasso c;
|
|
|
|
public Ppq(Picasso picasso, InterfaceC13024fOe interfaceC13024fOe) {
|
|
this.c = picasso;
|
|
this.a = interfaceC13024fOe;
|
|
}
|
|
|
|
@Override // o.uGc
|
|
public final void aAk_(Object obj, ImageView imageView) {
|
|
C13020fOa c13020fOa;
|
|
C13020fOa c13020fOa2;
|
|
if (!(obj instanceof Uri) && obj != null) {
|
|
if (obj instanceof String) {
|
|
c13020fOa2 = this.c.e((String) obj);
|
|
} else if (obj instanceof File) {
|
|
Picasso picasso = this.c;
|
|
File file = (File) obj;
|
|
if (file == null) {
|
|
c13020fOa2 = new C13020fOa(picasso, null, 0);
|
|
} else {
|
|
c13020fOa = new C13020fOa(picasso, Uri.fromFile(file), 0);
|
|
}
|
|
} else if (obj instanceof Integer) {
|
|
Picasso picasso2 = this.c;
|
|
int intValue = ((Integer) obj).intValue();
|
|
if (intValue == 0) {
|
|
throw new IllegalArgumentException("Resource ID must not be zero.");
|
|
}
|
|
c13020fOa2 = new C13020fOa(picasso2, null, intValue);
|
|
} else {
|
|
throw new IllegalArgumentException("Unsupported model ".concat(String.valueOf(obj)));
|
|
}
|
|
RequestCreator skipMemoryCache = c13020fOa2.skipMemoryCache();
|
|
skipMemoryCache.a.c(this.a);
|
|
skipMemoryCache.aBu_(imageView, null);
|
|
}
|
|
c13020fOa = new C13020fOa(this.c, (Uri) obj, 0);
|
|
c13020fOa2 = c13020fOa;
|
|
RequestCreator skipMemoryCache2 = c13020fOa2.skipMemoryCache();
|
|
skipMemoryCache2.a.c(this.a);
|
|
skipMemoryCache2.aBu_(imageView, null);
|
|
}
|
|
}
|