package c.e.f;

import android.os.Handler;
import java.util.concurrent.Callable;

/* JADX INFO: loaded from: classes.dex */
public class o<T> implements Runnable {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Callable<T> f5242b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public c.e.h.a<T> f5243c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Handler f5244d;

    public class a implements Runnable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final /* synthetic */ c.e.h.a f5245b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public final /* synthetic */ Object f5246c;

        public a(o oVar, c.e.h.a aVar, Object obj) {
            this.f5245b = aVar;
            this.f5246c = obj;
        }

        /* JADX WARN: Multi-variable type inference failed */
        @Override // java.lang.Runnable
        public void run() {
            this.f5245b.accept(this.f5246c);
        }
    }

    public o(Handler handler, Callable<T> callable, c.e.h.a<T> aVar) {
        this.f5242b = callable;
        this.f5243c = aVar;
        this.f5244d = handler;
    }

    @Override // java.lang.Runnable
    public void run() {
        T tCall;
        try {
            tCall = this.f5242b.call();
        } catch (Exception unused) {
            tCall = null;
        }
        this.f5244d.post(new a(this, this.f5243c, tCall));
    }
}
