apkfuckery/com.discord/smali/e/a/b/k.smali

358 lines
7.8 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Le/a/b/k;
.super Ljava/lang/Object;
2020-03-03 02:12:30 +00:00
.source "AppToast.kt"
2019-12-06 03:29:40 +00:00
# static fields
.field public static final a:Le/a/b/k;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Le/a/b/k;
invoke-direct {v0}, Le/a/b/k;-><init>()V
sput-object v0, Le/a/b/k;->a:Le/a/b/k;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroid/content/Context;I)V
.locals 3
.param p1 # I
.annotation build Landroidx/annotation/StringRes;
.end annotation
.end param
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2020-03-03 02:12:30 +00:00
const/4 v1, 0x0
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
const/16 v2, 0xc
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, v0, v1, v2}, Le/a/b/k;->a(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;I)V
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/StringRes;
.end annotation
.end param
2019-12-06 03:29:40 +00:00
if-eqz p0, :cond_0
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_0
const/4 p1, 0x0
2020-03-03 02:12:30 +00:00
:goto_0
invoke-static {p0, p1, p2, p3}, Le/a/b/k;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2020-03-02 23:12:43 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static synthetic a(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;I)V
2019-12-06 03:29:40 +00:00
.locals 1
2020-03-03 02:12:30 +00:00
and-int/lit8 v0, p4, 0x4
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2020-03-03 02:12:30 +00:00
const/4 p2, 0x0
2019-12-06 03:29:40 +00:00
:cond_0
2020-03-03 02:12:30 +00:00
and-int/lit8 p4, p4, 0x8
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p4, :cond_1
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
const/4 p3, 0x0
2019-12-06 03:29:40 +00:00
:cond_1
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, p2, p3}, Le/a/b/k;->a(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroid/content/Context;Ljava/lang/CharSequence;)V
.locals 3
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2020-03-03 02:12:30 +00:00
const/16 v2, 0xc
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, v0, v1, v2}, Le/a/b/k;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
.locals 3
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2020-03-03 02:12:30 +00:00
if-eqz p0, :cond_3
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p1, :cond_2
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
const-string v1, "clipboard"
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
instance-of v2, v1, Landroid/content/ClipboardManager;
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-nez v2, :cond_0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
move-object v1, v0
2019-12-06 03:29:40 +00:00
:cond_0
2020-03-03 02:12:30 +00:00
check-cast v1, Landroid/content/ClipboardManager;
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
const-string v2, ""
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v2, p1}, Landroid/content/ClipData;->newPlainText(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
move-result-object p1
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz v1, :cond_1
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v1, p1}, Landroid/content/ClipboardManager;->setPrimaryClip(Landroid/content/ClipData;)V
2019-12-06 03:29:40 +00:00
:cond_1
2020-03-03 02:12:30 +00:00
const/4 p1, 0x0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
const/16 v1, 0xc
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {p0, p2, p1, v0, v1}, Le/a/b/k;->a(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;I)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_2
2020-03-03 02:12:30 +00:00
const-string p0, "text"
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_3
2020-03-03 02:12:30 +00:00
const-string p0, "context"
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method
2020-03-03 02:12:30 +00:00
.method public static synthetic a(Landroid/content/Context;Ljava/lang/CharSequence;II)V
.locals 0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
and-int/lit8 p3, p3, 0x4
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p3, :cond_0
2019-12-06 03:29:40 +00:00
2020-03-24 23:33:02 +00:00
const p2, 0x7f120478
2019-12-06 03:29:40 +00:00
:cond_0
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, p2}, Le/a/b/k;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;)V
.locals 3
2019-12-06 03:29:40 +00:00
if-eqz p0, :cond_1
2020-03-03 02:12:30 +00:00
new-instance v0, Landroid/widget/Toast;
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
invoke-direct {v0, p0}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
new-instance v1, Landroid/view/ContextThemeWrapper;
2019-12-06 03:29:40 +00:00
2020-03-24 23:33:02 +00:00
const v2, 0x7f130350
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
invoke-direct {v1, p0, v2}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
new-instance p0, Landroid/widget/TextView;
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-direct {p0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, p0}, Landroid/widget/Toast;->setView(Landroid/view/View;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, p2}, Landroid/widget/Toast;->setDuration(I)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p3, :cond_0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p3, v0}, Lcom/discord/utilities/view/ToastManager;->show(Landroid/widget/Toast;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
2019-12-06 03:29:40 +00:00
:cond_1
2020-03-03 02:12:30 +00:00
:goto_0
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static synthetic a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
2019-12-06 03:29:40 +00:00
.locals 1
2020-03-03 02:12:30 +00:00
and-int/lit8 v0, p4, 0x4
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2020-03-03 02:12:30 +00:00
const/4 p2, 0x0
2020-03-02 23:12:43 +00:00
:cond_0
2020-03-03 02:12:30 +00:00
and-int/lit8 p4, p4, 0x8
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p4, :cond_1
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
const/4 p3, 0x0
2020-03-02 23:12:43 +00:00
:cond_1
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, p2, p3}, Le/a/b/k;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroidx/fragment/app/Fragment;I)V
2019-12-06 03:29:40 +00:00
.locals 2
2020-03-03 02:12:30 +00:00
.param p1 # I
.annotation build Landroidx/annotation/StringRes;
.end annotation
.end param
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
const/4 v1, 0x4
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, v0, v1}, Le/a/b/k;->a(Landroidx/fragment/app/Fragment;III)V
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
return-void
2020-03-02 23:12:43 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static synthetic a(Landroidx/fragment/app/Fragment;III)V
2019-12-06 03:29:40 +00:00
.locals 0
and-int/lit8 p3, p3, 0x4
if-eqz p3, :cond_0
const/4 p2, 0x0
:cond_0
2020-03-02 23:12:43 +00:00
if-eqz p0, :cond_1
2020-03-03 02:12:30 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p3, :cond_1
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p3, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
move-result-object p1
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_1
2020-03-03 02:12:30 +00:00
const/4 p1, 0x0
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
:goto_0
invoke-static {p0, p1, p2}, Le/a/b/k;->a(Landroidx/fragment/app/Fragment;Ljava/lang/CharSequence;I)V
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroidx/fragment/app/Fragment;Ljava/lang/CharSequence;)V
.locals 2
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2020-03-03 02:12:30 +00:00
const/4 v1, 0x4
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, v0, v1}, Le/a/b/k;->a(Landroidx/fragment/app/Fragment;Ljava/lang/CharSequence;II)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static final a(Landroidx/fragment/app/Fragment;Ljava/lang/CharSequence;I)V
.locals 2
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
const/4 v0, 0x0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p0, :cond_0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-12-06 03:29:40 +00:00
move-result-object p0
goto :goto_0
:cond_0
2020-03-03 02:12:30 +00:00
move-object p0, v0
2019-12-06 03:29:40 +00:00
:goto_0
2020-03-03 02:12:30 +00:00
const/16 v1, 0x8
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, p2, v0, v1}, Le/a/b/k;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2020-03-02 23:12:43 +00:00
.end method
2020-03-03 02:12:30 +00:00
.method public static synthetic a(Landroidx/fragment/app/Fragment;Ljava/lang/CharSequence;II)V
2020-03-02 23:12:43 +00:00
.locals 1
2020-03-03 02:12:30 +00:00
and-int/lit8 p3, p3, 0x4
2019-12-06 03:29:40 +00:00
if-eqz p3, :cond_0
2020-03-03 02:12:30 +00:00
const/4 p2, 0x0
2019-12-06 03:29:40 +00:00
:cond_0
2020-03-03 02:12:30 +00:00
const/4 p3, 0x0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p0, :cond_1
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
move-result-object p0
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
goto :goto_0
2020-03-02 23:12:43 +00:00
:cond_1
2020-03-03 02:12:30 +00:00
move-object p0, p3
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
:goto_0
const/16 v0, 0x8
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {p0, p1, p2, p3, v0}, Le/a/b/k;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
2020-03-02 23:12:43 +00:00
2020-03-03 02:12:30 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method