59 lines
1.3 KiB
Smali
59 lines
1.3 KiB
Smali
|
.class Lbolts/AndroidExecutors$UIThreadExecutor;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "AndroidExecutors.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/util/concurrent/Executor;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lbolts/AndroidExecutors;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0xa
|
||
|
name = "UIThreadExecutor"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method synthetic constructor <init>(Lbolts/AndroidExecutors$1;)V
|
||
|
.locals 0
|
||
|
.param p1, "x0" # Lbolts/AndroidExecutors$1;
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Lbolts/AndroidExecutors$UIThreadExecutor;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public execute(Ljava/lang/Runnable;)V
|
||
|
.locals 2
|
||
|
.param p1, "command" # Ljava/lang/Runnable;
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Landroid/os/Handler;
|
||
|
|
||
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|