2020-05-17 12:40:10 +00:00
|
|
|
.class public Lcom/discord/widgets/guilds/join/WidgetGuildJoin;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetGuildJoin.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/guilds/join/WidgetGuildJoin$ToolbarButton;,
|
|
|
|
Lcom/discord/widgets/guilds/join/WidgetGuildJoin$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/guilds/join/WidgetGuildJoin$Companion;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final guildJoinButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final guildJoinInvite$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-instance v1, Lj0/o/c/q;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v2}, Lj0/o/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/s/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "guildJoinInvite"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v4, "getGuildJoinInvite()Lcom/google/android/material/textfield/TextInputLayout;"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/o/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v1}, Lj0/o/c/s;->property1(Lj0/o/c/p;)Lj0/s/d;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-instance v1, Lj0/o/c/q;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-class v2, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v2}, Lj0/o/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/s/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v3, "guildJoinButton"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v4, "getGuildJoinButton()Landroid/widget/Button;"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/o/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v1}, Lj0/o/c/s;->property1(Lj0/o/c/p;)Lj0/s/d;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object v1, v0, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->Companion:Lcom/discord/widgets/guilds/join/WidgetGuildJoin$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
const v0, 0x7f0a0437
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p0, v0}, Lj0/f;->r(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->guildJoinInvite$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
const v0, 0x7f0a0435
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p0, v0}, Lj0/f;->r(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->guildJoinButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
const v0, 0x7f0d01d9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getGuildJoinButton()Landroid/widget/Button;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->guildJoinButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final getGuildJoinInvite()Lcom/google/android/material/textfield/TextInputLayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->guildJoinInvite$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
check-cast v0, Lcom/google/android/material/textfield/TextInputLayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final handleGuildJoin()V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 9
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->getGuildJoinInvite()Lcom/google/android/material/textfield/TextInputLayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getTextOrEmpty(Lcom/google/android/material/textfield/TextInputLayout;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-lez v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;
|
|
|
|
|
|
|
|
const-string v2, "Join Guild Modal"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0, v2}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->selectInvite(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->getGuildJoinInvite()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "guildJoinInvite.context"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v5, v0}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x4
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v3 .. v8}, Lcom/discord/utilities/intent/IntentUtils;->consumeRoutingIntent$default(Lcom/discord/utilities/intent/IntentUtils;Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
|
|
.locals 4
|
|
|
|
.annotation build Landroidx/annotation/CallSuper;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->getGuildJoinInvite()Lcom/google/android/material/textfield/TextInputLayout;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/guilds/join/WidgetGuildJoin$onViewBound$1;
|
|
|
|
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin$onViewBound$1;-><init>(Lcom/discord/widgets/guilds/join/WidgetGuildJoin;)V
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {p1, v1, v2, v3, v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setOnImeActionDone$default(Lcom/google/android/material/textfield/TextInputLayout;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlin/Unit;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin;->getGuildJoinButton()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/join/WidgetGuildJoin$onViewBound$2;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/join/WidgetGuildJoin$onViewBound$2;-><init>(Lcom/discord/widgets/guilds/join/WidgetGuildJoin;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-20 19:00:44 +00:00
|
|
|
const-string/jumbo p1, "view"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|