2022-06-10 21:38:30 +09:00

137 lines
2.7 KiB
Smali

.class public final Lio/reactivex/internal/operators/maybe/s;
.super Lkh/q;
.source "MaybeFromRunnable.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lkh/q<",
"TT;>;",
"Ljava/util/concurrent/Callable<",
"TT;>;"
}
.end annotation
# instance fields
.field public final a:Ljava/lang/Runnable;
# direct methods
.method public constructor <init>(Ljava/lang/Runnable;)V
.locals 0
.line 1
invoke-direct {p0}, Lkh/q;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/maybe/s;->a:Ljava/lang/Runnable;
return-void
.end method
# virtual methods
.method public call()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/maybe/s;->a:Ljava/lang/Runnable;
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
const/4 v0, 0x0
return-object v0
.end method
.method public p1(Lkh/t;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkh/t<",
"-TT;>;)V"
}
.end annotation
.line 1
invoke-static {}, Lio/reactivex/disposables/c;->b()Lio/reactivex/disposables/b;
move-result-object v0
.line 2
invoke-interface {p1, v0}, Lkh/t;->onSubscribe(Lio/reactivex/disposables/b;)V
.line 3
invoke-interface {v0}, Lio/reactivex/disposables/b;->isDisposed()Z
move-result v1
if-nez v1, :cond_1
.line 4
:try_start_0
iget-object v1, p0, Lio/reactivex/internal/operators/maybe/s;->a:Ljava/lang/Runnable;
invoke-interface {v1}, Ljava/lang/Runnable;->run()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
invoke-interface {v0}, Lio/reactivex/disposables/b;->isDisposed()Z
move-result v0
if-nez v0, :cond_1
.line 6
invoke-interface {p1}, Lkh/t;->onComplete()V
goto :goto_0
:catchall_0
move-exception v1
.line 7
invoke-static {v1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 8
invoke-interface {v0}, Lio/reactivex/disposables/b;->isDisposed()Z
move-result v0
if-nez v0, :cond_0
.line 9
invoke-interface {p1, v1}, Lkh/t;->onError(Ljava/lang/Throwable;)V
goto :goto_0
.line 10
:cond_0
invoke-static {v1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
:cond_1
:goto_0
return-void
.end method