package b.f.g;

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: a, reason: collision with root package name */
    public Callable<T> f972a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public b.f.i.a<T> f973b;

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

    public class a implements Runnable {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public final /* synthetic */ b.f.i.a f975a;

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

        public a(o oVar, b.f.i.a aVar, Object obj) {
            this.f975a = aVar;
            this.f976b = obj;
        }

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

    public o(Handler handler, Callable<T> callable, b.f.i.a<T> aVar) {
        this.f972a = callable;
        this.f973b = aVar;
        this.f974c = handler;
    }

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