package X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29;

import android.os.Build;
import android.view.accessibility.AccessibilityManager;
/* compiled from: AccessibilityManagerCompat.java */
/* loaded from: classes.dex */
public final class PGPF6hQ_2 {

    /* compiled from: AccessibilityManagerCompat.java */
    /* loaded from: classes.dex */
    public interface KQgRr5e_0 {
        void onTouchExplorationStateChanged(boolean z);
    }

    /* compiled from: AccessibilityManagerCompat.java */
    /* loaded from: classes.dex */
    public static class QxJ9d_1 implements AccessibilityManager.TouchExplorationStateChangeListener {
        public final KQgRr5e_0 KQgRr5e_0;

        public QxJ9d_1(KQgRr5e_0 kQgRr5e_0) {
            this.KQgRr5e_0 = kQgRr5e_0;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || QxJ9d_1.class != obj.getClass()) {
                return false;
            }
            return this.KQgRr5e_0.equals(((QxJ9d_1) obj).KQgRr5e_0);
        }

        public int hashCode() {
            return this.KQgRr5e_0.hashCode();
        }

        @Override // android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener
        public void onTouchExplorationStateChanged(boolean z) {
            this.KQgRr5e_0.onTouchExplorationStateChanged(z);
        }
    }

    public static boolean KQgRr5e_0(AccessibilityManager accessibilityManager, KQgRr5e_0 kQgRr5e_0) {
        if (Build.VERSION.SDK_INT < 19 || kQgRr5e_0 == null) {
            return false;
        }
        return accessibilityManager.addTouchExplorationStateChangeListener(new QxJ9d_1(kQgRr5e_0));
    }

    public static boolean QxJ9d_1(AccessibilityManager accessibilityManager, KQgRr5e_0 kQgRr5e_0) {
        if (Build.VERSION.SDK_INT < 19 || kQgRr5e_0 == null) {
            return false;
        }
        return accessibilityManager.removeTouchExplorationStateChangeListener(new QxJ9d_1(kQgRr5e_0));
    }
}
