49 lines
1.1 KiB
Java
49 lines
1.1 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Iterator;
|
||
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class ZqN {
|
||
|
private CopyOnWriteArrayList<RVV> mCancellables = new CopyOnWriteArrayList<>();
|
||
|
private boolean mEnabled;
|
||
|
private QUU<Boolean> mEnabledConsumer;
|
||
|
|
||
|
public abstract void handleOnBackPressed();
|
||
|
|
||
|
public final boolean isEnabled() {
|
||
|
return this.mEnabled;
|
||
|
}
|
||
|
|
||
|
public void setIsEnabledConsumer(QUU<Boolean> quu) {
|
||
|
this.mEnabledConsumer = quu;
|
||
|
}
|
||
|
|
||
|
public ZqN(boolean z) {
|
||
|
this.mEnabled = z;
|
||
|
}
|
||
|
|
||
|
public final void setEnabled(boolean z) {
|
||
|
this.mEnabled = z;
|
||
|
QUU<Boolean> quu = this.mEnabledConsumer;
|
||
|
if (quu != null) {
|
||
|
quu.accept(Boolean.valueOf(z));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void remove() {
|
||
|
Iterator<RVV> 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);
|
||
|
}
|
||
|
}
|