GlideExecutor$DefaultThreadFactory$1.smali
.class Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory$1;
.super Ljava/lang/Thread;
.source "GlideExecutor.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;->newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;Ljava/lang/Runnable;Ljava/lang/String;)V
.registers 4
.param p1, "this$0" # Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;
.param p2, "arg0" # Ljava/lang/Runnable;
.param p3, "arg1" # Ljava/lang/String;
.line 420
iput-object p1, p0, Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory$1;->this$0:Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;
invoke-direct {p0, p2, p3}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public run()V
.registers 3
.line 424
const/16 v0, 0x9
invoke-static {v0}, Landroid/os/Process;->setThreadPriority(I)V
.line 426
iget-object v0, p0, Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory$1;->this$0:Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;
iget-boolean v0, v0, Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;->preventNetworkOperations:Z
if-eqz v0, :cond_1f
.line 427
new-instance v0, Landroid/os/StrictMode$ThreadPolicy$Builder;
invoke-direct {v0}, Landroid/os/StrictMode$ThreadPolicy$Builder;-><init>()V
.line 428
invoke-virtual {v0}, Landroid/os/StrictMode$ThreadPolicy$Builder;->detectNetwork()Landroid/os/StrictMode$ThreadPolicy$Builder;
move-result-object v0
invoke-virtual {v0}, Landroid/os/StrictMode$ThreadPolicy$Builder;->penaltyDeath()Landroid/os/StrictMode$ThreadPolicy$Builder;
move-result-object v0
invoke-virtual {v0}, Landroid/os/StrictMode$ThreadPolicy$Builder;->build()Landroid/os/StrictMode$ThreadPolicy;
move-result-object v0
.line 427
invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
.line 431
:cond_1f
:try_start_1f
invoke-super {p0}, Ljava/lang/Thread;->run()V
:try_end_22
.catchall {:try_start_1f .. :try_end_22} :catchall_23
.line 434
goto :goto_2b
.line 432
:catchall_23
move-exception v0
.line 433
.local v0, "t":Ljava/lang/Throwable;
iget-object v1, p0, Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory$1;->this$0:Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;
iget-object v1, v1, Lcom/bumptech/glide/load/engine/executor/GlideExecutor$DefaultThreadFactory;->uncaughtThrowableStrategy:Lcom/bumptech/glide/load/engine/executor/GlideExecutor$UncaughtThrowableStrategy;
invoke-interface {v1, v0}, Lcom/bumptech/glide/load/engine/executor/GlideExecutor$UncaughtThrowableStrategy;->handle(Ljava/lang/Throwable;)V
.line 435
.end local v0 # "t":Ljava/lang/Throwable;
:goto_2b
return-void
.end method