package l5;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class g extends com.bumptech.glide.request.target.c {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Handler f30137c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f30138d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final long f30139e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public Bitmap f30140f;

    public g(Handler handler, int i10, long j10) {
        super(Integer.MIN_VALUE, Integer.MIN_VALUE);
        this.f30137c = handler;
        this.f30138d = i10;
        this.f30139e = j10;
    }

    @Override // com.bumptech.glide.request.target.c, com.bumptech.glide.request.target.j
    public void onLoadCleared(@Nullable Drawable drawable) {
        this.f30140f = null;
    }

    @Override // com.bumptech.glide.request.target.c, com.bumptech.glide.request.target.j
    public void onResourceReady(@NonNull Bitmap bitmap, @Nullable r5.c cVar) {
        this.f30140f = bitmap;
        Handler handler = this.f30137c;
        handler.sendMessageAtTime(handler.obtainMessage(1, this), this.f30139e);
    }
}
