107 lines
2.6 KiB
Smali
107 lines
2.6 KiB
Smali
.class public Lcom/skt/aicloud/mobile/service/util/e0;
|
|
.super Ljava/lang/Object;
|
|
.source "ToastHelper.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
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
|
|
|
|
.line 2
|
|
new-instance v1, Lcom/skt/aicloud/mobile/service/util/e0$a;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/skt/aicloud/mobile/service/util/e0$a;-><init>(Landroid/content/Context;Ljava/lang/CharSequence;I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Landroid/content/Context;I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, v0}, Lcom/skt/aicloud/mobile/service/util/e0;->c(Landroid/content/Context;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static c(Landroid/content/Context;II)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1, p2}, Lcom/skt/aicloud/mobile/service/util/e0;->e(Landroid/content/Context;Ljava/lang/CharSequence;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static d(Landroid/content/Context;Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, v0}, Lcom/skt/aicloud/mobile/service/util/e0;->e(Landroid/content/Context;Ljava/lang/CharSequence;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static e(Landroid/content/Context;Ljava/lang/CharSequence;I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/os/Looper;->getThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {p0, p1, p2}, Lcom/skt/aicloud/mobile/service/util/e0;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/widget/Toast;->show()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|