2020-01-30 10:23:52 +00:00
|
|
|
.class public final Lcom/discord/widgets/friends/WidgetFriendsListV2;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetFriendsListV2.kt"
|
|
|
|
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/friends/WidgetFriendsListV2$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/friends/WidgetFriendsListV2$Companion;
|
|
|
|
|
|
|
|
.field public static final VIEW_INDEX_EMPTY:I = 0x1
|
|
|
|
|
|
|
|
.field public static final VIEW_INDEX_RECYCLER:I
|
|
|
|
|
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
# instance fields
|
2020-02-06 22:18:40 +00:00
|
|
|
.field public adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
.field public final emptyFriendsStateView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
.field public final flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.field public privateCallLauncher:Lcom/discord/widgets/user/calls/PrivateCallLauncher;
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.field public final recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public viewModel:Lcom/discord/widgets/friends/FriendsListViewModel;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-02-06 22:18:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v1, Lw/u/b/u;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/friends/WidgetFriendsListV2;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "flipper"
|
|
|
|
|
|
|
|
const-string v4, "getFlipper()Lcom/discord/app/AppViewFlipper;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/friends/WidgetFriendsListV2;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "recyclerView"
|
|
|
|
|
|
|
|
const-string v5, "getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/friends/WidgetFriendsListV2;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const-string v4, "emptyFriendsStateView"
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const-string v5, "getEmptyFriendsStateView()Lcom/discord/widgets/friends/EmptyFriendsStateView;"
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/friends/WidgetFriendsListV2$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->Companion:Lcom/discord/widgets/friends/WidgetFriendsListV2$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
.method public constructor <init>()V
|
2020-02-06 22:18:40 +00:00
|
|
|
.locals 1
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const v0, 0x7f0a0332
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const v0, 0x7f0a0357
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const v0, 0x7f0a0331
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->emptyFriendsStateView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/friends/WidgetFriendsListV2;Lcom/discord/widgets/friends/FriendsListViewModel$ViewState;)V
|
|
|
|
.locals 0
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->configureUI(Lcom/discord/widgets/friends/FriendsListViewModel$ViewState;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/friends/WidgetFriendsListV2;)Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->viewModel:Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p0, "viewModel"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.method public static final synthetic access$handleEvent(Lcom/discord/widgets/friends/WidgetFriendsListV2;Lcom/discord/widgets/friends/FriendsListViewModel$Event;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->handleEvent(Lcom/discord/widgets/friends/FriendsListViewModel$Event;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/friends/WidgetFriendsListV2;Lcom/discord/widgets/friends/FriendsListViewModel;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->viewModel:Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/friends/FriendsListViewModel$ViewState;)V
|
2020-01-30 10:23:52 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Uninitialized;->INSTANCE:Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Uninitialized;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
goto :goto_0
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-02-06 22:18:40 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Hidden;->INSTANCE:Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Hidden;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->hideView()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v0, Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Empty;->INSTANCE:Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Empty;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->showEmptyView()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->updateView(Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Loaded;)V
|
|
|
|
|
|
|
|
:goto_0
|
2020-01-30 10:23:52 +00:00
|
|
|
return-void
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance p1, Lw/g;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {p1}, Lw/g;-><init>()V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
throw p1
|
2020-01-30 10:23:52 +00:00
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.method private final displayFlipperChild(I)V
|
2020-01-30 10:23:52 +00:00
|
|
|
.locals 2
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v0
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v1, 0x0
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
.method private final getEmptyFriendsStateView()Lcom/discord/widgets/friends/EmptyFriendsStateView;
|
2020-02-06 22:18:40 +00:00
|
|
|
.locals 3
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->emptyFriendsStateView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsListV2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
check-cast v0, Lcom/discord/widgets/friends/EmptyFriendsStateView;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsListV2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
check-cast v0, Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsListV2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
aget-object v1, v1, v2
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.method private final handleEvent(Lcom/discord/widgets/friends/FriendsListViewModel$Event;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Event$ShowToast;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/friends/FriendsListViewModel$Event$ShowToast;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->handleShowToast(Lcom/discord/widgets/friends/FriendsListViewModel$Event$ShowToast;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Event$LaunchVoiceCall;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/friends/FriendsListViewModel$Event$LaunchVoiceCall;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->handleLaunchVoiceCall(Lcom/discord/widgets/friends/FriendsListViewModel$Event$LaunchVoiceCall;)V
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v0, Lcom/discord/widgets/friends/FriendsListViewModel$Event$TrackFriendsListShown;->INSTANCE:Lcom/discord/widgets/friends/FriendsListViewModel$Event$TrackFriendsListShown;
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->handleFriendsListShown()V
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
:cond_2
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance p1, Lw/g;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Lw/g;-><init>()V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
.method private final handleFriendsListShown()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
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.method private final handleLaunchVoiceCall(Lcom/discord/widgets/friends/FriendsListViewModel$Event$LaunchVoiceCall;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->privateCallLauncher:Lcom/discord/widgets/user/calls/PrivateCallLauncher;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/friends/FriendsListViewModel$Event$LaunchVoiceCall;->getChannelId()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->launchVoiceCall(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "privateCallLauncher"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final handleShowToast(Lcom/discord/widgets/friends/FriendsListViewModel$Event$ShowToast;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/friends/FriendsListViewModel$Event$ShowToast;->getStringRes()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-static {p0, p1, v0, v1}, Le/a/b/k;->a(Landroidx/fragment/app/Fragment;III)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.method private final hideView()V
|
|
|
|
.locals 2
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final showEmptyView()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->displayFlipperChild(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final updateView(Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Loaded;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->displayFlipperChild(I)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/friends/FriendsListViewModel$ViewState$Loaded;->getItems()Ljava/util/List;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
:cond_0
|
|
|
|
return-void
|
2020-01-30 10:23:52 +00:00
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
# virtual methods
|
2020-01-30 10:23:52 +00:00
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const v0, 0x7f0d018c
|
2020-01-30 10:23:52 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 3
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
new-instance p1, Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/friends/FriendsListViewModel$Factory;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
invoke-direct {v1}, Lcom/discord/widgets/friends/FriendsListViewModel$Factory;-><init>()V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
invoke-direct {p1, v0, v1}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const-class v0, Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "ViewModelProvider(\n \u2026istViewModel::class.java)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->viewModel:Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance p1, Lcom/discord/widgets/user/calls/PrivateCallLauncher;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "requireContext()"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "requireFragmentManager()"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p1, p0, p0, v0, v1}, Lcom/discord/widgets/user/calls/PrivateCallLauncher;-><init>(Lcom/discord/app/AppPermissions$Requests;Lcom/discord/app/AppComponent;Landroid/content/Context;Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->privateCallLauncher:Lcom/discord/widgets/user/calls/PrivateCallLauncher;
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
|
|
.locals 2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
if-eqz p1, :cond_6
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->getEmptyFriendsStateView()Lcom/discord/widgets/friends/EmptyFriendsStateView;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
move-result-object p1
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
const-string v0, "Friends"
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/EmptyFriendsStateView;->updateView(Ljava/lang/String;)V
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
|
|
|
|
move-result-object p1
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
check-cast p1, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
2020-01-30 10:23:52 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$2;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$2;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;->setOnClickUserProfile(Lkotlin/jvm/functions/Function2;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$3;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$3;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;->setOnClickPendingHeaderExpand(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
|
|
|
|
:cond_1
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$4;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$4;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;->setOnClickCall(Lkotlin/jvm/functions/Function1;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$5;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$5;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;->setOnClickChat(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$6;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$6;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;->setOnClickAcceptFriend(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->adapter:Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$7;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-04 00:13:28 +00:00
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBound$7;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapterV2;->setOnClickDeclineFriend(Lkotlin/jvm/functions/Function2;)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_6
|
2020-02-06 22:18:40 +00:00
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBoundOrOnResume()V
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 13
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListV2;->viewModel:Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string v1, "viewModel"
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-virtual {v0}, Le/a/b/c0;->observeViewState()Lrx/Observable;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v3, 0x2
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, p0, v2, v3, 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;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-class v5, Lcom/discord/widgets/friends/WidgetFriendsListV2;
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v10, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBoundOrOnResume$1;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v10, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
|
|
|
|
|
|
|
const/16 v11, 0x1e
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v12}, 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/friends/WidgetFriendsListV2;->viewModel:Lcom/discord/widgets/friends/FriendsListViewModel;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/friends/FriendsListViewModel;->observeEvents()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p0, v2, v3, 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;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-class v5, Lcom/discord/widgets/friends/WidgetFriendsListV2;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
new-instance v10, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBoundOrOnResume$2;
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v10, p0}, Lcom/discord/widgets/friends/WidgetFriendsListV2$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListV2;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/16 v11, 0x1e
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v12, 0x0
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static/range {v4 .. v12}, 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
|
2020-02-06 22:18:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {v1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-06 22:18:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
throw v2
|
2020-01-30 10:23:52 +00:00
|
|
|
.end method
|