.class public Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;
.super Landroid/widget/EditText;
.source "EmojiFilterEditText.java"


# instance fields
.field private a:I

.field private b:Ljava/lang/String;

.field private c:Z

.field private d:Landroid/text/TextWatcher;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 31
    invoke-direct {p0, p1, p2}, Landroid/widget/EditText;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 44
    new-instance p1, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText$1;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText$1;-><init>(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;)V

    iput-object p1, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->d:Landroid/text/TextWatcher;

    .line 32
    invoke-direct {p0}, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 36
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/EditText;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 44
    new-instance p1, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText$1;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText$1;-><init>(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;)V

    iput-object p1, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->d:Landroid/text/TextWatcher;

    .line 37
    invoke-direct {p0}, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->a()V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;I)I
    .locals 0

    .line 19
    iput p1, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->a:I

    return p1
.end method

.method static synthetic a(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 19
    iput-object p1, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->b:Ljava/lang/String;

    return-object p1
.end method

.method private a()V
    .locals 1

    .line 41
    iget-object v0, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->d:Landroid/text/TextWatcher;

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method

.method private static a(C)Z
    .locals 1

    if-eqz p0, :cond_3

    const/16 v0, 0x9

    if-eq p0, v0, :cond_3

    const/16 v0, 0xa

    if-eq p0, v0, :cond_3

    const/16 v0, 0xd

    if-eq p0, v0, :cond_3

    const/16 v0, 0x20

    if-lt p0, v0, :cond_0

    const v0, 0xd7ff

    if-le p0, v0, :cond_3

    :cond_0
    const v0, 0xe000

    if-lt p0, v0, :cond_1

    const v0, 0xfffd

    if-le p0, v0, :cond_3

    :cond_1
    const/high16 v0, 0x10000

    if-lt p0, v0, :cond_2

    const v0, 0x10ffff

    if-gt p0, v0, :cond_2

    goto :goto_0

    :cond_2
    const/4 p0, 0x0

    goto :goto_1

    :cond_3
    :goto_0
    const/4 p0, 0x1

    :goto_1
    return p0
.end method

.method static synthetic a(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;)Z
    .locals 0

    .line 19
    iget-boolean p0, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->c:Z

    return p0
.end method

.method static synthetic a(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;Z)Z
    .locals 0

    .line 19
    iput-boolean p1, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->c:Z

    return p1
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 4

    .line 83
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_1

    .line 85
    invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C

    move-result v3

    .line 86
    invoke-static {v3}, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->a(C)Z

    move-result v3

    if-nez v3, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    return v1
.end method

.method static synthetic b(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;)I
    .locals 0

    .line 19
    iget p0, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->a:I

    return p0
.end method

.method static synthetic c(Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;)Ljava/lang/String;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/ipc/view/EmojiFilterEditText;->b:Ljava/lang/String;

    return-object p0
.end method
