jimu-decompiled/sources/com/bumptech/glide/request/target/SimpleTarget.java
2025-05-13 19:24:51 +02:00

32 lines
1000 B
Java

package com.bumptech.glide.request.target;
import com.bumptech.glide.util.Util;
/* loaded from: classes.dex */
public abstract class SimpleTarget<Z> extends BaseTarget<Z> {
private final int b;
private final int c;
public SimpleTarget() {
this(Integer.MIN_VALUE, Integer.MIN_VALUE);
}
@Override // com.bumptech.glide.request.target.Target
public void a(SizeReadyCallback sizeReadyCallback) {
}
@Override // com.bumptech.glide.request.target.Target
public final void b(SizeReadyCallback sizeReadyCallback) {
if (Util.b(this.b, this.c)) {
sizeReadyCallback.a(this.b, this.c);
return;
}
throw new IllegalArgumentException("Width and height must both be > 0 or Target#SIZE_ORIGINAL, but given width: " + this.b + " and height: " + this.c + ", either provide dimensions in the constructor or call override()");
}
public SimpleTarget(int i, int i2) {
this.b = i;
this.c = i2;
}
}