jimu-decompiled/sources/com/squareup/picasso/Action.java
2025-05-13 19:24:51 +02:00

98 lines
1.9 KiB
Java

package com.squareup.picasso;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import com.squareup.picasso.Picasso;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
/* loaded from: classes.dex */
abstract class Action<T> {
final Picasso a;
final Request b;
final WeakReference<T> c;
final boolean d;
final int e;
final int f;
final int g;
final Drawable h;
final String i;
final Object j;
boolean k;
boolean l;
static class RequestWeakReference<M> extends WeakReference<M> {
final Action a;
public RequestWeakReference(Action action, M m, ReferenceQueue<? super M> referenceQueue) {
super(m, referenceQueue);
this.a = action;
}
}
Action(Picasso picasso, T t, Request request, int i, int i2, int i3, Drawable drawable, String str, Object obj, boolean z) {
this.a = picasso;
this.b = request;
this.c = t == null ? null : new RequestWeakReference(this, t, picasso.k);
this.e = i;
this.f = i2;
this.d = z;
this.g = i3;
this.h = drawable;
this.i = str;
this.j = obj == null ? this : obj;
}
void a() {
this.l = true;
}
abstract void a(Bitmap bitmap, Picasso.LoadedFrom loadedFrom);
abstract void b();
String c() {
return this.i;
}
int d() {
return this.e;
}
int e() {
return this.f;
}
Picasso f() {
return this.a;
}
Picasso.Priority g() {
return this.b.r;
}
Request h() {
return this.b;
}
Object i() {
return this.j;
}
T j() {
WeakReference<T> weakReference = this.c;
if (weakReference == null) {
return null;
}
return weakReference.get();
}
boolean k() {
return this.l;
}
boolean l() {
return this.k;
}
}