1570 lines
54 KiB
Smali
1570 lines
54 KiB
Smali
|
.class public final Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
.super Lcom/discord/app/AppFragment;
|
||
|
.source "WidgetGuildInviteShareCompact.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public adapter:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
.field public final backgroundTint$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final bottomSheet$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public bottomSheetBehavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
|
||
|
"Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field public final emptyResults$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final guildInviteExpirationTv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public hasTrackedSuggestionsViewed:Z
|
||
|
|
||
|
.field public final inviteSettingsBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final searchBack$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final searchClear$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final searchInput$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final shareBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final suggestionRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final suggestionsFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 6
|
||
|
|
||
|
const/16 v0, 0xb
|
||
|
|
||
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
||
|
|
||
|
new-instance v1, Ly/v/b/u;
|
||
|
|
||
|
const-class v2, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v2}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "searchBack"
|
||
|
|
||
|
const-string v4, "getSearchBack()Landroid/widget/ImageView;"
|
||
|
|
||
|
invoke-direct {v1, v2, v3, v4}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v2, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v2, v1}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "searchInput"
|
||
|
|
||
|
const-string v5, "getSearchInput()Landroid/widget/EditText;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "searchClear"
|
||
|
|
||
|
const-string v5, "getSearchClear()Landroid/widget/ImageView;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "suggestionsFlipper"
|
||
|
|
||
|
const-string v5, "getSuggestionsFlipper()Lcom/discord/app/AppViewFlipper;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "suggestionRv"
|
||
|
|
||
|
const-string v5, "getSuggestionRv()Landroidx/recyclerview/widget/RecyclerView;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x5
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "emptyResults"
|
||
|
|
||
|
const-string v5, "getEmptyResults()Landroid/view/View;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x6
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "shareBtn"
|
||
|
|
||
|
const-string v5, "getShareBtn()Landroid/widget/Button;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x7
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "inviteSettingsBtn"
|
||
|
|
||
|
const-string v5, "getInviteSettingsBtn()Landroid/view/View;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0x8
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "guildInviteExpirationTv"
|
||
|
|
||
|
const-string v5, "getGuildInviteExpirationTv()Landroid/view/View;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0x9
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "backgroundTint"
|
||
|
|
||
|
const-string v5, "getBackgroundTint()Landroid/view/View;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0xa
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "bottomSheet"
|
||
|
|
||
|
const-string v5, "getBottomSheet()Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
sput-object v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
||
|
|
||
|
const v0, 0x7f0a072f
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->searchBack$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a0739
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->searchInput$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a0733
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->searchClear$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a03d3
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->suggestionsFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a03d2
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->suggestionRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a03c4
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->emptyResults$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a03d0
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->shareBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a03cf
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->inviteSettingsBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a03ce
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->guildInviteExpirationTv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a011c
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->backgroundTint$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a0497
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->bottomSheet$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->configureUI(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getBackgroundTint$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)Landroid/view/View;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getBackgroundTint()Landroid/view/View;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getBottomSheetBehavior$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->bottomSheetBehavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
const-string p0, "bottomSheetBehavior"
|
||
|
|
||
|
invoke-static {p0}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getSearchClear$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)Landroid/widget/ImageView;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSearchClear()Landroid/widget/ImageView;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getSearchInput$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)Landroid/widget/EditText;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSearchInput()Landroid/widget/EditText;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
const-string p0, "viewModel"
|
||
|
|
||
|
invoke-static {p0}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$sendInvite(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->sendInvite(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$setBottomSheetBehavior$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->bottomSheetBehavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final configureUI(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;)V
|
||
|
.locals 14
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;->getWidgetInviteModel()Lcom/discord/widgets/guilds/invite/WidgetInviteModel;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;->getInviteSuggestionItems()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/invite/WidgetInviteModel;->getInvite()Lcom/discord/models/domain/ModelInvite;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSuggestionsFlipper()Lcom/discord/app/AppViewFlipper;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
xor-int/2addr v4, v5
|
||
|
|
||
|
invoke-virtual {v3, v4}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
if-ne v3, v5, :cond_0
|
||
|
|
||
|
invoke-static {v1}, Ly/q/m;->firstOrNull(Ljava/util/List;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
instance-of v3, v3, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$SearchNoResultsItem;
|
||
|
|
||
|
if-eqz v3, :cond_0
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
if-nez v3, :cond_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
move-object v1, v6
|
||
|
|
||
|
:goto_1
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
sget-object v1, Ly/q/p;->d:Ly/q/p;
|
||
|
|
||
|
:goto_2
|
||
|
invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
xor-int/2addr v3, v5
|
||
|
|
||
|
if-eqz v3, :cond_a
|
||
|
|
||
|
iget-boolean v3, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->hasTrackedSuggestionsViewed:Z
|
||
|
|
||
|
if-nez v3, :cond_a
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/invite/WidgetInviteModel;->getInvite()Lcom/discord/models/domain/ModelInvite;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelInvite;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
||
|
|
||
|
move-result-wide v7
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const-wide/16 v7, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
||
|
|
||
|
new-instance v3, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
:cond_4
|
||
|
:goto_4
|
||
|
invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_5
|
||
|
|
||
|
invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
instance-of v11, v10, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$Channel;
|
||
|
|
||
|
if-eqz v11, :cond_4
|
||
|
|
||
|
invoke-interface {v3, v10}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_5
|
||
|
new-instance v9, Ljava/util/ArrayList;
|
||
|
|
||
|
const/16 v10, 0xa
|
||
|
|
||
|
invoke-static {v3, v10}, Lf/o/a/j/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
invoke-direct {v9, v11}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
:goto_5
|
||
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
if-eqz v11, :cond_6
|
||
|
|
||
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v11
|
||
|
|
||
|
check-cast v11, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$Channel;
|
||
|
|
||
|
invoke-virtual {v11}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$Channel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
move-result-object v11
|
||
|
|
||
|
invoke-interface {v9, v11}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_6
|
||
|
new-instance v3, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v11
|
||
|
|
||
|
:cond_7
|
||
|
:goto_6
|
||
|
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
if-eqz v12, :cond_8
|
||
|
|
||
|
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v12
|
||
|
|
||
|
instance-of v13, v12, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$User;
|
||
|
|
||
|
if-eqz v13, :cond_7
|
||
|
|
||
|
invoke-interface {v3, v12}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:cond_8
|
||
|
new-instance v11, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-static {v3, v10}, Lf/o/a/j/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
invoke-direct {v11, v10}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
:goto_7
|
||
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_9
|
||
|
|
||
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
check-cast v10, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$User;
|
||
|
|
||
|
invoke-virtual {v10}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$User;->getUser()Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
invoke-interface {v11, v10}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:cond_9
|
||
|
invoke-virtual {v0, v7, v8, v9, v11}, Lcom/discord/utilities/analytics/AnalyticsTracker;->inviteSuggestionOpened(JLjava/util/List;Ljava/util/List;)V
|
||
|
|
||
|
iput-boolean v5, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->hasTrackedSuggestionsViewed:Z
|
||
|
|
||
|
:cond_a
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getEmptyResults()Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const/16 v7, 0x8
|
||
|
|
||
|
if-eqz v3, :cond_b
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
goto :goto_8
|
||
|
|
||
|
:cond_b
|
||
|
const/16 v3, 0x8
|
||
|
|
||
|
:goto_8
|
||
|
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSuggestionRv()Landroidx/recyclerview/widget/RecyclerView;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
xor-int/2addr v3, v5
|
||
|
|
||
|
if-eqz v3, :cond_c
|
||
|
|
||
|
goto :goto_9
|
||
|
|
||
|
:cond_c
|
||
|
const/16 v4, 0x8
|
||
|
|
||
|
:goto_9
|
||
|
invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->adapter:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
const-string v3, "adapter"
|
||
|
|
||
|
if-eqz v0, :cond_e
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->adapter:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
if-eqz v0, :cond_d
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$configureUI$3;
|
||
|
|
||
|
invoke-direct {v1, p0, p1, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$configureUI$3;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;->setOnClick(Lkotlin/jvm/functions/Function1;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getBottomSheet()Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;->getWidgetInviteModel()Lcom/discord/widgets/guilds/invite/WidgetInviteModel;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;->configureUi(Lcom/discord/widgets/guilds/invite/WidgetInviteModel;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getShareBtn()Landroid/widget/Button;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getInviteLink(Lcom/discord/models/domain/ModelInvite;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getShareBtn()Landroid/widget/Button;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$configureUI$4;
|
||
|
|
||
|
invoke-direct {v0, p0, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$configureUI$4;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_d
|
||
|
invoke-static {v3}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v6
|
||
|
|
||
|
:cond_e
|
||
|
invoke-static {v3}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v6
|
||
|
.end method
|
||
|
|
||
|
.method private final getBackgroundTint()Landroid/view/View;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->backgroundTint$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/16 v2, 0x9
|
||
|
|
||
|
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/view/View;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getBottomSheet()Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->bottomSheet$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/16 v2, 0xa
|
||
|
|
||
|
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/discord/widgets/guilds/invite/ViewInviteSettingsSheet;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getEmptyResults()Landroid/view/View;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->emptyResults$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/4 v2, 0x5
|
||
|
|
||
|
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/view/View;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getGuildInviteExpirationTv()Landroid/view/View;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->guildInviteExpirationTv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/16 v2, 0x8
|
||
|
|
||
|
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/view/View;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getInviteLink(Lcom/discord/models/domain/ModelInvite;)Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
const-string v0, "https://discord.gg"
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p1, v1, v0}, Lcom/discord/models/domain/ModelInvite;->toLink(Landroid/content/res/Resources;Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getInviteSettingsBtn()Landroid/view/View;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->inviteSettingsBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/4 v2, 0x7
|
||
|
|
||
|
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/view/View;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getSearchBack()Landroid/widget/ImageView;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->searchBack$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$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/ImageView;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getSearchClear()Landroid/widget/ImageView;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->searchClear$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$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, Landroid/widget/ImageView;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getSearchInput()Landroid/widget/EditText;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->searchInput$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$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/EditText;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getShareBtn()Landroid/widget/Button;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->shareBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/4 v2, 0x6
|
||
|
|
||
|
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
|
||
|
|
||
|
.method private final getSuggestionRv()Landroidx/recyclerview/widget/RecyclerView;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->suggestionRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/4 v2, 0x4
|
||
|
|
||
|
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, Landroidx/recyclerview/widget/RecyclerView;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getSuggestionsFlipper()Lcom/discord/app/AppViewFlipper;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->suggestionsFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->$$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, Lcom/discord/app/AppViewFlipper;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final initBottomSheet(Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;)V
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$initBottomSheet$1;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$initBottomSheet$1;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;->setOnGenerateLinkListener(Lkotlin/jvm/functions/Function0;)V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;->setViewModel(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const-string p1, "viewModel"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method private final initBottomSheetBehavior(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
|
||
|
"Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x5
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setState(I)V
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$initBottomSheetBehavior$1;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$initBottomSheetBehavior$1;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->addBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final sendInvite(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem;Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
.locals 3
|
||
|
|
||
|
instance-of v0, p1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$Channel;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const-string v2, "viewModel"
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
check-cast p1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$Channel;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$Channel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
invoke-virtual {v0, v1, v2, p2, p3}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;->sendInviteToChannel(JLcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {v2}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:cond_1
|
||
|
instance-of v0, p1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$User;
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
check-cast p1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$User;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$InviteSuggestionItem$User;->getUser()Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
invoke-virtual {v0, v1, v2, p2, p3}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;->sendInviteToUser(JLcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelInvite;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-static {v2}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:cond_3
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public getContentViewResId()I
|
||
|
.locals 1
|
||
|
|
||
|
const v0, 0x7f0d01b6
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onViewBound(Landroid/view/View;)V
|
||
|
.locals 11
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-eqz p1, :cond_4
|
||
|
|
||
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
||
|
|
||
|
sget-object p1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSuggestionRv()Landroidx/recyclerview/widget/RecyclerView;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-direct {v1, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
||
|
|
||
|
invoke-virtual {p1, v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->adapter:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModelFactory;
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "resources"
|
||
|
|
||
|
invoke-static {v2, v3}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-direct {v1, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModelFactory;-><init>(Landroid/content/res/Resources;)V
|
||
|
|
||
|
invoke-static {p1, v1}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/FragmentActivity;Landroidx/lifecycle/ViewModelProvider$Factory;)Landroidx/lifecycle/ViewModelProvider;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v1, "ViewModelProviders.of(\n \u2026areViewModel::class.java)"
|
||
|
|
||
|
invoke-static {p1, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const-string v2, "INTENT_IS_NUX_FLOW"
|
||
|
|
||
|
invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-wide/16 v3, 0x0
|
||
|
|
||
|
const-string v5, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
||
|
|
||
|
invoke-virtual {v2, v5, v3, v4}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
||
|
|
||
|
move-result-wide v5
|
||
|
|
||
|
cmp-long v2, v5, v3
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-virtual {v2, v5, v6}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;->selectChannel(J)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const-string p1, "viewModel"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const-string v2, "requireContext()"
|
||
|
|
||
|
const/4 v3, 0x2
|
||
|
|
||
|
if-eqz p1, :cond_2
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const v5, 0x7f040231
|
||
|
|
||
|
invoke-static {v4, v5, v1, v3, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
move-object v7, v4
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
move-object v7, v0
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v6, 0x1
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v9, 0x4
|
||
|
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
move-object v5, p0
|
||
|
|
||
|
invoke-static/range {v5 .. v10}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
||
|
|
||
|
const v4, 0x7f120c3b
|
||
|
|
||
|
invoke-virtual {p0, v4}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
||
|
|
||
|
new-instance v4, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$1;
|
||
|
|
||
|
invoke-direct {v4, p0, p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$1;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;Z)V
|
||
|
|
||
|
invoke-static {p0, v4, v1, v3, v0}, Lcom/discord/app/AppFragment;->setOnBackPressed$default(Lcom/discord/app/AppFragment;Lrx/functions/Func0;IILjava/lang/Object;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSearchBack()Landroid/widget/ImageView;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const v2, 0x7f0404d2
|
||
|
|
||
|
invoke-static {v4, v2, v1, v3, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSearchInput()Landroid/widget/EditText;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$2;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$2;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-static {p1, p0, v1}, Lcom/discord/utilities/view/text/TextWatcherKt;->addBindedTextWatcher(Landroid/widget/TextView;Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function1;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getSearchClear()Landroid/widget/ImageView;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$3;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$3;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getBottomSheet()Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->from(Landroid/view/View;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v1, "BottomSheetBehavior.from(bottomSheet)"
|
||
|
|
||
|
invoke-static {p1, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->bottomSheetBehavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->bottomSheetBehavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
||
|
|
||
|
if-eqz p1, :cond_3
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->initBottomSheetBehavior(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getBottomSheet()Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->initBottomSheet(Lcom/discord/widgets/guilds/invite/ViewInviteSettingsSheet;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getGuildInviteExpirationTv()Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$4;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$4;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getInviteSettingsBtn()Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$5;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$5;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->getBackgroundTint()Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$6;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBound$6;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_3
|
||
|
const-string p1, "bottomSheetBehavior"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_4
|
||
|
const-string p1, "view"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public onViewBoundOrOnResume()V
|
||
|
.locals 12
|
||
|
|
||
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->viewModel:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareViewModel;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-virtual {v0}, Lf/a/b/b0;->observeViewState()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationBuffered(Lrx/Observable;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget-object v2, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBoundOrOnResume$$inlined$filterIs$1;->INSTANCE:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBoundOrOnResume$$inlined$filterIs$1;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Lrx/Observable;->c(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget-object v2, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBoundOrOnResume$$inlined$filterIs$2;->INSTANCE:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBoundOrOnResume$$inlined$filterIs$2;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v2, "filter { it is T }.map { it as T }"
|
||
|
|
||
|
invoke-static {v0, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;->adapter:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$PrivateChannelAdapter;
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-static {v0, p0, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-class v4, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
new-instance v9, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBoundOrOnResume$1;
|
||
|
|
||
|
invoke-direct {v9, p0}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShareCompact;)V
|
||
|
|
||
|
const/16 v10, 0x1e
|
||
|
|
||
|
const/4 v11, 0x0
|
||
|
|
||
|
invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const-string v0, "adapter"
|
||
|
|
||
|
invoke-static {v0}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:cond_1
|
||
|
const-string v0, "viewModel"
|
||
|
|
||
|
invoke-static {v0}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v1
|
||
|
.end method
|