package com.fyber.inneractive.sdk.player.cache; import android.graphics.Bitmap; import com.fyber.inneractive.sdk.player.cache.d; import com.fyber.inneractive.sdk.player.cache.j; /* loaded from: classes2.dex */ public final class i implements Runnable { public final /* synthetic */ Exception a; public final /* synthetic */ j b; public i(j jVar, Exception exc) { this.b = jVar; this.a = exc; } @Override // java.lang.Runnable public final void run() { d.b bVar; j jVar = this.b; j.g gVar = jVar.g; if (gVar != null) { a aVar = jVar.f; Exception exc = this.a; d.a aVar2 = (d.a) gVar; d dVar = d.this; if (!dVar.a) { if (exc == null) { Bitmap bitmap = aVar2.a.b; if (bitmap != null && (bVar = dVar.h) != null) { ((com.fyber.inneractive.sdk.player.controller.d) bVar).B = bitmap; } dVar.b = aVar; } else { aVar2.b.set(exc); } } aVar2.c.countDown(); } } }