package o; import java.util.Iterator; import java.util.concurrent.CopyOnWriteArrayList; /* loaded from: classes.dex */ public abstract class ZqN { private CopyOnWriteArrayList mCancellables = new CopyOnWriteArrayList<>(); private boolean mEnabled; private QUU mEnabledConsumer; public abstract void handleOnBackPressed(); public final boolean isEnabled() { return this.mEnabled; } public void setIsEnabledConsumer(QUU quu) { this.mEnabledConsumer = quu; } public ZqN(boolean z) { this.mEnabled = z; } public final void setEnabled(boolean z) { this.mEnabled = z; QUU quu = this.mEnabledConsumer; if (quu != null) { quu.accept(Boolean.valueOf(z)); } } public final void remove() { Iterator it = this.mCancellables.iterator(); while (it.hasNext()) { it.next().b(); } } public void addCancellable(RVV rvv) { this.mCancellables.add(rvv); } public void removeCancellable(RVV rvv) { this.mCancellables.remove(rvv); } }