173 lines
3.5 KiB
Smali
173 lines
3.5 KiB
Smali
.class final Lrx/internal/a/bd$a;
|
|
.super Lrx/Subscriber;
|
|
.source "SingleFromObservable.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/bd;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/Subscriber<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final bED:Lrx/g;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/g<",
|
|
"-TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field state:I
|
|
|
|
.field value:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lrx/g;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/g<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/bd$a;->bED:Lrx/g;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onCompleted()V
|
|
.locals 2
|
|
|
|
iget v0, p0, Lrx/internal/a/bd$a;->state:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/bd$a;->bED:Lrx/g;
|
|
|
|
new-instance v1, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v1}, Ljava/util/NoSuchElementException;-><init>()V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/g;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
iput v0, p0, Lrx/internal/a/bd$a;->state:I
|
|
|
|
iget-object v0, p0, Lrx/internal/a/bd$a;->value:Ljava/lang/Object;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, p0, Lrx/internal/a/bd$a;->value:Ljava/lang/Object;
|
|
|
|
iget-object v1, p0, Lrx/internal/a/bd$a;->bED:Lrx/g;
|
|
|
|
invoke-virtual {v1, v0}, Lrx/g;->onSuccess(Ljava/lang/Object;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
iget v0, p0, Lrx/internal/a/bd$a;->state:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-static {p1}, Lrx/c/c;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lrx/internal/a/bd$a;->value:Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lrx/internal/a/bd$a;->bED:Lrx/g;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/g;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lrx/internal/a/bd$a;->state:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput v1, p0, Lrx/internal/a/bd$a;->state:I
|
|
|
|
iput-object p1, p0, Lrx/internal/a/bd$a;->value:Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-ne v0, v1, :cond_1
|
|
|
|
const/4 p1, 0x2
|
|
|
|
iput p1, p0, Lrx/internal/a/bd$a;->state:I
|
|
|
|
iget-object p1, p0, Lrx/internal/a/bd$a;->bED:Lrx/g;
|
|
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
const-string v1, "The upstream produced more than one value"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v0}, Lrx/g;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|