apkfuckery/com.discord/smali_classes2/com/discord/widgets/user/WidgetUserMentions.smali

661 lines
22 KiB
Smali

.class public final Lcom/discord/widgets/user/WidgetUserMentions;
.super Lcom/discord/app/AppFragment;
.source "WidgetUserMentions.kt"
# interfaces
.implements Lcom/discord/widgets/tabs/OnTabSelectedListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/user/WidgetUserMentions$WidgetUserMentionFilter;,
Lcom/discord/widgets/user/WidgetUserMentions$Model;
}
.end annotation
# static fields
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
# instance fields
.field public mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
.field public final mentionsList$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
.field public final storeTabsNavigation:Lcom/discord/stores/StoreTabsNavigation;
.field public final toolbarTitle$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public viewModel:Lcom/discord/widgets/user/WidgetUserMentionsViewModel;
# direct methods
.method public static constructor <clinit>()V
.locals 5
const/4 v0, 0x2
new-array v0, v0, [Lkotlin/reflect/KProperty;
const-class v1, Lcom/discord/widgets/user/WidgetUserMentions;
const-string v2, "toolbarTitle"
const-string v3, "getToolbarTitle()Landroid/widget/TextView;"
const/4 v4, 0x0
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s;
move-result-object v1
aput-object v1, v0, v4
const-class v1, Lcom/discord/widgets/user/WidgetUserMentions;
const-string v2, "mentionsList"
const-string v3, "getMentionsList()Landroidx/recyclerview/widget/RecyclerView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
sput-object v0, Lcom/discord/widgets/user/WidgetUserMentions;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
return-void
.end method
.method public constructor <init>()V
.locals 4
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
const v0, 0x7f0a0a75
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->toolbarTitle$delegate:Lkotlin/properties/ReadOnlyProperty;
const v0, 0x7f0a0ab3
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsList$delegate:Lkotlin/properties/ReadOnlyProperty;
new-instance v0, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
new-instance v1, Landroid/os/Handler;
invoke-direct {v1}, Landroid/os/Handler;-><init>()V
const-wide/16 v2, 0x3e8
invoke-direct {v0, v1, v2, v3}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;-><init>(Landroid/os/Handler;J)V
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getTabsNavigation()Lcom/discord/stores/StoreTabsNavigation;
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->storeTabsNavigation:Lcom/discord/stores/StoreTabsNavigation;
return-void
.end method
.method public static final synthetic access$configureUI(Lcom/discord/widgets/user/WidgetUserMentions;Lcom/discord/widgets/user/WidgetUserMentions$Model;)V
.locals 0
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserMentions;->configureUI(Lcom/discord/widgets/user/WidgetUserMentions$Model;)V
return-void
.end method
.method public static final synthetic access$getMentionsLoader$p(Lcom/discord/widgets/user/WidgetUserMentions;)Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
.locals 0
iget-object p0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
return-object p0
.end method
.method private final configureToolbar(Ljava/lang/String;)V
.locals 7
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->bindToolbar()Lkotlin/Unit;
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;->getFilters()Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;->getAllGuilds()Z
move-result v0
if-eqz v0, :cond_0
const v0, 0x7f1200e1
invoke-virtual {p0, v0}, Lcom/discord/app/AppFragment;->setActionBarSubtitle(I)Lkotlin/Unit;
goto :goto_0
:cond_0
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarSubtitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
:goto_0
const v2, 0x7f0e001b
new-instance v3, Lcom/discord/widgets/user/WidgetUserMentions$configureToolbar$1;
invoke-direct {v3, p0, p1}, Lcom/discord/widgets/user/WidgetUserMentions$configureToolbar$1;-><init>(Lcom/discord/widgets/user/WidgetUserMentions;Ljava/lang/String;)V
const/4 v4, 0x0
const/4 v5, 0x4
const/4 v6, 0x0
move-object v1, p0
invoke-static/range {v1 .. v6}, Lcom/discord/app/AppFragment;->setActionBarOptionsMenu$default(Lcom/discord/app/AppFragment;ILrx/functions/Action2;Lrx/functions/Action1;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
return-void
.end method
.method private final configureUI(Lcom/discord/widgets/user/WidgetUserMentions$Model;)V
.locals 11
invoke-virtual {p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model;->getGuildId()J
move-result-wide v0
const/4 v2, 0x1
const-wide/16 v3, 0x0
cmp-long v5, v0, v3
if-lez v5, :cond_0
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;->getFilters()Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;->getAllGuilds()Z
move-result v0
move v6, v0
goto :goto_0
:cond_0
const/4 v6, 0x1
:goto_0
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
if-eqz v0, :cond_1
invoke-virtual {v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;->setData(Lcom/discord/widgets/chat/list/WidgetChatListAdapter$Data;)V
:cond_1
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;->getFilters()Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;
move-result-object v3
invoke-virtual {p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model;->getGuildId()J
move-result-wide v4
const/4 v7, 0x0
const/4 v8, 0x0
const/16 v9, 0xc
const/4 v10, 0x0
invoke-static/range {v3 .. v10}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;->copy$default(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;JZZZILjava/lang/Object;)Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;->setFilters(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$Filters;)V
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
invoke-virtual {p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model;->getSelectedTab()Lcom/discord/widgets/tabs/NavigationTab;
move-result-object v1
sget-object v3, Lcom/discord/widgets/tabs/NavigationTab;->MENTIONS:Lcom/discord/widgets/tabs/NavigationTab;
if-ne v1, v3, :cond_2
goto :goto_1
:cond_2
const/4 v2, 0x0
:goto_1
invoke-virtual {v0, v2}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;->setIsFocused(Z)V
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserMentions;->isOnMentionsTab()Z
move-result v0
if-eqz v0, :cond_3
invoke-virtual {p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model;->getGuildName()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/widgets/user/WidgetUserMentions;->configureToolbar(Ljava/lang/String;)V
:cond_3
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->viewModel:Lcom/discord/widgets/user/WidgetUserMentionsViewModel;
if-eqz v0, :cond_4
invoke-virtual {v0, p1}, Lcom/discord/widgets/user/WidgetUserMentionsViewModel;->setModel$app_productionDiscordExternalRelease(Lcom/discord/widgets/user/WidgetUserMentions$Model;)V
return-void
:cond_4
const-string p1, "viewModel"
invoke-static {p1}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method private final createAdapter(Lkotlin/jvm/functions/Function1;)Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function1<",
"-",
"Lcom/discord/stores/StoreChat$InteractionState;",
"Lkotlin/Unit;",
">;)",
"Lcom/discord/widgets/chat/list/WidgetChatListAdapter;"
}
.end annotation
new-instance v6, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserMentions;->getMentionsList()Landroidx/recyclerview/widget/RecyclerView;
move-result-object v1
new-instance v2, Lcom/discord/widgets/user/WidgetUserMentions$createAdapter$1;
invoke-direct {v2, p1}, Lcom/discord/widgets/user/WidgetUserMentions$createAdapter$1;-><init>(Lkotlin/jvm/functions/Function1;)V
const/4 v3, 0x0
const/4 v4, 0x4
const/4 v5, 0x0
move-object v0, v6
invoke-direct/range {v0 .. v5}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;Lcom/discord/widgets/chat/list/WidgetChatListAdapter$EventHandler;Lcom/discord/utilities/time/Clock;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object v6
.end method
.method private final getMentionsList()Landroidx/recyclerview/widget/RecyclerView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsList$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/user/WidgetUserMentions;->$$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, Landroidx/recyclerview/widget/RecyclerView;
return-object v0
.end method
.method private final getToolbarTitle()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->toolbarTitle$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/user/WidgetUserMentions;->$$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/TextView;
return-object v0
.end method
.method private final isOnMentionsTab()Z
.locals 2
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->storeTabsNavigation:Lcom/discord/stores/StoreTabsNavigation;
invoke-virtual {v0}, Lcom/discord/stores/StoreTabsNavigation;->getSelectedTab()Lcom/discord/widgets/tabs/NavigationTab;
move-result-object v0
sget-object v1, Lcom/discord/widgets/tabs/NavigationTab;->MENTIONS:Lcom/discord/widgets/tabs/NavigationTab;
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method private final observeModel()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lcom/discord/widgets/user/WidgetUserMentions$Model;",
">;"
}
.end annotation
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getTabsNavigation()Lcom/discord/stores/StoreTabsNavigation;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreTabsNavigation;->observeSelectedTab()Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/discord/widgets/user/WidgetUserMentions$observeModel$1;
invoke-direct {v1, p0}, Lcom/discord/widgets/user/WidgetUserMentions$observeModel$1;-><init>(Lcom/discord/widgets/user/WidgetUserMentions;)V
invoke-virtual {v0, v1}, Lrx/Observable;->U(Ll0/k/b;)Lrx/Observable;
move-result-object v0
const-string v1, "StoreStream.getTabsNavig\u2026(1)\n }\n }"
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
# virtual methods
.method public getContentViewResId()I
.locals 1
const v0, 0x7f0d02b3
return v0
.end method
.method public onDestroy()V
.locals 1
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroy()V
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->dispose()V
:cond_0
return-void
.end method
.method public onPause()V
.locals 1
invoke-super {p0}, Lcom/discord/app/AppFragment;->onPause()V
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;->disposeHandlers()V
:cond_0
return-void
.end method
.method public onTabSelected()V
.locals 2
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->viewModel:Lcom/discord/widgets/user/WidgetUserMentionsViewModel;
if-eqz v0, :cond_1
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentionsViewModel;->getModel$app_productionDiscordExternalRelease()Lcom/discord/widgets/user/WidgetUserMentions$Model;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model;->getGuildName()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/widgets/user/WidgetUserMentions;->configureToolbar(Ljava/lang/String;)V
:cond_0
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserMentions;->getToolbarTitle()Landroid/widget/TextView;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/TextView;->sendAccessibilityEvent(I)V
return-void
:cond_1
const-string v0, "viewModel"
invoke-static {v0}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public onViewBound(Landroid/view/View;)V
.locals 2
const-string v0, "view"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
const p1, 0x7f12144c
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
sget-object p1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
new-instance v0, Lcom/discord/widgets/user/WidgetUserMentions$onViewBound$1;
iget-object v1, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
invoke-direct {v0, v1}, Lcom/discord/widgets/user/WidgetUserMentions$onViewBound$1;-><init>(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;)V
invoke-direct {p0, v0}, Lcom/discord/widgets/user/WidgetUserMentions;->createAdapter(Lkotlin/jvm/functions/Function1;)Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
move-result-object v0
invoke-virtual {p1, v0}, 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/chat/list/WidgetChatListAdapter;
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
if-eqz p1, :cond_0
invoke-virtual {p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;->getLayoutManager()Landroidx/recyclerview/widget/LinearLayoutManager;
move-result-object p1
if-eqz p1, :cond_0
const/4 v0, 0x1
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->setSmoothScrollbarEnabled(Z)V
:cond_0
iget-object p1, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
if-eqz p1, :cond_1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;->setMentionMeMessageLevelHighlighting(Z)V
:cond_1
new-instance p1, Landroidx/lifecycle/ViewModelProvider;
invoke-direct {p1, p0}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;)V
const-class v0, Lcom/discord/widgets/user/WidgetUserMentionsViewModel;
invoke-virtual {p1, v0}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
move-result-object p1
const-string v0, "ViewModelProvider(this).\u2026onsViewModel::class.java)"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lcom/discord/widgets/user/WidgetUserMentionsViewModel;
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMentions;->viewModel:Lcom/discord/widgets/user/WidgetUserMentionsViewModel;
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object p1
instance-of v0, p1, Lcom/discord/widgets/tabs/WidgetTabsHost;
if-nez v0, :cond_2
const/4 p1, 0x0
:cond_2
check-cast p1, Lcom/discord/widgets/tabs/WidgetTabsHost;
if-eqz p1, :cond_3
sget-object v0, Lcom/discord/widgets/tabs/NavigationTab;->MENTIONS:Lcom/discord/widgets/tabs/NavigationTab;
invoke-virtual {p1, v0, p0}, Lcom/discord/widgets/tabs/WidgetTabsHost;->registerTabSelectionListener(Lcom/discord/widgets/tabs/NavigationTab;Lcom/discord/widgets/tabs/OnTabSelectedListener;)V
:cond_3
return-void
.end method
.method public onViewBoundOrOnResume()V
.locals 12
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserMentions;->observeModel()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/user/WidgetUserMentions;
new-instance v9, Lcom/discord/widgets/user/WidgetUserMentions$onViewBoundOrOnResume$1;
invoke-direct {v9, p0}, Lcom/discord/widgets/user/WidgetUserMentions$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/user/WidgetUserMentions;)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
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsAdapter:Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter;->setHandlers()V
:cond_0
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMentions;->mentionsLoader:Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;
const/4 v2, 0x1
invoke-static {v0, v1, v2, v1}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;->tryLoad$default(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
return-void
.end method