129 lines
4.9 KiB
Smali
129 lines
4.9 KiB
Smali
.class public Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetServerSettingsEditRole.java"
|
|
|
|
# interfaces
|
|
.implements Lf/i/a/a/g;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;->launchColorPicker(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;
|
|
|
|
.field public final synthetic val$data:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->this$0:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->val$data:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onColorReset(I)V
|
|
.locals 3
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->val$data:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->access$100(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/discord/restapi/RestAPIParams$Role;->createWithRole(Lcom/discord/models/domain/ModelGuildRole;)Lcom/discord/restapi/RestAPIParams$Role;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/restapi/RestAPIParams$Role;->setColor(Ljava/lang/Integer;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->this$0:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->val$data:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->access$500(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-static {v0, v1, v2, p1}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;->access$600(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;JLcom/discord/restapi/RestAPIParams$Role;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onColorSelected(II)V
|
|
.locals 3
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->val$data:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->access$100(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/discord/restapi/RestAPIParams$Role;->createWithRole(Lcom/discord/models/domain/ModelGuildRole;)Lcom/discord/restapi/RestAPIParams$Role;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p2}, Landroid/graphics/Color;->red(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2}, Landroid/graphics/Color;->green(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p2}, Landroid/graphics/Color;->blue(I)I
|
|
|
|
move-result p2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v2, v0, v1, p2}, Landroid/graphics/Color;->argb(IIII)I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/restapi/RestAPIParams$Role;->setColor(Ljava/lang/Integer;)V
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->this$0:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$1;->val$data:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
invoke-static {v0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->access$500(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {p2, v0, v1, p1}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;->access$600(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;JLcom/discord/restapi/RestAPIParams$Role;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDialogDismissed(I)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|