CommunityEditMsgComponent$g.smali
.class public final Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/text/TextWatcher;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;-><init>(Lcom/imo/android/core/component/c;Landroid/view/ViewGroup;Landroid/view/View;Landroid/widget/TextView;Landroid/widget/ImageView;Landroid/view/View;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
.field private b:Ljava/lang/CharSequence;
.field private c:I
.field private d:I
.field private final synthetic e:Landroid/text/TextWatcher;
# direct methods
.method constructor <init>(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 102
iput-object p1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 378
const-class p1, Landroid/text/TextWatcher;
.line 379
sget-object v0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g$a;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g$a;
check-cast v0, Ljava/lang/reflect/InvocationHandler;
.line 381
invoke-virtual {p1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v1
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
aput-object p1, v2, v3
.line 380
invoke-static {v1, v2, v0}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_20
check-cast p1, Landroid/text/TextWatcher;
iput-object p1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->e:Landroid/text/TextWatcher;
return-void
:cond_20
new-instance p1, Lkotlin/TypeCastException;
const-string v0, "null cannot be cast to non-null type android.text.TextWatcher"
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public final afterTextChanged(Landroid/text/Editable;)V
.registers 5
.line 116
iget-object v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-static {v0}, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;->m(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;)Lcom/imo/xui/widget/edittext/XEditText;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_e
invoke-virtual {v0}, Lcom/imo/xui/widget/edittext/XEditText;->getSelectionStart()I
move-result v0
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
iput v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->c:I
.line 117
iget-object v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-static {v0}, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;->m(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;)Lcom/imo/xui/widget/edittext/XEditText;
move-result-object v0
if-eqz v0, :cond_1e
invoke-virtual {v0}, Lcom/imo/xui/widget/edittext/XEditText;->getSelectionEnd()I
move-result v0
goto :goto_1f
:cond_1e
const/4 v0, 0x0
:goto_1f
iput v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->d:I
.line 118
iget-object v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->b:Ljava/lang/CharSequence;
if-eqz v0, :cond_29
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v1
:cond_29
const/16 v0, 0x1f4
if-le v1, v0, :cond_53
if-eqz p1, :cond_38
.line 119
iget v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->c:I
add-int/lit8 v0, v0, -0x1
iget v1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->d:I
invoke-interface {p1, v0, v1}, Landroid/text/Editable;->delete(II)Landroid/text/Editable;
.line 120
:cond_38
iget v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->c:I
.line 121
iget-object v1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-static {v1}, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;->m(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;)Lcom/imo/xui/widget/edittext/XEditText;
move-result-object v1
if-eqz v1, :cond_48
move-object v2, p1
check-cast v2, Ljava/lang/CharSequence;
invoke-virtual {v1, v2}, Lcom/imo/xui/widget/edittext/XEditText;->setText(Ljava/lang/CharSequence;)V
.line 122
:cond_48
iget-object v1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-static {v1}, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;->m(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;)Lcom/imo/xui/widget/edittext/XEditText;
move-result-object v1
if-eqz v1, :cond_53
invoke-virtual {v1, v0}, Lcom/imo/xui/widget/edittext/XEditText;->setSelection(I)V
.line 124
:cond_53
iget-object v0, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;->b(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;Ljava/lang/String;)V
.line 125
iget-object p1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->a:Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;
invoke-static {p1}, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;->n(Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent;)V
return-void
.end method
.method public final beforeTextChanged(Ljava/lang/CharSequence;III)V
.registers 5
.line 109
iput-object p1, p0, Lcom/imo/android/imoim/community/community/create/component/CommunityEditMsgComponent$g;->b:Ljava/lang/CharSequence;
return-void
.end method
.method public final onTextChanged(Ljava/lang/CharSequence;III)V
.registers 5
return-void
.end method