ChatActivityEnterView$10.smali
.class Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;
.super Ljava/lang/Object;
.source "ChatActivityEnterView.java"
# interfaces
.implements Landroid/view/View$OnKeyListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/ChatActivityEnterView;-><init>(Landroid/app/Activity;Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;Lim/tpelyyftgw/ui/ChatActivity;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field ctrlPressed:Z
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)V
.registers 3
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
.line 1022
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 1024
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->ctrlPressed:Z
return-void
.end method
# virtual methods
.method public onKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
.registers 13
.param p1, "view" # Landroid/view/View;
.param p2, "i" # I
.param p3, "keyEvent" # Landroid/view/KeyEvent;
.line 1028
const/4 v0, 0x0
const/4 v1, 0x1
const/4 v2, 0x4
if-ne p2, v2, :cond_87
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$500(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Z
move-result v2
if-nez v2, :cond_87
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->isPopupShowing()Z
move-result v2
if-eqz v2, :cond_87
.line 1029
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result v2
if-ne v2, v1, :cond_86
.line 1030
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$4900(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)I
move-result v2
if-ne v2, v1, :cond_61
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$5000(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/messenger/MessageObject;
move-result-object v2
if-eqz v2, :cond_61
.line 1031
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)I
move-result v2
invoke-static {v2}, Lim/tpelyyftgw/messenger/MessagesController;->getMainSettings(I)Landroid/content/SharedPreferences;
move-result-object v2
.line 1032
.local v2, "preferences":Landroid/content/SharedPreferences;
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v3
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "hidekeyboard_"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2700(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)J
move-result-wide v5
invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$5000(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/messenger/MessageObject;
move-result-object v5
invoke-virtual {v5}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I
move-result v5
invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
move-result-object v3
invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z
.line 1034
.end local v2 # "preferences":Landroid/content/SharedPreferences;
:cond_61
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1100(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)I
move-result v2
if-eqz v2, :cond_81
.line 1035
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2, v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1102(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;I)I
.line 1036
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$700(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EmojiView;
move-result-object v0
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EmojiView;->closeSearch(Z)V
.line 1037
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->requestFocus()Z
goto :goto_86
.line 1039
:cond_81
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2, v0, v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$4700(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;II)V
.line 1042
:cond_86
:goto_86
return v1
.line 1043
:cond_87
const/16 v2, 0x42
if-ne p2, v2, :cond_b3
iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->ctrlPressed:Z
if-nez v2, :cond_97
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$5100(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Z
move-result v2
if-eqz v2, :cond_b3
:cond_97
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result v2
if-nez v2, :cond_b3
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$5200(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/messenger/MessageObject;
move-result-object v2
if-nez v2, :cond_b3
.line 1044
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$5300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)I
move-result v0
if-gtz v0, :cond_b2
.line 1045
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$5400(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)V
.line 1047
:cond_b2
return v1
.line 1048
:cond_b3
const/16 v2, 0x71
if-eq p2, v2, :cond_140
const/16 v2, 0x72
if-ne p2, v2, :cond_bd
goto/16 :goto_140
.line 1051
:cond_bd
const/16 v2, 0x43
if-ne p2, v2, :cond_13f
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result v2
if-nez v2, :cond_13f
.line 1054
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v2
invoke-static {v2}, Landroid/text/Selection;->getSelectionStart(Ljava/lang/CharSequence;)I
move-result v2
.line 1055
.local v2, "selectionStart":I
iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v3
invoke-static {v3}, Landroid/text/Selection;->getSelectionEnd(Ljava/lang/CharSequence;)I
move-result v3
.line 1057
.local v3, "selectionEnd":I
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v4
const-class v5, Lim/tpelyyftgw/ui/components/URLSpanUserMention;
invoke-interface {v4, v2, v3, v5}, Landroid/text/Editable;->getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
move-result-object v4
check-cast v4, [Lim/tpelyyftgw/ui/components/URLSpanUserMention;
.line 1058
.local v4, "spans":[Lim/tpelyyftgw/ui/components/URLSpanUserMention;
array-length v5, v4
const/4 v6, 0x0
:goto_f7
if-ge v6, v5, :cond_13e
aget-object v7, v4, v6
.line 1059
.local v7, "span":Lim/tpelyyftgw/ui/components/URLSpanUserMention;
if-nez v7, :cond_fe
.line 1060
goto :goto_13b
.line 1062
:cond_fe
iget-object v8, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v8}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v8
invoke-virtual {v8}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v8
invoke-interface {v8, v7}, Landroid/text/Editable;->getSpanEnd(Ljava/lang/Object;)I
move-result v8
if-ne v8, v2, :cond_13b
.line 1063
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v5
invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v5
invoke-interface {v5, v7}, Landroid/text/Editable;->getSpanStart(Ljava/lang/Object;)I
move-result v5
.line 1064
.local v5, "spanStart":I
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v6
invoke-interface {v6, v7}, Landroid/text/Editable;->getSpanEnd(Ljava/lang/Object;)I
move-result v6
.line 1065
.local v6, "spanEnd":I
iget-object v8, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;
invoke-static {v8}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;
move-result-object v8
invoke-virtual {v8}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;
move-result-object v8
invoke-static {v8, v5, v6}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;II)V
.line 1066
if-ne v2, v3, :cond_13a
const/4 v0, 0x1
:cond_13a
return v0
.line 1058
.end local v5 # "spanStart":I
.end local v6 # "spanEnd":I
.end local v7 # "span":Lim/tpelyyftgw/ui/components/URLSpanUserMention;
:cond_13b
:goto_13b
add-int/lit8 v6, v6, 0x1
goto :goto_f7
.line 1069
:cond_13e
return v0
.line 1071
.end local v2 # "selectionStart":I
.end local v3 # "selectionEnd":I
.end local v4 # "spans":[Lim/tpelyyftgw/ui/components/URLSpanUserMention;
:cond_13f
return v0
.line 1049
:cond_140
:goto_140
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result v2
if-nez v2, :cond_147
const/4 v0, 0x1
:cond_147
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$10;->ctrlPressed:Z
.line 1050
return v1
.end method