192 lines
3.9 KiB
Smali
192 lines
3.9 KiB
Smali
.class public Lf0/t/a/a$a;
|
|
.super Lrx/Subscriber;
|
|
.source "BodyOnSubscribe.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lf0/t/a/a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/Subscriber<",
|
|
"Lf0/o<",
|
|
"TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Lrx/Subscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public e:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Subscriber;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lrx/Subscriber;-><init>(Lrx/Subscriber;)V
|
|
|
|
iput-object p1, p0, Lf0/t/a/a$a;->d:Lrx/Subscriber;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onCompleted()V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lf0/t/a/a$a;->e:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lf0/t/a/a$a;->d:Lrx/Subscriber;
|
|
|
|
invoke-interface {v0}, Lg0/g;->onCompleted()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lf0/t/a/a$a;->e:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lf0/t/a/a$a;->d:Lrx/Subscriber;
|
|
|
|
invoke-interface {v0, p1}, Lg0/g;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
const-string v1, "This should never happen! Report as a Retrofit bug with the full stacktrace."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Throwable;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
sget-object p1, Lg0/p/o;->f:Lg0/p/o;
|
|
|
|
invoke-virtual {p1}, Lg0/p/o;->b()Lg0/p/b;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lg0/p/b;->a()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNext(Ljava/lang/Object;)V
|
|
.locals 5
|
|
|
|
check-cast p1, Lf0/o;
|
|
|
|
iget-object v0, p1, Lf0/o;->a:Lokhttp3/Response;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lf0/t/a/a$a;->d:Lrx/Subscriber;
|
|
|
|
iget-object p1, p1, Lf0/o;->b:Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, p1}, Lg0/g;->onNext(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lf0/t/a/a$a;->e:Z
|
|
|
|
new-instance v1, Lf0/t/a/f;
|
|
|
|
invoke-direct {v1, p1}, Lf0/t/a/f;-><init>(Lf0/o;)V
|
|
|
|
:try_start_0
|
|
iget-object p1, p0, Lf0/t/a/a$a;->d:Lrx/Subscriber;
|
|
|
|
invoke-interface {p1, v1}, Lg0/g;->onError(Ljava/lang/Throwable;)V
|
|
:try_end_0
|
|
.catch Lg0/k/c; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catch Lg0/k/d; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catch Lg0/k/e; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {p1}, Lf/o/a/j/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
new-instance v2, Lg0/k/a;
|
|
|
|
const/4 v3, 0x2
|
|
|
|
new-array v3, v3, [Ljava/lang/Throwable;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v1, v3, v4
|
|
|
|
aput-object p1, v3, v0
|
|
|
|
invoke-direct {v2, v3}, Lg0/k/a;-><init>([Ljava/lang/Throwable;)V
|
|
|
|
sget-object p1, Lg0/p/o;->f:Lg0/p/o;
|
|
|
|
invoke-virtual {p1}, Lg0/p/o;->b()Lg0/p/b;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lg0/p/b;->a()V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
sget-object p1, Lg0/p/o;->f:Lg0/p/o;
|
|
|
|
invoke-virtual {p1}, Lg0/p/o;->b()Lg0/p/b;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lg0/p/b;->a()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|