202 lines
7.6 KiB
Smali
202 lines
7.6 KiB
Smali
|
.class final Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WidgetSettingsAccount.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroid/view/View$OnClickListener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/widgets/settings/account/WidgetSettingsAccount;->configureUI(Lcom/discord/models/domain/ModelUser;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x18
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic $user:Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
.field final synthetic this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/discord/widgets/settings/account/WidgetSettingsAccount;Lcom/discord/models/domain/ModelUser;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
iput-object p2, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->$user:Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final onClick(Landroid/view/View;)V
|
||
|
.locals 12
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
invoke-static {p1}, Lcom/discord/widgets/settings/account/WidgetSettingsAccount;->access$getState$p(Lcom/discord/widgets/settings/account/WidgetSettingsAccount;)Lcom/discord/utilities/stateful/StatefulViews;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
invoke-static {v0}, Lcom/discord/widgets/settings/account/WidgetSettingsAccount;->access$getAccountAvatar$p(Lcom/discord/widgets/settings/account/WidgetSettingsAccount;)Landroid/widget/ImageView;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getId()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/stateful/StatefulViews;->hasChanged(I)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
sget-object p1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApiSerializeNulls()Lcom/discord/utilities/rest/RestAPI;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
sget-object p1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
new-instance v11, Lcom/discord/restapi/RestAPIParams$UserInfo;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
invoke-static {v0}, Lcom/discord/widgets/settings/account/WidgetSettingsAccount;->access$getState$p(Lcom/discord/widgets/settings/account/WidgetSettingsAccount;)Lcom/discord/utilities/stateful/StatefulViews;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
invoke-static {v1}, Lcom/discord/widgets/settings/account/WidgetSettingsAccount;->access$getAccountAvatar$p(Lcom/discord/widgets/settings/account/WidgetSettingsAccount;)Landroid/widget/ImageView;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/widget/ImageView;->getId()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/stateful/StatefulViews;->get(ILjava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Ljava/lang/String;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->$user:Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->$user:Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getEmail()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getNotifications()Lcom/discord/stores/StoreNotifications;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreNotifications;->getPushToken()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/16 v9, 0x84
|
||
|
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
move-object v0, v11
|
||
|
|
||
|
invoke-direct/range {v0 .. v10}, Lcom/discord/restapi/RestAPIParams$UserInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
invoke-virtual {p1, v11}, Lcom/discord/utilities/rest/RestAPI;->patchUser(Lcom/discord/restapi/RestAPIParams$UserInfo;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {}, Lcom/discord/app/g;->dt()Lrx/Observable$Transformer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
check-cast v0, Lcom/discord/app/AppComponent;
|
||
|
|
||
|
invoke-static {v0}, Lcom/discord/app/g;->a(Lcom/discord/app/AppComponent;)Lrx/Observable$Transformer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
invoke-static {v0}, Lcom/discord/widgets/settings/account/WidgetSettingsAccount;->access$getDimmer$p(Lcom/discord/widgets/settings/account/WidgetSettingsAccount;)Lcom/discord/utilities/dimmer/DimmerView;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/discord/app/g;->a(Lcom/discord/utilities/dimmer/DimmerView;)Lrx/Observable$Transformer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8$1;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8$1;-><init>(Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;)V
|
||
|
|
||
|
check-cast v0, Lrx/functions/Action1;
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/widgets/settings/account/WidgetSettingsAccount$configureUI$8;->this$0:Lcom/discord/widgets/settings/account/WidgetSettingsAccount;
|
||
|
|
||
|
check-cast v1, Lcom/discord/app/AppFragment;
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/discord/app/g;->a(Lrx/functions/Action1;Lcom/discord/app/AppFragment;)Lrx/Observable$Transformer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
||
|
|
||
|
return-void
|
||
|
.end method
|