WriteCommentFragment$1.smali

.class Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;
.super Ljava/lang/Object;
.source "WriteCommentFragment.java"

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->editTextOperations()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;


# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)V
    .registers 2

    .line 88
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .registers 5

    .line 107
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_2b

    .line 108
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object v0

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0600c7

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setTextColor(I)V

    .line 109
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setClickable(Z)V

    goto :goto_4b

    .line 111
    :cond_2b
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object v0

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f060111

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setTextColor(I)V

    .line 112
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setClickable(Z)V

    .line 115
    :goto_4b
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a000b

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getInteger(I)I

    move-result v1

    if-gt v0, v1, :cond_6b

    .line 116
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    # setter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->comment:Ljava/lang/String;
    invoke-static {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$102(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;Ljava/lang/String;)Ljava/lang/String;

    .line 119
    :cond_6b
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtCharCounter:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object v0

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getInteger(I)I

    move-result v1

    invoke-interface {p1}, Landroid/text/Editable;->length()I

    move-result p1

    sub-int/2addr v1, p1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .registers 5

    .line 91
    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_2b

    .line 92
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object p1

    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {p2}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f0600c7

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    invoke-virtual {p1, p2}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setTextColor(I)V

    .line 93
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object p1

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setClickable(Z)V

    goto :goto_4b

    .line 95
    :cond_2b
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object p1

    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    invoke-virtual {p2}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f060111

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    invoke-virtual {p1, p2}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setTextColor(I)V

    .line 96
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->txtSend:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/WriteCommentFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    move-result-object p1

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setClickable(Z)V

    :goto_4b
    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .registers 5

    return-void
.end method