1082 lines
33 KiB
Smali
1082 lines
33 KiB
Smali
.class public Lcom/discord/widgets/user/WidgetUserProfile;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetUserProfile.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/user/WidgetUserProfile$Model;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private friendRequestAcceptBtn:Landroid/view/View;
|
|
|
|
.field private friendRequestBtn:Landroid/view/View;
|
|
|
|
.field private friendRequestIgnoreBtn:Landroid/view/View;
|
|
|
|
.field private friendRequestIncomingContainer:Landroid/view/View;
|
|
|
|
.field private friendRequestSentBtn:Landroid/view/View;
|
|
|
|
.field private sendMessageFab:Landroid/view/View;
|
|
|
|
.field private tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.field private viewPager:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$000(Lcom/discord/widgets/user/WidgetUserProfile;)Lcom/discord/utilities/simple_pager/SimplePager;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->viewPager:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private addRelationship(Ljava/lang/Integer;I)V
|
|
.locals 4
|
|
.param p1 # Ljava/lang/Integer;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {}, Lcom/discord/utilities/rest/RestAPI;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getUserId()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-string v3, "User Profile"
|
|
|
|
invoke-virtual {v0, v3, v1, v2, p1}, Lcom/discord/utilities/rest/RestAPI;->addRelationship(Ljava/lang/String;JLjava/lang/Integer;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0}, Lcom/discord/app/i;->b(Lcom/discord/app/AppComponent;)Lrx/Observable$c;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$BU06_c_Ypaul1l4jmK2Y2q9pD3Q;
|
|
|
|
invoke-direct {v0, p0, p2}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$BU06_c_Ypaul1l4jmK2Y2q9pD3Q;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;I)V
|
|
|
|
invoke-static {v0, p0}, Lcom/discord/app/i;->a(Lrx/functions/Action1;Lcom/discord/app/AppFragment;)Lrx/Observable$c;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private configureActionButtons(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
.locals 4
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->access$300(Lcom/discord/widgets/user/WidgetUserProfile$Model;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->access$200(Lcom/discord/widgets/user/WidgetUserProfile$Model;)Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->isBot()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->access$100(Lcom/discord/widgets/user/WidgetUserProfile$Model;)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestBtn:Landroid/view/View;
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v0, 0x8
|
|
|
|
:goto_1
|
|
invoke-virtual {v2, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestBtn:Landroid/view/View;
|
|
|
|
new-instance v2, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$oihzzpGBelVgH6JTZ948MiGwWE8;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$oihzzpGBelVgH6JTZ948MiGwWE8;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;)V
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestSentBtn:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->canCancel()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/16 v2, 0x8
|
|
|
|
:goto_2
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestSentBtn:Landroid/view/View;
|
|
|
|
new-instance v2, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$IH8kwxdpxinJ58ico-LEdybaKv0;
|
|
|
|
invoke-direct {v2, p0, p1}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$IH8kwxdpxinJ58ico-LEdybaKv0;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestIncomingContainer:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->canAccept()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/16 v1, 0x8
|
|
|
|
:goto_3
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestAcceptBtn:Landroid/view/View;
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$uz8uCgVxIIyyq9oR-t-Jg8rBqKw;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$uz8uCgVxIIyyq9oR-t-Jg8rBqKw;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestIgnoreBtn:Landroid/view/View;
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$DN_wURtqFY8f-rfZC_Nq5hiiz9c;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$DN_wURtqFY8f-rfZC_Nq5hiiz9c;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private configureUI(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getAppActivity()Lcom/discord/app/AppActivity;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getAppActivity()Lcom/discord/app/AppActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/app/AppActivity;->onBackPressed()V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-static {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->access$100(Lcom/discord/widgets/user/WidgetUserProfile$Model;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/user/WidgetUserProfile;->getMenuResId(I)I
|
|
|
|
move-result v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$4aubuu0PlHcm5xY7zim34ZCS9Rc;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$4aubuu0PlHcm5xY7zim34ZCS9Rc;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
new-instance v2, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$fjan-QAmdQ6BqxJW1eWAx3oLMZM;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$fjan-QAmdQ6BqxJW1eWAx3oLMZM;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;)V
|
|
|
|
invoke-virtual {p0, v0, v1, v2}, Lcom/discord/widgets/user/WidgetUserProfile;->setActionBarOptionsMenu(ILrx/functions/Action2;Lrx/functions/Action1;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->configureActionButtons(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->sendMessageFab:Landroid/view/View;
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$pbSylbhAbdhsXobagQlJftqkIbs;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$pbSylbhAbdhsXobagQlJftqkIbs;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private findAndSetDirectMessage(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->access$200(Lcom/discord/widgets/user/WidgetUserProfile$Model;)Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lcom/discord/stores/StoreChannelsSelected;->findAndSetDirectMessage(Landroid/content/Context;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getGuildId()J
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_GUILD_ID"
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method private getMenuResId(I)I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p1, v0, :cond_3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const p1, 0x7f0e001a
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const p1, 0x7f0e001e
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
const p1, 0x7f0e001d
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
const p1, 0x7f0e001b
|
|
|
|
return p1
|
|
|
|
:cond_3
|
|
const p1, 0x7f0e001c
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private getUserId()J
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_USER_ID"
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static synthetic lambda$XVSv-upShbk6Qfx9qmjCxZ9TRhc(Lcom/discord/widgets/user/WidgetUserProfile;Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->configureUI(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic lambda$onViewBound$0(Landroid/view/MenuItem;Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
invoke-interface {p0}, Landroid/view/MenuItem;->getItemId()I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic lambda$showFriendRequestDeleteConfirmationDialog$11(Landroidx/appcompat/app/AlertDialog;Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/app/AlertDialog;->cancel()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static launch(Landroid/content/Context;J)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {p0, p1, p2, v0}, Lcom/discord/widgets/user/WidgetUserProfile;->launch(Landroid/content/Context;JLjava/lang/Long;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static launch(Landroid/content/Context;JLjava/lang/Long;)V
|
|
.locals 2
|
|
.param p3 # Ljava/lang/Long;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_USER_ID"
|
|
|
|
invoke-virtual {v0, v1, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "com.discord.intent.extra.EXTRA_GUILD_ID"
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-class p2, Lcom/discord/widgets/user/WidgetUserProfile;
|
|
|
|
invoke-static {p0, p2, p1}, Lcom/discord/app/f;->a(Landroid/content/Context;Ljava/lang/Class;Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private removeRelationship(I)V
|
|
.locals 4
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {}, Lcom/discord/utilities/rest/RestAPI;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getUserId()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-string v3, "User Profile"
|
|
|
|
invoke-virtual {v0, v3, v1, v2}, Lcom/discord/utilities/rest/RestAPI;->removeRelationship(Ljava/lang/String;J)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0}, Lcom/discord/app/i;->b(Lcom/discord/app/AppComponent;)Lrx/Observable$c;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$HrPwiAQVtsYNapd4r9mE-IoY5pA;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$HrPwiAQVtsYNapd4r9mE-IoY5pA;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;I)V
|
|
|
|
invoke-static {v1, p0}, Lcom/discord/app/i;->a(Lrx/functions/Action1;Lcom/discord/app/AppFragment;)Lrx/Observable$c;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private showFriendRequestDeleteConfirmationDialog(Lcom/discord/models/domain/ModelUser;)V
|
|
.locals 5
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f0d0118
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroidx/appcompat/app/AlertDialog$Builder;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroidx/appcompat/app/AlertDialog$Builder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object p1, v3, v4
|
|
|
|
const p1, 0x7f120c87
|
|
|
|
invoke-virtual {v2, p1, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/textprocessing/Parsers;->parseBoldMarkdown(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
const v2, 0x7f0a02e9
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
const p1, 0x7f0a02eb
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v2, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$pTcsxMHJ6vNo1TnxG_0yZkgkG8g;
|
|
|
|
invoke-direct {v2, p0, v1}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$pTcsxMHJ6vNo1TnxG_0yZkgkG8g;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;Landroidx/appcompat/app/AlertDialog;)V
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
const p1, 0x7f0a02ea
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$HXRkbvqAAkLwoWX3pFGP7GV-hZ8;
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$HXRkbvqAAkLwoWX3pFGP7GV-hZ8;-><init>(Landroidx/appcompat/app/AlertDialog;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/app/AlertDialog;->show()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d01c8
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public synthetic lambda$addRelationship$5$WidgetUserProfile(ILjava/lang/Void;)V
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/discord/app/h;->b(Landroidx/fragment/app/Fragment;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureActionButtons$6$WidgetUserProfile(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const v0, 0x7f120691
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/user/WidgetUserProfile;->addRelationship(Ljava/lang/Integer;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureActionButtons$7$WidgetUserProfile(Lcom/discord/widgets/user/WidgetUserProfile$Model;Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->access$200(Lcom/discord/widgets/user/WidgetUserProfile$Model;)Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->showFriendRequestDeleteConfirmationDialog(Lcom/discord/models/domain/ModelUser;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureActionButtons$8$WidgetUserProfile(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const v0, 0x7f12002e
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/user/WidgetUserProfile;->addRelationship(Ljava/lang/Integer;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureActionButtons$9$WidgetUserProfile(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
const p1, 0x7f12068a
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->removeRelationship(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureUI$1$WidgetUserProfile(Lcom/discord/widgets/user/WidgetUserProfile$Model;Landroid/view/MenuItem;Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I
|
|
|
|
move-result p2
|
|
|
|
const p3, 0x7f0a0444
|
|
|
|
if-eq p2, p3, :cond_0
|
|
|
|
packed-switch p2, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const p1, 0x7f1211e6
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->removeRelationship(I)V
|
|
|
|
return-void
|
|
|
|
:pswitch_1
|
|
const p1, 0x7f120681
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->removeRelationship(I)V
|
|
|
|
return-void
|
|
|
|
:pswitch_2
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->findAndSetDirectMessage(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
return-void
|
|
|
|
:pswitch_3
|
|
const p1, 0x7f12068a
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->removeRelationship(I)V
|
|
|
|
return-void
|
|
|
|
:pswitch_4
|
|
const p1, 0x7f120688
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->removeRelationship(I)V
|
|
|
|
return-void
|
|
|
|
:pswitch_5
|
|
const/4 p1, 0x2
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
const p2, 0x7f1211e5
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/user/WidgetUserProfile;->addRelationship(Ljava/lang/Integer;I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getUserId()J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p1, p2}, Lcom/discord/app/h;->d(Landroid/content/Context;Ljava/lang/CharSequence;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x7f0a0463
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureUI$2$WidgetUserProfile(Landroid/view/Menu;)V
|
|
.locals 4
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getDeveloperMode()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
const v1, 0x7f0a0444
|
|
|
|
const v2, 0xffff
|
|
|
|
const v3, 0x7f120461
|
|
|
|
invoke-interface {p1, v0, v1, v2, v3}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f04017f
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/content/Context;I)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, -0x1
|
|
|
|
:goto_0
|
|
invoke-interface {p1, v0}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$configureUI$3$WidgetUserProfile(Lcom/discord/widgets/user/WidgetUserProfile$Model;Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->findAndSetDirectMessage(Lcom/discord/widgets/user/WidgetUserProfile$Model;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$removeRelationship$4$WidgetUserProfile(ILjava/lang/Void;)V
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/discord/app/h;->b(Landroidx/fragment/app/Fragment;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic lambda$showFriendRequestDeleteConfirmationDialog$10$WidgetUserProfile(Landroidx/appcompat/app/AlertDialog;Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog;->dismiss()V
|
|
|
|
const p1, 0x7f120688
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->removeRelationship(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPause()V
|
|
.locals 7
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onPause()V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getUserId()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getGuildId()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v6, v0, v4
|
|
|
|
if-lez v6, :cond_0
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-lez v6, :cond_0
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuildSubscriptions()Lcom/discord/stores/StoreGuildSubscriptions;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4, v2, v3, v0, v1}, Lcom/discord/stores/StoreGuildSubscriptions;->unsubscribeUser(JJ)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 6
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
const v0, 0x7f0a079d
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->viewPager:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->viewPager:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/WidgetUserProfile$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/user/WidgetUserProfile$1;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/simple_pager/SimplePager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
|
|
|
|
const v0, 0x7f0a0799
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestIncomingContainer:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a079a
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestSentBtn:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a0796
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestBtn:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a0797
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestAcceptBtn:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a0798
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->friendRequestIgnoreBtn:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a079c
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->sendMessageFab:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a0034
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserProfile;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->setActionBarDisplayHomeAsUpEnabled()Landroidx/appcompat/widget/Toolbar;
|
|
|
|
const p1, 0x7f120e56
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
sget-object p1, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$q79NbGnrUXia_rHK0TUt2jMuoV4;->INSTANCE:Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$q79NbGnrUXia_rHK0TUt2jMuoV4;
|
|
|
|
const v0, 0x7f0e001c
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/discord/widgets/user/WidgetUserProfile;->setActionBarOptionsMenu(ILrx/functions/Action2;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/WidgetUserProfile;->viewPager:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
new-instance v0, Lcom/discord/utilities/simple_pager/SimplePager$Adapter;
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x3
|
|
|
|
new-array v2, v2, [Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;
|
|
|
|
new-instance v3, Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;
|
|
|
|
const v4, 0x7f1211e7
|
|
|
|
invoke-virtual {p0, v4}, Lcom/discord/widgets/user/WidgetUserProfile;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/widgets/user/-$$Lambda$GGHkkpA44h-rGxuFMr2sE_vkDlY;->INSTANCE:Lcom/discord/widgets/user/-$$Lambda$GGHkkpA44h-rGxuFMr2sE_vkDlY;
|
|
|
|
invoke-direct {v3, v4, v5}, Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;-><init>(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
new-instance v3, Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;
|
|
|
|
const v4, 0x7f120b80
|
|
|
|
invoke-virtual {p0, v4}, Lcom/discord/widgets/user/WidgetUserProfile;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/widgets/user/-$$Lambda$G3X6iZzo5xG5qTSUIIkOEt___S4;->INSTANCE:Lcom/discord/widgets/user/-$$Lambda$G3X6iZzo5xG5qTSUIIkOEt___S4;
|
|
|
|
invoke-direct {v3, v4, v5}, Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;-><init>(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
new-instance v3, Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;
|
|
|
|
const v4, 0x7f120b7f
|
|
|
|
invoke-virtual {p0, v4}, Lcom/discord/widgets/user/WidgetUserProfile;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/widgets/user/-$$Lambda$zaBZWlDaOm5GfqQPvapRkaebLyg;->INSTANCE:Lcom/discord/widgets/user/-$$Lambda$zaBZWlDaOm5GfqQPvapRkaebLyg;
|
|
|
|
invoke-direct {v3, v4, v5}, Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;-><init>(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
const/4 v4, 0x2
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/discord/utilities/simple_pager/SimplePager$Adapter;-><init>(Landroidx/fragment/app/FragmentManager;[Lcom/discord/utilities/simple_pager/SimplePager$Adapter$Item;)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/simple_pager/SimplePager;->setAdapter(Landroidx/viewpager/widget/PagerAdapter;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/WidgetUserProfile;->viewPager:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfile;->tabs:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/simple_pager/SimplePager;->setTabLayout(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 7
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getUserId()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/WidgetUserProfile;->getGuildId()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v6, v0, v4
|
|
|
|
if-lez v6, :cond_0
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-lez v6, :cond_0
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuildSubscriptions()Lcom/discord/stores/StoreGuildSubscriptions;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4, v2, v3, v0, v1}, Lcom/discord/stores/StoreGuildSubscriptions;->subscribeUser(JJ)V
|
|
|
|
:cond_0
|
|
invoke-static {v0, v1}, Lcom/discord/widgets/user/WidgetUserProfile$Model;->get(J)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0}, Lcom/discord/app/i;->b(Lcom/discord/app/AppComponent;)Lrx/Observable$c;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$XVSv-upShbk6Qfx9qmjCxZ9TRhc;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/user/-$$Lambda$WidgetUserProfile$XVSv-upShbk6Qfx9qmjCxZ9TRhc;-><init>(Lcom/discord/widgets/user/WidgetUserProfile;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Lcom/discord/app/i;->a(Lrx/functions/Action1;Ljava/lang/Class;)Lrx/Observable$c;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|