a.smali
.class public final Lrx/subjects/a;
.super Lrx/subjects/b;
.source "BehaviorSubject.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/subjects/b",
"<TT;TT;>;"
}
.end annotation
# instance fields
.field private final cdn:Lrx/subjects/SubjectSubscriptionManager;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/SubjectSubscriptionManager",
"<TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lrx/f;Lrx/subjects/SubjectSubscriptionManager;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/f",
"<TT;>;",
"Lrx/subjects/SubjectSubscriptionManager",
"<TT;>;)V"
}
.end annotation
.prologue
.line 118
invoke-direct {p0, p1}, Lrx/subjects/b;-><init>(Lrx/f;)V
.line 119
iput-object p2, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
.line 120
return-void
.end method
# virtual methods
.method public final SG()V
.registers 6
.prologue
.line 124
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
invoke-virtual {v0}, Lrx/subjects/SubjectSubscriptionManager;->getLatest()Ljava/lang/Object;
move-result-object v0
.line 125
if-eqz v0, :cond_e
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
iget-boolean v0, v0, Lrx/subjects/SubjectSubscriptionManager;->active:Z
if-eqz v0, :cond_24
.line 126
:cond_e
invoke-static {}, Lrx/internal/operators/NotificationLite;->SQ()Ljava/lang/Object;
move-result-object v1
.line 127
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
invoke-virtual {v0, v1}, Lrx/subjects/SubjectSubscriptionManager;->terminate(Ljava/lang/Object;)[Lrx/subjects/d;
move-result-object v2
array-length v3, v2
const/4 v0, 0x0
:goto_1a
if-ge v0, v3, :cond_24
aget-object v4, v2, v0
.line 128
invoke-virtual {v4, v1}, Lrx/subjects/d;->aR(Ljava/lang/Object;)V
.line 127
add-int/lit8 v0, v0, 0x1
goto :goto_1a
.line 131
:cond_24
return-void
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 9
.prologue
.line 135
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
invoke-virtual {v0}, Lrx/subjects/SubjectSubscriptionManager;->getLatest()Ljava/lang/Object;
move-result-object v0
.line 136
if-eqz v0, :cond_e
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
iget-boolean v0, v0, Lrx/subjects/SubjectSubscriptionManager;->active:Z
if-eqz v0, :cond_37
.line 137
:cond_e
invoke-static {p1}, Lrx/internal/operators/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v2
.line 138
const/4 v1, 0x0
.line 139
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
invoke-virtual {v0, v2}, Lrx/subjects/SubjectSubscriptionManager;->terminate(Ljava/lang/Object;)[Lrx/subjects/d;
move-result-object v3
array-length v4, v3
const/4 v0, 0x0
move v6, v0
move-object v0, v1
move v1, v6
:goto_1e
if-ge v1, v4, :cond_34
aget-object v5, v3, v1
.line 141
:try_start_22
invoke-virtual {v5, v2}, Lrx/subjects/d;->aR(Ljava/lang/Object;)V
:try_end_25
.catch Ljava/lang/Throwable; {:try_start_22 .. :try_end_25} :catch_28
.line 139
:goto_25
add-int/lit8 v1, v1, 0x1
goto :goto_1e
.line 142
:catch_28
move-exception v5
.line 143
if-nez v0, :cond_30
.line 144
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 146
:cond_30
invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_25
.line 150
:cond_34
invoke-static {v0}, Lrx/exceptions/d;->ao(Ljava/util/List;)V
.line 152
:cond_37
return-void
.end method
.method public final onNext(Ljava/lang/Object;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.prologue
.line 156
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
invoke-virtual {v0}, Lrx/subjects/SubjectSubscriptionManager;->getLatest()Ljava/lang/Object;
move-result-object v0
.line 157
if-eqz v0, :cond_e
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
iget-boolean v0, v0, Lrx/subjects/SubjectSubscriptionManager;->active:Z
if-eqz v0, :cond_24
.line 158
:cond_e
invoke-static {p1}, Lrx/internal/operators/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
.line 159
iget-object v0, p0, Lrx/subjects/a;->cdn:Lrx/subjects/SubjectSubscriptionManager;
invoke-virtual {v0, v1}, Lrx/subjects/SubjectSubscriptionManager;->next(Ljava/lang/Object;)[Lrx/subjects/d;
move-result-object v2
array-length v3, v2
const/4 v0, 0x0
:goto_1a
if-ge v0, v3, :cond_24
aget-object v4, v2, v0
.line 160
invoke-virtual {v4, v1}, Lrx/subjects/d;->aR(Ljava/lang/Object;)V
.line 159
add-int/lit8 v0, v0, 0x1
goto :goto_1a
.line 163
:cond_24
return-void
.end method