40 lines
1021 B
Java
40 lines
1021 B
Java
|
package o;
|
||
|
|
||
|
import android.os.Looper;
|
||
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public abstract class fRS implements fSJ {
|
||
|
private final AtomicBoolean a = new AtomicBoolean();
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public abstract void b();
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final boolean isDisposed() {
|
||
|
return this.a.get();
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final void dispose() {
|
||
|
if (this.a.compareAndSet(false, true)) {
|
||
|
if (Looper.myLooper() == Looper.getMainLooper()) {
|
||
|
b();
|
||
|
} else {
|
||
|
fRR.e().a(new Runnable(this) { // from class: o.fRO
|
||
|
private fRS b;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.b.b();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|