a$4.smali
.class final Lrx/a$4;
.super Ljava/lang/Object;
.source "Completable.java"
# interfaces
.implements Lrx/d;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lrx/a;->a(Lrx/b/a;Lrx/b/b;)Lrx/p;
.end annotation
# instance fields
.field private synthetic bZM:Lrx/b/a;
.field private synthetic bZN:Lrx/g/c;
.field private synthetic bZO:Lrx/b/b;
.field private done:Z
# direct methods
.method constructor <init>(Lrx/b/a;Lrx/g/c;Lrx/b/b;)V
.registers 4
.prologue
.line 1974
iput-object p1, p0, Lrx/a$4;->bZM:Lrx/b/a;
iput-object p2, p0, Lrx/a$4;->bZN:Lrx/g/c;
iput-object p3, p0, Lrx/a$4;->bZO:Lrx/b/b;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private q(Ljava/lang/Throwable;)V
.registers 6
.prologue
.line 2003
:try_start_0
iget-object v0, p0, Lrx/a$4;->bZO:Lrx/b/b;
invoke-interface {v0, p1}, Lrx/b/b;->call(Ljava/lang/Object;)V
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_5} :catch_b
.catchall {:try_start_0 .. :try_end_5} :catchall_2a
.line 2009
iget-object v0, p0, Lrx/a$4;->bZN:Lrx/g/c;
invoke-virtual {v0}, Lrx/g/c;->unsubscribe()V
.line 2010
:goto_a
return-void
.line 2004
:catch_b
move-exception v0
.line 2005
:try_start_c
new-instance v1, Lrx/exceptions/CompositeException;
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Throwable;
const/4 v3, 0x0
aput-object p1, v2, v3
const/4 v3, 0x1
aput-object v0, v2, v3
invoke-static {v2}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
invoke-direct {v1, v0}, Lrx/exceptions/CompositeException;-><init>(Ljava/util/Collection;)V
.line 2006
invoke-static {v1}, Lrx/d/c;->onError(Ljava/lang/Throwable;)V
.line 2007
invoke-static {v1}, Lrx/a;->p(Ljava/lang/Throwable;)V
:try_end_24
.catchall {:try_start_c .. :try_end_24} :catchall_2a
.line 2009
iget-object v0, p0, Lrx/a$4;->bZN:Lrx/g/c;
invoke-virtual {v0}, Lrx/g/c;->unsubscribe()V
goto :goto_a
:catchall_2a
move-exception v0
iget-object v1, p0, Lrx/a$4;->bZN:Lrx/g/c;
invoke-virtual {v1}, Lrx/g/c;->unsubscribe()V
throw v0
.end method
# virtual methods
.method public final SG()V
.registers 2
.prologue
.line 1978
iget-boolean v0, p0, Lrx/a$4;->done:Z
if-nez v0, :cond_11
.line 1979
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/a$4;->done:Z
.line 1981
:try_start_7
iget-object v0, p0, Lrx/a$4;->bZM:Lrx/b/a;
invoke-interface {v0}, Lrx/b/a;->call()V
:try_end_c
.catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_c} :catch_12
.line 1986
iget-object v0, p0, Lrx/a$4;->bZN:Lrx/g/c;
invoke-virtual {v0}, Lrx/g/c;->unsubscribe()V
.line 1988
:cond_11
:goto_11
return-void
.line 1982
:catch_12
move-exception v0
.line 1983
invoke-direct {p0, v0}, Lrx/a$4;->q(Ljava/lang/Throwable;)V
goto :goto_11
.end method
.method public final a(Lrx/p;)V
.registers 4
.prologue
.line 2015
iget-object v0, p0, Lrx/a$4;->bZN:Lrx/g/c;
.line 2047
if-nez p1, :cond_c
.line 2048
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Subscription can not be null"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 2050
:cond_c
iget-object v0, v0, Lrx/g/c;->cdz:Lrx/internal/subscriptions/SequentialSubscription;
invoke-virtual {v0, p1}, Lrx/internal/subscriptions/SequentialSubscription;->replace(Lrx/p;)Z
.line 2016
return-void
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 3
.prologue
.line 1992
iget-boolean v0, p0, Lrx/a$4;->done:Z
if-nez v0, :cond_b
.line 1993
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/a$4;->done:Z
.line 1994
invoke-direct {p0, p1}, Lrx/a$4;->q(Ljava/lang/Throwable;)V
.line 1999
:goto_a
return-void
.line 1996
:cond_b
invoke-static {p1}, Lrx/d/c;->onError(Ljava/lang/Throwable;)V
.line 1997
invoke-static {p1}, Lrx/a;->p(Ljava/lang/Throwable;)V
goto :goto_a
.end method