ai.smali

.class final Lrx/internal/operators/ai;
.super Lrx/n;
.source "SingleOnSubscribeMap.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        "R:",
        "Ljava/lang/Object;",
        ">",
        "Lrx/n",
        "<TT;>;"
    }
.end annotation


# instance fields
.field private cau:Lrx/b/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lrx/b/f",
            "<-TT;+TR;>;"
        }
    .end annotation
.end field

.field private cbq:Lrx/n;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lrx/n",
            "<-TR;>;"
        }
    .end annotation
.end field

.field private done:Z


# direct methods
.method public constructor <init>(Lrx/n;Lrx/b/f;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lrx/n",
            "<-TR;>;",
            "Lrx/b/f",
            "<-TT;+TR;>;)V"
        }
    .end annotation

    .prologue
    .line 56
    invoke-direct {p0}, Lrx/n;-><init>()V

    .line 57
    iput-object p1, p0, Lrx/internal/operators/ai;->cbq:Lrx/n;

    .line 58
    iput-object p2, p0, Lrx/internal/operators/ai;->cau:Lrx/b/f;

    .line 59
    return-void
.end method


# virtual methods
.method public final onError(Ljava/lang/Throwable;)V
    .registers 3

    .prologue
    .line 79
    iget-boolean v0, p0, Lrx/internal/operators/ai;->done:Z

    if-eqz v0, :cond_8

    .line 80
    invoke-static {p1}, Lrx/d/c;->onError(Ljava/lang/Throwable;)V

    .line 86
    :goto_7
    return-void

    .line 83
    :cond_8
    const/4 v0, 0x1

    iput-boolean v0, p0, Lrx/internal/operators/ai;->done:Z

    .line 85
    iget-object v0, p0, Lrx/internal/operators/ai;->cbq:Lrx/n;

    invoke-virtual {v0, p1}, Lrx/n;->onError(Ljava/lang/Throwable;)V

    goto :goto_7
.end method

.method public final onSuccess(Ljava/lang/Object;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation

    .prologue
    .line 66
    :try_start_0
    iget-object v0, p0, Lrx/internal/operators/ai;->cau:Lrx/b/f;

    invoke-interface {v0, p1}, Lrx/b/f;->call(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_5
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_5} :catch_c

    move-result-object v0

    .line 74
    iget-object v1, p0, Lrx/internal/operators/ai;->cbq:Lrx/n;

    invoke-virtual {v1, v0}, Lrx/n;->onSuccess(Ljava/lang/Object;)V

    .line 75
    :goto_b
    return-void

    .line 67
    :catch_c
    move-exception v0

    .line 68
    invoke-static {v0}, Lrx/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V

    .line 69
    invoke-virtual {p0}, Lrx/internal/operators/ai;->unsubscribe()V

    .line 70
    invoke-static {v0, p1}, Lrx/exceptions/OnErrorThrowable;->addValueAsLastCause(Ljava/lang/Throwable;Ljava/lang/Object;)Ljava/lang/Throwable;

    move-result-object v0

    invoke-virtual {p0, v0}, Lrx/internal/operators/ai;->onError(Ljava/lang/Throwable;)V

    goto :goto_b
.end method