package androidx.lifecycle;

import android.os.Handler;

/* JADX INFO: loaded from: classes.dex */
public final class e0 implements p {

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public static final e0 f2650i = new e0();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f2651a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f2652b;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f2653c = true;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f2654d = true;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final r f2656f = new r(this);

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final y.a f2657g = new y.a(this, 5);

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final d0 f2658h = new d0(this);

    public final void a() {
        int i10 = this.f2652b + 1;
        this.f2652b = i10;
        if (i10 == 1) {
            if (this.f2653c) {
                this.f2656f.e(Lifecycle$Event.ON_RESUME);
                this.f2653c = false;
            } else {
                Handler handler = this.f2655e;
                nb.g.f(handler);
                handler.removeCallbacks(this.f2657g);
            }
        }
    }

    @Override // androidx.lifecycle.p
    public final l getLifecycle() {
        return this.f2656f;
    }
}
