.class public Landroid/support/v13/view/DragStartHelper;
.super Ljava/lang/Object;
.source "DragStartHelper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroid/support/v13/view/DragStartHelper$OnDragStartListener;
    }
.end annotation


# instance fields
.field private final a:Landroid/support/v13/view/DragStartHelper$OnDragStartListener;

.field private b:I

.field private c:I

.field private d:Z


# virtual methods
.method public a(Landroid/view/View;)Z
    .locals 1

    .line 172
    iget-object v0, p0, Landroid/support/v13/view/DragStartHelper;->a:Landroid/support/v13/view/DragStartHelper$OnDragStartListener;

    invoke-interface {v0, p1, p0}, Landroid/support/v13/view/DragStartHelper$OnDragStartListener;->a(Landroid/view/View;Landroid/support/v13/view/DragStartHelper;)Z

    move-result p1

    return p1
.end method

.method public a(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 4

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

    move-result v0

    float-to-int v0, v0

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

    move-result v1

    float-to-int v1, v1

    .line 133
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    const/4 v3, 0x0

    packed-switch v2, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    const/16 v2, 0x2002

    .line 140
    invoke-static {p2, v2}, Landroid/support/v4/view/MotionEventCompat;->isFromSource(Landroid/view/MotionEvent;I)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 141
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getButtonState()I

    move-result p2

    and-int/lit8 p2, p2, 0x1

    if-nez p2, :cond_0

    goto :goto_0

    .line 145
    :cond_0
    iget-boolean p2, p0, Landroid/support/v13/view/DragStartHelper;->d:Z

    if-eqz p2, :cond_1

    goto :goto_0

    .line 149
    :cond_1
    iget p2, p0, Landroid/support/v13/view/DragStartHelper;->b:I

    if-ne p2, v0, :cond_2

    iget p2, p0, Landroid/support/v13/view/DragStartHelper;->c:I

    if-ne p2, v1, :cond_2

    goto :goto_0

    .line 153
    :cond_2
    iput v0, p0, Landroid/support/v13/view/DragStartHelper;->b:I

    .line 154
    iput v1, p0, Landroid/support/v13/view/DragStartHelper;->c:I

    .line 155
    iget-object p2, p0, Landroid/support/v13/view/DragStartHelper;->a:Landroid/support/v13/view/DragStartHelper$OnDragStartListener;

    invoke-interface {p2, p1, p0}, Landroid/support/v13/view/DragStartHelper$OnDragStartListener;->a(Landroid/view/View;Landroid/support/v13/view/DragStartHelper;)Z

    move-result p1

    iput-boolean p1, p0, Landroid/support/v13/view/DragStartHelper;->d:Z

    .line 156
    iget-boolean p1, p0, Landroid/support/v13/view/DragStartHelper;->d:Z

    return p1

    .line 160
    :pswitch_1
    iput-boolean v3, p0, Landroid/support/v13/view/DragStartHelper;->d:Z

    goto :goto_0

    .line 135
    :pswitch_2
    iput v0, p0, Landroid/support/v13/view/DragStartHelper;->b:I

    .line 136
    iput v1, p0, Landroid/support/v13/view/DragStartHelper;->c:I

    :cond_3
    :goto_0
    return v3

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
