m.smali
.class public final Lio/reactivex/internal/observers/m;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "SourceFile"
# interfaces
.implements Lio/reactivex/s;
.implements Lio/reactivex/disposables/b;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/disposables/b;",
">;",
"Lio/reactivex/s<",
"TT;>;",
"Lio/reactivex/disposables/b;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x3d1b3ceaf2a05f88L
# instance fields
.field public final a:Lio/reactivex/functions/o;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/o<",
"-TT;>;"
}
.end annotation
.end field
.field public final b:Lio/reactivex/functions/f;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/f<",
"-",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field public final c:Lio/reactivex/functions/a;
.field public d:Z
# direct methods
.method public constructor <init>(Lio/reactivex/functions/o;Lio/reactivex/functions/f;Lio/reactivex/functions/a;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/functions/o<",
"-TT;>;",
"Lio/reactivex/functions/f<",
"-",
"Ljava/lang/Throwable;",
">;",
"Lio/reactivex/functions/a;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/observers/m;->a:Lio/reactivex/functions/o;
.line 3
iput-object p2, p0, Lio/reactivex/internal/observers/m;->b:Lio/reactivex/functions/f;
.line 4
iput-object p3, p0, Lio/reactivex/internal/observers/m;->c:Lio/reactivex/functions/a;
return-void
.end method
# virtual methods
.method public final dispose()V
.registers 1
invoke-static {p0}, Lio/reactivex/internal/disposables/c;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
return-void
.end method
.method public final isDisposed()Z
.registers 2
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/disposables/b;
invoke-static {v0}, Lio/reactivex/internal/disposables/c;->isDisposed(Lio/reactivex/disposables/b;)Z
move-result v0
return v0
.end method
.method public final onComplete()V
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/observers/m;->d:Z
if-eqz v0, :cond_5
return-void
:cond_5
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/internal/observers/m;->d:Z
.line 3
:try_start_8
iget-object v0, p0, Lio/reactivex/internal/observers/m;->c:Lio/reactivex/functions/a;
invoke-interface {v0}, Lio/reactivex/functions/a;->run()V
:try_end_d
.catchall {:try_start_8 .. :try_end_d} :catchall_e
goto :goto_15
:catchall_e
move-exception v0
.line 4
invoke-static {v0}, Lcom/shopee/app/dre/codepush/task/a;->m(Ljava/lang/Throwable;)V
.line 5
invoke-static {v0}, Lio/reactivex/plugins/a;->b(Ljava/lang/Throwable;)V
:goto_15
return-void
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 7
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/observers/m;->d:Z
if-eqz v0, :cond_8
.line 2
invoke-static {p1}, Lio/reactivex/plugins/a;->b(Ljava/lang/Throwable;)V
return-void
:cond_8
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lio/reactivex/internal/observers/m;->d:Z
.line 4
:try_start_b
iget-object v1, p0, Lio/reactivex/internal/observers/m;->b:Lio/reactivex/functions/f;
invoke-interface {v1, p1}, Lio/reactivex/functions/f;->accept(Ljava/lang/Object;)V
:try_end_10
.catchall {:try_start_b .. :try_end_10} :catchall_11
goto :goto_25
:catchall_11
move-exception v1
.line 5
invoke-static {v1}, Lcom/shopee/app/dre/codepush/task/a;->m(Ljava/lang/Throwable;)V
.line 6
new-instance v2, Lio/reactivex/exceptions/a;
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Throwable;
const/4 v4, 0x0
aput-object p1, v3, v4
aput-object v1, v3, v0
invoke-direct {v2, v3}, Lio/reactivex/exceptions/a;-><init>([Ljava/lang/Throwable;)V
invoke-static {v2}, Lio/reactivex/plugins/a;->b(Ljava/lang/Throwable;)V
:goto_25
return-void
.end method
.method public final onNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/observers/m;->d:Z
if-eqz v0, :cond_5
return-void
.line 2
:cond_5
:try_start_5
iget-object v0, p0, Lio/reactivex/internal/observers/m;->a:Lio/reactivex/functions/o;
invoke-interface {v0, p1}, Lio/reactivex/functions/o;->test(Ljava/lang/Object;)Z
move-result p1
:try_end_b
.catchall {:try_start_5 .. :try_end_b} :catchall_14
if-nez p1, :cond_13
.line 3
invoke-static {p0}, Lio/reactivex/internal/disposables/c;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
.line 4
invoke-virtual {p0}, Lio/reactivex/internal/observers/m;->onComplete()V
:cond_13
return-void
:catchall_14
move-exception p1
.line 5
invoke-static {p1}, Lcom/shopee/app/dre/codepush/task/a;->m(Ljava/lang/Throwable;)V
.line 6
invoke-static {p0}, Lio/reactivex/internal/disposables/c;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
.line 7
invoke-virtual {p0, p1}, Lio/reactivex/internal/observers/m;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public final onSubscribe(Lio/reactivex/disposables/b;)V
.registers 2
invoke-static {p0, p1}, Lio/reactivex/internal/disposables/c;->setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/b;)Z
return-void
.end method