package g2;

import I2.J;
import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.atomic.AtomicBoolean;

/* JADX INFO: loaded from: classes.dex */
public final class a implements Runnable {

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public static Handler f16457j;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f16462e;

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public volatile int f16459b = 1;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final AtomicBoolean f16460c = new AtomicBoolean();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final AtomicBoolean f16461d = new AtomicBoolean();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final f f16458a = new f(this, new J(this, 1));

    public a(b bVar) {
        this.f16463f = bVar;
    }

    public final void a(Object obj) {
        Handler handler;
        synchronized (a.class) {
            try {
                if (f16457j == null) {
                    f16457j = new Handler(Looper.getMainLooper());
                }
                handler = f16457j;
            } catch (Throwable th) {
                throw th;
            }
        }
        handler.post(new C1.a(12, this, false, obj));
    }

    @Override // java.lang.Runnable
    public final void run() {
        this.f16462e = false;
        this.f16463f.executePendingTask();
    }
}
