ReportOtherActivity$1.smali
.class Lim/tpelyyftgw/ui/ReportOtherActivity$1;
.super Lim/tpelyyftgw/ui/actionbar/ActionBar$ActionBarMenuOnItemClick;
.source "ReportOtherActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/ReportOtherActivity;->createView(Landroid/content/Context;)Landroid/view/View;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/ReportOtherActivity;)V
.registers 2
.param p1, "this$0" # Lim/tpelyyftgw/ui/ReportOtherActivity;
.line 62
iput-object p1, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
invoke-direct {p0}, Lim/tpelyyftgw/ui/actionbar/ActionBar$ActionBarMenuOnItemClick;-><init>()V
return-void
.end method
.method static synthetic lambda$onItemClick$0(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$TL_error;)V
.registers 2
.param p0, "response" # Lim/tpelyyftgw/tgnet/TLObject;
.param p1, "error" # Lim/tpelyyftgw/tgnet/TLRPC$TL_error;
.line 89
return-void
.end method
# virtual methods
.method public onItemClick(I)V
.registers 7
.param p1, "id" # I
.line 65
const/4 v0, -0x1
if-ne p1, v0, :cond_a
.line 66
iget-object v0, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/ReportOtherActivity;->finishFragment()V
goto/16 :goto_bb
.line 67
:cond_a
const/4 v0, 0x1
if-ne p1, v0, :cond_bb
.line 68
iget-object v0, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->firstNameField:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$000(Lim/tpelyyftgw/ui/ReportOtherActivity;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getText()Landroid/text/Editable;
move-result-object v0
invoke-interface {v0}, Landroid/text/Editable;->length()I
move-result v0
if-eqz v0, :cond_bb
.line 70
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v0
iget-object v1, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->dialog_id:J
invoke-static {v1}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$100(Lim/tpelyyftgw/ui/ReportOtherActivity;)J
move-result-wide v1
long-to-int v2, v1
invoke-virtual {v0, v2}, Lim/tpelyyftgw/messenger/MessagesController;->getInputPeer(I)Lim/tpelyyftgw/tgnet/TLRPC$InputPeer;
move-result-object v0
.line 71
.local v0, "peer":Lim/tpelyyftgw/tgnet/TLRPC$InputPeer;
iget-object v1, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->message_id:I
invoke-static {v1}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$200(Lim/tpelyyftgw/ui/ReportOtherActivity;)I
move-result v1
if-eqz v1, :cond_65
.line 72
new-instance v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_messages_report;
invoke-direct {v1}, Lim/tpelyyftgw/tgnet/TLRPC$TL_messages_report;-><init>()V
.line 73
.local v1, "request":Lim/tpelyyftgw/tgnet/TLRPC$TL_messages_report;
iput-object v0, v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_messages_report;->peer:Lim/tpelyyftgw/tgnet/TLRPC$InputPeer;
.line 74
iget-object v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_messages_report;->id:Ljava/util/ArrayList;
iget-object v3, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->message_id:I
invoke-static {v3}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$200(Lim/tpelyyftgw/ui/ReportOtherActivity;)I
move-result v3
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 75
new-instance v2, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;
invoke-direct {v2}, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;-><init>()V
.line 76
.local v2, "reportReasonOther":Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;
iget-object v3, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->firstNameField:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v3}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$000(Lim/tpelyyftgw/ui/ReportOtherActivity;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getText()Landroid/text/Editable;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v3
iput-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;->text:Ljava/lang/String;
.line 77
iput-object v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_messages_report;->reason:Lim/tpelyyftgw/tgnet/TLRPC$ReportReason;
.line 78
nop
.line 79
.end local v2 # "reportReasonOther":Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;
.local v1, "req":Lim/tpelyyftgw/tgnet/TLObject;
goto :goto_99
.line 80
.end local v1 # "req":Lim/tpelyyftgw/tgnet/TLObject;
:cond_65
new-instance v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_account_reportPeer;
invoke-direct {v1}, Lim/tpelyyftgw/tgnet/TLRPC$TL_account_reportPeer;-><init>()V
.line 81
.local v1, "request":Lim/tpelyyftgw/tgnet/TLRPC$TL_account_reportPeer;
iget-object v2, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->currentAccount:I
invoke-static {v2}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$300(Lim/tpelyyftgw/ui/ReportOtherActivity;)I
move-result v2
invoke-static {v2}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v2
iget-object v3, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->dialog_id:J
invoke-static {v3}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$100(Lim/tpelyyftgw/ui/ReportOtherActivity;)J
move-result-wide v3
long-to-int v4, v3
invoke-virtual {v2, v4}, Lim/tpelyyftgw/messenger/MessagesController;->getInputPeer(I)Lim/tpelyyftgw/tgnet/TLRPC$InputPeer;
move-result-object v2
iput-object v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_account_reportPeer;->peer:Lim/tpelyyftgw/tgnet/TLRPC$InputPeer;
.line 82
new-instance v2, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;
invoke-direct {v2}, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;-><init>()V
.line 83
.restart local v2 # "reportReasonOther":Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;
iget-object v3, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->firstNameField:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v3}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$000(Lim/tpelyyftgw/ui/ReportOtherActivity;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getText()Landroid/text/Editable;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v3
iput-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;->text:Ljava/lang/String;
.line 84
iput-object v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$TL_account_reportPeer;->reason:Lim/tpelyyftgw/tgnet/TLRPC$ReportReason;
.line 85
move-object v3, v1
.line 87
.end local v2 # "reportReasonOther":Lim/tpelyyftgw/tgnet/TLRPC$TL_inputReportReasonOther;
.local v1, "req":Lim/tpelyyftgw/tgnet/TLObject;
:goto_99
iget-object v2, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
# getter for: Lim/tpelyyftgw/ui/ReportOtherActivity;->currentAccount:I
invoke-static {v2}, Lim/tpelyyftgw/ui/ReportOtherActivity;->access$400(Lim/tpelyyftgw/ui/ReportOtherActivity;)I
move-result v2
invoke-static {v2}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v2
sget-object v3, Lim/tpelyyftgw/ui/-$$Lambda$ReportOtherActivity$1$84Esjik8UXWN8H39MIbUgBH-Lgc;->INSTANCE:Lim/tpelyyftgw/ui/-$$Lambda$ReportOtherActivity$1$84Esjik8UXWN8H39MIbUgBH-Lgc;
invoke-virtual {v2, v1, v3}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->sendRequest(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/RequestDelegate;)I
.line 90
iget-object v2, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/ReportOtherActivity;->getParentActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v2
if-eqz v2, :cond_b6
.line 91
const v2, 0x7f0f0de7
invoke-static {v2}, Lim/tpelyyftgw/ui/components/toast/ToastUtils;->show(I)V
.line 93
:cond_b6
iget-object v2, p0, Lim/tpelyyftgw/ui/ReportOtherActivity$1;->this$0:Lim/tpelyyftgw/ui/ReportOtherActivity;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/ReportOtherActivity;->finishFragment()V
.line 96
.end local v0 # "peer":Lim/tpelyyftgw/tgnet/TLRPC$InputPeer;
.end local v1 # "req":Lim/tpelyyftgw/tgnet/TLObject;
:cond_bb
:goto_bb
return-void
.end method