39 lines
1.2 KiB
Java
39 lines
1.2 KiB
Java
package com.squareup.picasso;
|
|
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.drawable.Drawable;
|
|
import com.squareup.picasso.Picasso;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class TargetAction extends Action<Target> {
|
|
TargetAction(Picasso picasso, Target target, Request request, int i, int i2, Drawable drawable, String str, Object obj, int i3) {
|
|
super(picasso, target, request, i, i2, i3, drawable, str, obj, false);
|
|
}
|
|
|
|
@Override // com.squareup.picasso.Action
|
|
void a(Bitmap bitmap, Picasso.LoadedFrom loadedFrom) {
|
|
if (bitmap == null) {
|
|
throw new AssertionError(String.format("Attempted to complete action with no result!\n%s", this));
|
|
}
|
|
Target j = j();
|
|
if (j != null) {
|
|
j.a(bitmap, loadedFrom);
|
|
if (bitmap.isRecycled()) {
|
|
throw new IllegalStateException("Target callback must not recycle bitmap!");
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.squareup.picasso.Action
|
|
void b() {
|
|
Target j = j();
|
|
if (j != null) {
|
|
if (this.g != 0) {
|
|
j.a(this.a.e.getResources().getDrawable(this.g));
|
|
} else {
|
|
j.a(this.h);
|
|
}
|
|
}
|
|
}
|
|
}
|