tmap/smali_classes5/kh/h0$a.smali
2022-06-10 21:38:30 +09:00

161 lines
3.2 KiB
Smali

.class public final Lkh/h0$a;
.super Ljava/lang/Object;
.source "Scheduler.java"
# interfaces
.implements Lio/reactivex/disposables/b;
.implements Ljava/lang/Runnable;
.implements Lli/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkh/h0;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field public final a:Ljava/lang/Runnable;
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.end field
.field public final b:Lkh/h0$c;
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.end field
.field public c:Ljava/lang/Thread;
.annotation build Lio/reactivex/annotations/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Runnable;Lkh/h0$c;)V
.locals 0
.param p1 # Ljava/lang/Runnable;
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.end param
.param p2 # Lkh/h0$c;
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.end param
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lkh/h0$a;->a:Ljava/lang/Runnable;
.line 3
iput-object p2, p0, Lkh/h0$a;->b:Lkh/h0$c;
return-void
.end method
# virtual methods
.method public dispose()V
.locals 2
.line 1
iget-object v0, p0, Lkh/h0$a;->c:Ljava/lang/Thread;
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
if-ne v0, v1, :cond_0
iget-object v0, p0, Lkh/h0$a;->b:Lkh/h0$c;
instance-of v1, v0, Lio/reactivex/internal/schedulers/g;
if-eqz v1, :cond_0
.line 2
check-cast v0, Lio/reactivex/internal/schedulers/g;
invoke-virtual {v0}, Lio/reactivex/internal/schedulers/g;->h()V
goto :goto_0
.line 3
:cond_0
iget-object v0, p0, Lkh/h0$a;->b:Lkh/h0$c;
invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
:goto_0
return-void
.end method
.method public getWrappedRunnable()Ljava/lang/Runnable;
.locals 1
.line 1
iget-object v0, p0, Lkh/h0$a;->a:Ljava/lang/Runnable;
return-object v0
.end method
.method public isDisposed()Z
.locals 1
.line 1
iget-object v0, p0, Lkh/h0$a;->b:Lkh/h0$c;
invoke-interface {v0}, Lio/reactivex/disposables/b;->isDisposed()Z
move-result v0
return v0
.end method
.method public run()V
.locals 2
.line 1
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
iput-object v0, p0, Lkh/h0$a;->c:Ljava/lang/Thread;
const/4 v0, 0x0
.line 2
:try_start_0
iget-object v1, p0, Lkh/h0$a;->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 3
invoke-virtual {p0}, Lkh/h0$a;->dispose()V
.line 4
iput-object v0, p0, Lkh/h0$a;->c:Ljava/lang/Thread;
return-void
:catchall_0
move-exception v1
.line 5
invoke-virtual {p0}, Lkh/h0$a;->dispose()V
.line 6
iput-object v0, p0, Lkh/h0$a;->c:Ljava/lang/Thread;
throw v1
.end method