2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetGuildsList.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$InteractionListener;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-19 22:21:18 +00:00
|
|
|
.field public final bottomNavViewObserver:Lcom/discord/widgets/tabs/BottomNavViewObserver;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public guildListAddHint:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public guildListUnreads:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final unreadsStub$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2019-08-30 20:04:20 +00:00
|
|
|
.locals 6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
new-instance v1, Lx/u/b/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v2, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v2}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v3, "recyclerView"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v4, "getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
sget-object v2, Lx/u/b/w;->a:Lx/u/b/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-virtual {v2, v1}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aput-object v1, v0, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
new-instance v2, Lx/u/b/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v3, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v3}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v4, "unreadsStub"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v5, "getUnreadsStub()Landroid/view/ViewStub;"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
sget-object v3, Lx/u/b/w;->a:Lx/u/b/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-virtual {v3, v2}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aput-object v2, v0, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sput-object v0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-05-07 21:13:23 +00:00
|
|
|
const v0, 0x7f0a03d8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-07 21:13:23 +00:00
|
|
|
invoke-static {p0, v0}, Le/n/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-05-07 21:13:23 +00:00
|
|
|
const v0, 0x7f0a03da
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-07 21:13:23 +00:00
|
|
|
invoke-static {p0, v0}, Le/n/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->unreadsStub$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-19 22:21:18 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/tabs/BottomNavViewObserver;->Companion:Lcom/discord/widgets/tabs/BottomNavViewObserver$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/tabs/BottomNavViewObserver$Companion;->getINSTANCE()Lcom/discord/widgets/tabs/BottomNavViewObserver;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->bottomNavViewObserver:Lcom/discord/widgets/tabs/BottomNavViewObserver;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureAddGuildHint(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->configureAddGuildHint(Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->configureUI(Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$dismissAddGuildHint(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Z)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->dismissAddGuildHint(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getAdapter$p(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-object p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string p0, "adapter"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
throw p0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getGuildListAddHint$p(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)Landroid/view/View;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public static final synthetic access$getUnreadsStub$p(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)Landroid/view/ViewStub;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getUnreadsStub()Landroid/view/ViewStub;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method public static final synthetic access$handleEvent(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->handleEvent(Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setAdapter$p(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setGuildListAddHint$p(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Landroid/view/View;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureAddGuildHint(Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;)V
|
2019-07-30 19:19:37 +00:00
|
|
|
.locals 7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;->isAddGuildHint()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNux()Lcom/discord/stores/StoreNux;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/list/WidgetGuildsList$configureAddGuildHint$1;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsList$configureAddGuildHint$1;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreNux;->updateNux(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;->isEligible()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/analytics/AnalyticsTracker;->showFirstServerTipTutorial()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
const-wide/16 v1, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
const/4 v3, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
const/4 v5, 0x7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
const/4 v6, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeIn$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-19 22:21:18 +00:00
|
|
|
.method private final configureBottomNavSpace()V
|
|
|
|
.locals 12
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->bottomNavViewObserver:Lcom/discord/widgets/tabs/BottomNavViewObserver;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/tabs/BottomNavViewObserver;->observeHeight()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 v3
|
|
|
|
|
|
|
|
const-class v4, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
|
|
|
|
|
|
|
new-instance v9, Lcom/discord/widgets/guilds/list/WidgetGuildsList$configureBottomNavSpace$1;
|
|
|
|
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$configureBottomNavSpace$1;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
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
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method private final configureUI(Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
instance-of v0, p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState$Loaded;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
check-cast p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState$Loaded;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState$Loaded;->getItems()Ljava/util/List;
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState$Loaded;->getWasDragResult()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
xor-int/lit8 v2, v2, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;->setItems(Ljava/util/List;Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListUnreads:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState$Loaded;->getItems()Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->onDatasetChanged(Ljava/util/List;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$ViewState$Loaded;->getHasChannels()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez p1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->dismissAddGuildHint(Z)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string p1, "adapter"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final dismissAddGuildHint(Z)V
|
|
|
|
.locals 6
|
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
if-eqz p1, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x3
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeOut$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-30 19:19:37 +00:00
|
|
|
sget-object p1, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
const/4 v0, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/analytics/AnalyticsTracker;->closeFirstServerTipTutorial(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-07-30 19:19:37 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListAddHint:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
const/16 v0, 0x8
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
:cond_2
|
|
|
|
sget-object p1, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-30 19:19:37 +00:00
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/analytics/AnalyticsTracker;->closeFirstServerTipTutorial(Z)V
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->$$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, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUnreadsStub()Landroid/view/ViewStub;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->unreadsStub$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->$$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/view/ViewStub;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final handleEvent(Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowChannelActions;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowChannelActions;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowChannelActions;->getChannelId()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->showChannelActions(J)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowUnavailableGuilds;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowUnavailableGuilds;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowUnavailableGuilds;->getUnavailableGuildCount()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->showUnavailableGuildsToast(I)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowCreateGuild;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowCreateGuild;
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-31 00:34:35 +00:00
|
|
|
move-result v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-31 00:34:35 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->showCreateGuild()V
|
|
|
|
|
2020-01-31 00:34:35 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
:cond_2
|
2020-01-31 00:34:35 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowHelp;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Event$ShowHelp;
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-01-31 00:34:35 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->showHelp()V
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final setupRecycler()V
|
2020-01-10 03:40:06 +00:00
|
|
|
.locals 12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v1, v0, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;-><init>(Landroidx/recyclerview/widget/LinearLayoutManager;Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$InteractionListener;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
const-string v4, "adapter"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
const/4 v5, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->setHasStableIds(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-virtual {v1, v5}, Landroidx/recyclerview/widget/RecyclerView;->setItemAnimator(Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/recyclerview/widget/ItemTouchHelper;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/guilds/list/GuildsDragAndDropCallback;
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Lcom/discord/widgets/guilds/list/GuildsDragAndDropCallback;-><init>(Lcom/discord/widgets/guilds/list/GuildsDragAndDropCallback$Controller;)V
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Landroidx/recyclerview/widget/ItemTouchHelper;-><init>(Landroidx/recyclerview/widget/ItemTouchHelper$Callback;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/ItemTouchHelper;->attachToRecyclerView(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/guilds/list/FolderItemDecoration;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v6, "requireContext()"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v4, v6}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
const v7, 0x7f040071
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
const/4 v8, 0x2
|
|
|
|
|
|
|
|
invoke-static {v4, v7, v3, v8, v5}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-static {v2, v4}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
const-string v4, "ContextCompat.getDrawabl\u2026children)\n )!!"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v2, v4}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
move-result-object v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v9, v6}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
const v10, 0x7f040072
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-static {v9, v10, v3, v8, v5}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
move-result v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-static {v7, v9}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v7, v4}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
move-result-object v9
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
move-result-object v10
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v10, v6}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
const v11, 0x7f040073
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-static {v10, v11, v3, v8, v5}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v9, v3}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v3, v4}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v4, v6}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
2019-07-25 02:21:43 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-02-20 23:34:33 +00:00
|
|
|
const v5, 0x7f070058
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-direct {v1, v2, v7, v3, v4}, Lcom/discord/widgets/guilds/list/FolderItemDecoration;-><init>(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {}, Lx/u/b/j;->throwNpe()V
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
throw v5
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {}, Lx/u/b/j;->throwNpe()V
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
throw v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {}, Lx/u/b/j;->throwNpe()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
throw v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_3
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v4}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
throw v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_4
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v4}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
throw v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v4}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
throw v5
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final showChannelActions(J)V
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/channels/list/WidgetChannelsListItemChannelActions;->Companion:Lcom/discord/widgets/channels/list/WidgetChannelsListItemChannelActions$Companion;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
const-string v2, "requireFragmentManager()"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v0, v1, p1, p2}, Lcom/discord/widgets/channels/list/WidgetChannelsListItemChannelActions$Companion;->show(Landroidx/fragment/app/FragmentManager;J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final showCreateGuild()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->dismissAddGuildHint(Z)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/actions/WidgetGuildActionsAdd;->Companion:Lcom/discord/widgets/guilds/actions/WidgetGuildActionsAdd$Companion;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "requireFragmentManager()"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-12 20:59:48 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/guilds/actions/WidgetGuildActionsAdd$Companion;->show(Landroidx/fragment/app/FragmentManager;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-01-31 00:34:35 +00:00
|
|
|
.method private final showHelp()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->dismissAddGuildHint(Z)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->Companion:Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "requireFragmentManager()"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-31 00:34:35 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;->show(Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method private final showUnavailableGuildsToast(I)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const-string v1, "resources"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v1
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const-string v2, "requireContext()"
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v2, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
|
2020-05-07 21:13:23 +00:00
|
|
|
const v3, 0x7f1000b0
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v0, v1, v3, p1, v2}, Lcom/discord/utilities/resources/StringResourceUtilsKt;->getQuantityString(Landroid/content/res/Resources;Landroid/content/Context;II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/textprocessing/Parsers;->parseBoldMarkdown(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/16 v2, 0xc
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v0, p1, v4, v1, v2}, Le/a/b/j;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getContentViewResId()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
const v0, 0x7f0d01c4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onDrop()Z
|
|
|
|
.locals 1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->onDrop()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "viewModel"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onItemClicked(Landroid/view/View;Lcom/discord/widgets/guilds/list/GuildListItem;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p2, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->onItemClicked(Lcom/discord/widgets/guilds/list/GuildListItem;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string p1, "viewModel"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "item"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onItemLongPressed(Landroid/view/View;Lcom/discord/widgets/guilds/list/GuildListItem;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p2, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->onItemLongPressed(Lcom/discord/widgets/guilds/list/GuildListItem;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string p1, "viewModel"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
|
|
|
const-string p1, "item"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
|
|
|
const-string p1, "view"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
|
|
|
.end method
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onOperation(Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation;)V
|
|
|
|
.locals 3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
|
|
|
|
instance-of v1, p1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveAbove;
|
|
|
|
|
|
|
|
const-string v2, "viewModel"
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveAbove;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveAbove;->getFromPosition()I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveAbove;->getTargetPosition()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->moveAbove(II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
|
|
|
instance-of v1, p1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveBelow;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveBelow;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveBelow;->getFromPosition()I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$MoveBelow;->getTargetPosition()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->moveBelow(II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_3
|
|
|
|
instance-of v1, p1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$TargetOperation;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$TargetOperation;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$TargetOperation;->getFromPosition()I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/guilds/list/WidgetGuildListAdapter$Operation$TargetOperation;->getTargetPosition()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->target(II)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_5
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_6
|
|
|
|
const-string p1, "operation"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
|
|
|
.end method
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onResume()V
|
|
|
|
.locals 12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onResume()V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;-><init>(Lcom/discord/utilities/time/Clock;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {p0, v0}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/Fragment;Landroidx/lifecycle/ViewModelProvider$Factory;)Landroidx/lifecycle/ViewModelProvider;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-class v1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const-string v1, "ViewModelProviders\n \u2026istViewModel::class.java)"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
const-string v1, "viewModel"
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-virtual {v0}, Le/a/b/b0;->observeViewState()Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v4, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v5, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v6, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v9, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$1;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/16 v10, 0x1e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v11, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->viewModel:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;->listenForEvents()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v4, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v5, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v6, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v7, 0x0
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v8, 0x0
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v9, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$2;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$2;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/16 v10, 0x1e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v11, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;->Companion:Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint$Companion;->get()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v1, 0x2
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v4, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v9, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$3;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$3;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint;->Companion:Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$AddGuildHint$Companion;->getDismissAction()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v4, Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v9, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$4;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onResume$4;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-19 22:21:18 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->configureBottomNavSpace()V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v2
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 11
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->setupRecycler()V
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getUnreadsStub()Landroid/view/ViewStub;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v5, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onViewBound$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v5, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onViewBound$1;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/16 v9, 0x74
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v10}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;-><init>(Landroid/view/ViewStub;Landroidx/recyclerview/widget/RecyclerView;Lcom/google/android/material/appbar/AppBarLayout;Lkotlin/jvm/functions/Function0;IIZILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListUnreads:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListUnreads:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const v1, 0x7f120002
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1, v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->setMentionResId(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->guildListUnreads:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1, v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->setUnreadsEnabled(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
instance-of v1, p1, Lcom/discord/widgets/main/WidgetHome;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-object p1, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-03-27 22:23:51 +00:00
|
|
|
check-cast p1, Lcom/discord/widgets/main/WidgetHome;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onViewBound$2;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$onViewBound$2;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)V
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/main/WidgetHome;->setOnGuildListAddHintCreate(Lkotlin/jvm/functions/Function1;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|