169 lines
3.9 KiB
Smali
169 lines
3.9 KiB
Smali
.class public final Lr0/l/a/k1;
|
|
.super Lr0/m/c;
|
|
.source "OperatorPublish.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lr0/l/a/k1$a;,
|
|
Lr0/l/a/k1$b;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lr0/m/c<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final e:Lrx/Observable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Observable<",
|
|
"+TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lr0/l/a/k1$b<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Observable$a;Lrx/Observable;Ljava/util/concurrent/atomic/AtomicReference;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Observable$a<",
|
|
"TT;>;",
|
|
"Lrx/Observable<",
|
|
"+TT;>;",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lr0/l/a/k1$b<",
|
|
"TT;>;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lr0/m/c;-><init>(Lrx/Observable$a;)V
|
|
|
|
iput-object p2, p0, Lr0/l/a/k1;->e:Lrx/Observable;
|
|
|
|
iput-object p3, p0, Lr0/l/a/k1;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public e0(Lrx/functions/Action1;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/functions/Action1<",
|
|
"-",
|
|
"Lrx/Subscription;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Lr0/l/a/k1;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lr0/l/a/k1$b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
:cond_0
|
|
new-instance v1, Lr0/l/a/k1$b;
|
|
|
|
iget-object v2, p0, Lr0/l/a/k1;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v1, v2}, Lr0/l/a/k1$b;-><init>(Ljava/util/concurrent/atomic/AtomicReference;)V
|
|
|
|
new-instance v2, Lr0/l/a/l1;
|
|
|
|
invoke-direct {v2, v1}, Lr0/l/a/l1;-><init>(Lr0/l/a/k1$b;)V
|
|
|
|
new-instance v3, Lr0/r/a;
|
|
|
|
invoke-direct {v3, v2}, Lr0/r/a;-><init>(Lrx/functions/Action0;)V
|
|
|
|
invoke-virtual {v1, v3}, Lrx/Subscriber;->add(Lrx/Subscription;)V
|
|
|
|
iget-object v2, p0, Lr0/l/a/k1;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v0, v1
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Lr0/l/a/k1$b;->h:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v1, v0, Lr0/l/a/k1$b;->h:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1, v3, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
invoke-interface {p1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object p1, p0, Lr0/l/a/k1;->e:Lrx/Observable;
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->c0(Lrx/Subscriber;)Lrx/Subscription;
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|