package o; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.os.Handler; import android.os.Looper; import android.view.View; import java.lang.ref.WeakReference; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /* loaded from: classes6.dex */ public final class fZK { public static ExecutorService d = Executors.newCachedThreadPool(); private Bitmap a; private WeakReference b; private Sts c; private fZG e; private Resources h; /* loaded from: classes6.dex */ public interface Sts { void aDb_(BitmapDrawable bitmapDrawable); } public fZK(View view, fZG fzg, Sts sts) { this.h = view.getResources(); this.e = fzg; this.c = sts; this.b = new WeakReference<>(view.getContext()); this.a = fZI.aCV_(view); } /* renamed from: o.fZK$1, reason: invalid class name */ /* loaded from: classes6.dex */ public class AnonymousClass1 implements Runnable { final fZK b; public AnonymousClass1(fZK fzk) { this.b = fzk; } @Override // java.lang.Runnable public final void run() { BitmapDrawable bitmapDrawable = new BitmapDrawable(this.b.h, fZI.aCW_((Context) this.b.b.get(), this.b.a, this.b.e)); if (this.b.c != null) { new Handler(Looper.getMainLooper()).post(new Runnable(this, bitmapDrawable) { // from class: o.fZK.1.5 private AnonymousClass1 d; private BitmapDrawable e; { this.d = this; this.e = bitmapDrawable; } @Override // java.lang.Runnable public final void run() { this.d.b.c.aDb_(this.e); } }); } } } }