package androidx.fragment.app;

import java.util.HashSet;
import o.AbstractC0126Ew;
import o.C2638ug;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class e {
    public final x a;
    public final C2638ug b;

    public e(x xVar, C2638ug c2638ug) {
        this.a = xVar;
        this.b = c2638ug;
    }

    public final void a() {
        x xVar = this.a;
        HashSet hashSet = xVar.e;
        if (hashSet.remove(this.b) && hashSet.isEmpty()) {
            xVar.b();
        }
    }

    public final boolean b() {
        x xVar = this.a;
        int iC = AbstractC0126Ew.c(xVar.c.mView);
        int i = xVar.a;
        if (iC != i) {
            return (iC == 2 || i == 2) ? false : true;
        }
        return true;
    }
}
