AllAuthorsFragment$2.smali

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

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lhurriyet/mobil/android/hurriyet/fragments/AllAuthorsFragment;->initViews(Landroid/view/View;)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/AllAuthorsFragment;

.field final synthetic val$editTextSearch:Landroid/widget/EditText;


# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/fragments/AllAuthorsFragment;Landroid/widget/EditText;)V
    .registers 3

    .line 84
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AllAuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AllAuthorsFragment;

    iput-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AllAuthorsFragment$2;->val$editTextSearch:Landroid/widget/EditText;

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

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 4

    .line 87
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result p2

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result p1

    div-int/lit8 p1, p1, 0x6

    sub-int/2addr v0, p1

    int-to-float p1, v0

    cmpl-float p1, p2, p1

    if-lez p1, :cond_1b

    .line 88
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AllAuthorsFragment$2;->val$editTextSearch:Landroid/widget/EditText;

    const-string p2, ""

    invoke-virtual {p1, p2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_1b
    const/4 p1, 0x0

    return p1
.end method