623 lines
20 KiB
Smali
623 lines
20 KiB
Smali
.class public Lcom/discord/widgets/friends/WidgetFriendsList;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetFriendsList.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public tabBadgePending:Landroid/widget/TextView;
|
|
|
|
.field public tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
.field public tabContentData:Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
|
|
.field public tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.field public tabSelectedListener:Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
|
|
.field public final tabSelectedPublisher:Lrx/subjects/Subject;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/subjects/Subject<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
invoke-static {}, Lrx/subjects/BehaviorSubject;->p()Lrx/subjects/BehaviorSubject;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "BehaviorSubject.create<Int>()"
|
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedPublisher:Lrx/subjects/Subject;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/friends/WidgetFriendsList;Lcom/discord/widgets/friends/WidgetFriendsList$Model;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsList;->configureUI(Lcom/discord/widgets/friends/WidgetFriendsList$Model;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final addTab(Lcom/google/android/material/tabs/TabLayout;I)V
|
|
.locals 3
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout;->newTab()Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2}, Lcom/google/android/material/tabs/TabLayout$Tab;->setText(I)Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "newTab().setText(tabTitle)"
|
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsList$addTab$1;
|
|
|
|
invoke-direct {v1, p0, p1, v0, p2}, Lcom/discord/widgets/friends/WidgetFriendsList$addTab$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsList;Lcom/google/android/material/tabs/TabLayout;Lcom/google/android/material/tabs/TabLayout$Tab;I)V
|
|
|
|
const v2, 0x7f1206dc
|
|
|
|
if-eq p2, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v1}, Lcom/discord/widgets/friends/WidgetFriendsList$addTab$1;->invoke()Landroid/widget/TextView;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabBadgePending:Landroid/widget/TextView;
|
|
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configure(Lcom/google/android/material/tabs/TabLayout;)V
|
|
.locals 5
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout;->removeAllTabs()V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentData:Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const/4 v3, 0x2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {p1, v0, v2, v3, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
const v0, 0x7f1206da
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsList;->addTab(Lcom/google/android/material/tabs/TabLayout;I)V
|
|
|
|
const v0, 0x7f1206db
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsList;->addTab(Lcom/google/android/material/tabs/TabLayout;I)V
|
|
|
|
const v0, 0x7f1206dc
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsList;->addTab(Lcom/google/android/material/tabs/TabLayout;I)V
|
|
|
|
const v0, 0x7f120309
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsList;->addTab(Lcom/google/android/material/tabs/TabLayout;I)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsList$configure$listener$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsList$configure$listener$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsList;)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/tabs/TabLayout;->addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedListener:Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/google/android/material/tabs/TabLayout;->getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;->select()V
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
sget-object v1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
|
|
|
new-instance v2, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
invoke-direct {v2, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v4, v0
|
|
|
|
check-cast v4, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
:cond_4
|
|
iput-object v4, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsList$configure$2;
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/friends/WidgetFriendsList$configure$2;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;->setOnClickAddFriends(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
:cond_5
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsList$configure$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsList$configure$3;-><init>(Lcom/discord/widgets/friends/WidgetFriendsList;)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;->setOnClickUserProfile(Lkotlin/jvm/functions/Function2;)V
|
|
|
|
:cond_6
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsList$configure$4;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsList$configure$4;-><init>(Lcom/discord/widgets/friends/WidgetFriendsList;)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;->setOnClickAcceptFriend(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/friends/WidgetFriendsList$Model;)V
|
|
.locals 6
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentData:Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_3
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
if-eq v3, v0, :cond_3
|
|
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsList;->trackFriendsListViewed()V
|
|
|
|
:cond_3
|
|
iget-object v3, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x2
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
invoke-static {v3, v2, v1, v5, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
:cond_4
|
|
iget-object v3, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
invoke-static {v3, v2, v1, v5, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
:cond_5
|
|
if-nez p1, :cond_6
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
iget-object v2, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/friends/WidgetFriendsList$Model;->getList()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
|
|
|
|
:cond_7
|
|
iget-object v2, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabBadgePending:Landroid/widget/TextView;
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/friends/WidgetFriendsList$Model;->getPendingCount()I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_8
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
invoke-static {v2, v0, v1, v5, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
:cond_9
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabBadgePending:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/friends/WidgetFriendsList$Model;->getPendingCount()I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_a
|
|
return-void
|
|
.end method
|
|
|
|
.method private final trackFriendsListViewed()V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/analytics/AnalyticsTracker;->friendsListViewed()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0180
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getTabBadgePending()Landroid/widget/TextView;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabBadgePending:Landroid/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTabContentAdapter()Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTabContentData()Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentData:Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTabContentRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTabSelectedListener()Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedListener:Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTabSelectedPublisher()Lrx/subjects/Subject;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lrx/subjects/Subject<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedPublisher:Lrx/subjects/Subject;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTabs()Lcom/google/android/material/tabs/TabLayout;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onDestroyView()V
|
|
.locals 2
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onDestroyView()V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedListener:Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1, v0}, Lcom/google/android/material/tabs/TabLayout;->removeOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedListener:Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onResume()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onResume()V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsList;->trackFriendsListViewed()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
instance-of v1, p1, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
move-object p1, v0
|
|
|
|
:cond_0
|
|
check-cast p1, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object p1, v0
|
|
|
|
:goto_0
|
|
instance-of v1, p1, Lcom/discord/widgets/main/WidgetMain;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
move-object p1, v0
|
|
|
|
:cond_2
|
|
check-cast p1, Lcom/discord/widgets/main/WidgetMain;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/main/WidgetMain;->getTabs()Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_3
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/friends/WidgetFriendsList;->configure(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 11
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
sget-object v0, Lcom/discord/widgets/friends/WidgetFriendsList$Model;->Companion:Lcom/discord/widgets/friends/WidgetFriendsList$Model$Companion;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedPublisher:Lrx/subjects/Subject;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/friends/WidgetFriendsList$Model$Companion;->getConsideringSelectedChannel(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
invoke-static {v0, p0, v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
const-class v3, Lcom/discord/widgets/friends/WidgetFriendsList;
|
|
|
|
new-instance v8, Lcom/discord/widgets/friends/WidgetFriendsList$onViewBoundOrOnResume$1;
|
|
|
|
invoke-direct {v8, p0}, Lcom/discord/widgets/friends/WidgetFriendsList$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsList;)V
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v9, 0x1e
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static/range {v2 .. v10}, 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
|
|
|
|
.method public final setTabBadgePending(Landroid/widget/TextView;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabBadgePending:Landroid/widget/TextView;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTabContentAdapter(Lcom/discord/widgets/friends/WidgetFriendsListAdapter;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentAdapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTabContentData(Lcom/discord/widgets/friends/WidgetFriendsList$Model;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentData:Lcom/discord/widgets/friends/WidgetFriendsList$Model;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTabContentRecycler(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabContentRecycler:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabSelectedListener:Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTabs(Lcom/google/android/material/tabs/TabLayout;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsList;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
return-void
|
|
.end method
|