2020-03-27 22:23:51 +00:00
|
|
|
.class public final Lcom/discord/widgets/friends/WidgetFriendsAddById;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetFriendsAddById.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;
|
|
|
|
|
|
|
|
.field public static final PATTERN_USERNAME:Lkotlin/text/Regex;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final friendsAddContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final inputEditText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final inputEditTextWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final send$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v0, 0x4
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v1, Ly/u/b/u;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/friends/WidgetFriendsAddById;
|
|
|
|
|
|
|
|
invoke-static {v2}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "friendsAddContainer"
|
|
|
|
|
|
|
|
const-string v4, "getFriendsAddContainer()Landroid/widget/LinearLayout;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v2, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/friends/WidgetFriendsAddById;
|
|
|
|
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "inputEditTextWrap"
|
|
|
|
|
|
|
|
const-string v5, "getInputEditTextWrap()Lcom/google/android/material/textfield/TextInputLayout;"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/friends/WidgetFriendsAddById;
|
|
|
|
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "inputEditText"
|
|
|
|
|
|
|
|
const-string v5, "getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/friends/WidgetFriendsAddById;
|
|
|
|
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "send"
|
|
|
|
|
|
|
|
const-string v5, "getSend()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->Companion:Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;
|
|
|
|
|
|
|
|
new-instance v0, Lkotlin/text/Regex;
|
|
|
|
|
|
|
|
const-string v1, "^(.*)#(\\d{4})$"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->PATTERN_USERNAME:Lkotlin/text/Regex;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
const v0, 0x7f0a0346
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->friendsAddContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
const v0, 0x7f0a0349
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->inputEditTextWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
const v0, 0x7f0a0348
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->inputEditText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
const v0, 0x7f0a0347
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->send$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$extractTargetAndSendFriendRequest(Lcom/discord/widgets/friends/WidgetFriendsAddById;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->extractTargetAndSendFriendRequest()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getInputEditText$p(Lcom/discord/widgets/friends/WidgetFriendsAddById;)Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getInputEditTextWrap$p(Lcom/discord/widgets/friends/WidgetFriendsAddById;)Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditTextWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getPATTERN_USERNAME$cp()Lkotlin/text/Regex;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->PATTERN_USERNAME:Lkotlin/text/Regex;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getSend$p(Lcom/discord/widgets/friends/WidgetFriendsAddById;)Landroid/widget/TextView;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getSend()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setInputEditError(Lcom/discord/widgets/friends/WidgetFriendsAddById;Ljava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->setInputEditError(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final extractTargetAndSendFriendRequest()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->Companion:Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatEditText;->getText()Landroid/text/Editable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v1, ""
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;->access$extractUsernameAndDiscriminator(Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion;Ljava/lang/CharSequence;)Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion$UserNameDiscriminator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion$UserNameDiscriminator;->getDiscriminator()Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion$UserNameDiscriminator;->getUsername()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion$UserNameDiscriminator;->getDiscriminator()Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v1, v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->sendFriendRequest(Ljava/lang/String;I)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-03-31 00:13:51 +00:00
|
|
|
const v1, 0x7f12008f
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$Companion$UserNameDiscriminator;->getUsername()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1, v2}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->setInputEditError(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
|
|
|
|
const-string v1, "Invalid Username"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/analytics/AnalyticsTracker;->friendRequestFailed(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getFriendsAddContainer()Landroid/widget/LinearLayout;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->friendsAddContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsAddById;->$$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
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/LinearLayout;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->inputEditText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsAddById;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
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, Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getInputEditTextWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->inputEditTextWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsAddById;->$$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, Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getSend()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsAddById;->send$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsAddById;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
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/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final sendFriendRequest(Ljava/lang/String;I)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Search - Add Friend Search"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, p1, p2}, Lcom/discord/utilities/rest/RestAPI;->sendRelationshipRequest(Ljava/lang/String;Ljava/lang/String;I)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
invoke-static {v0, p0, v1, v2, v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsAddById$sendFriendRequest$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsAddById$sendFriendRequest$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsAddById;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getAppActivity()Lcom/discord/app/AppActivity;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/widgets/friends/WidgetFriendsAddById$sendFriendRequest$2;
|
|
|
|
|
|
|
|
invoke-direct {v3, p0, p1, p2}, Lcom/discord/widgets/friends/WidgetFriendsAddById$sendFriendRequest$2;-><init>(Lcom/discord/widgets/friends/WidgetFriendsAddById;Ljava/lang/String;I)V
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3}, Le/a/b/l;->a(Lrx/functions/Action1;Landroid/content/Context;Lrx/functions/Action1;)Lrx/Observable$c;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final setInputEditError(Ljava/lang/String;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditTextWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/textfield/TextInputLayout;->setError(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditTextWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
invoke-static {p1}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
xor-int/2addr p1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/textfield/TextInputLayout;->setErrorEnabled(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
.method private final setInputText(Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
invoke-static {p1}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/EditText;->setSelection(I)V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const v0, 0x7f0d018b
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
.method public hideKeyboard(Landroid/view/View;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->hideKeyboard(Landroid/view/View;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/widget/EditText;->clearFocus()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onPause()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onPause()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-static {p0, v0, v1, v0}, Lcom/discord/app/AppFragment;->hideKeyboard$default(Lcom/discord/app/AppFragment;Landroid/view/View;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onResume()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onResume()V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
|
|
|
|
const-string v1, "Id"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/analytics/AnalyticsTracker;->friendAddViewed(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
2020-03-31 00:13:51 +00:00
|
|
|
.locals 2
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getSend()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$1;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsAddById;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$2;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$2;-><init>(Lcom/discord/widgets/friends/WidgetFriendsAddById;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-static {p1, p0, v1}, Lcom/discord/utilities/view/text/TextWatcherKt;->addBindedTextWatcher(Landroid/widget/TextView;Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function1;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getInputEditText()Lcom/google/android/material/textfield/TextInputEditText;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$3;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$3;-><init>(Lcom/discord/widgets/friends/WidgetFriendsAddById;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->getFriendsAddContainer()Landroid/widget/LinearLayout;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$4;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/friends/WidgetFriendsAddById$onViewBound$4;-><init>(Lcom/discord/widgets/friends/WidgetFriendsAddById;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
move-result-object p1
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
move-result-object p1
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
const-string v0, "android.intent.extra.TEXT"
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/friends/WidgetFriendsAddById;->setInputText(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
:cond_1
|
|
|
|
const-string p1, "view"
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
throw v0
|
2020-03-27 22:23:51 +00:00
|
|
|
.end method
|