.class Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "AppStoreHorizontalListView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjappstore/view/AppStoreHorizontalListView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "GestureListener"
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;


# direct methods
.method private constructor <init>(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)V
    .locals 0

    .line 966
    iput-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;Lcom/moji/mjappstore/view/AppStoreHorizontalListView$1;)V
    .locals 0

    .line 966
    invoke-direct {p0, p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;-><init>(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)V

    return-void
.end method


# virtual methods
.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 1

    .line 969
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {v0, p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1
.end method

.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1

    .line 974
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z

    move-result p1

    return p1
.end method

.method public onLongPress(Landroid/view/MotionEvent;)V
    .locals 7

    .line 1018
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->b(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)V

    .line 1020
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    float-to-int p1, p1

    invoke-static {v0, v1, p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;II)I

    move-result p1

    if-ltz p1, :cond_0

    .line 1021
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->d(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 1022
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {v0, p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 1023
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->getOnItemLongClickListener()Landroid/widget/AdapterView$OnItemLongClickListener;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 1025
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->e(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)I

    move-result v0

    add-int v4, v0, p1

    .line 1026
    iget-object v2, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    iget-object p1, p1, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->b:Landroid/widget/ListAdapter;

    .line 1027
    invoke-interface {p1, v4}, Landroid/widget/ListAdapter;->getItemId(I)J

    move-result-wide v5

    .line 1026
    invoke-interface/range {v1 .. v6}, Landroid/widget/AdapterView$OnItemLongClickListener;->onItemLongClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 1031
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->performHapticFeedback(I)Z

    :cond_0
    return-void
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1

    .line 980
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    const/4 p2, 0x1

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p4

    invoke-static {p1, p4}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;Ljava/lang/Boolean;)V

    .line 982
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    sget-object p4, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$OnScrollStateChangedListener$ScrollState;->SCROLL_STATE_TOUCH_SCROLL:Lcom/moji/mjappstore/view/AppStoreHorizontalListView$OnScrollStateChangedListener$ScrollState;

    invoke-static {p1, p4}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;Lcom/moji/mjappstore/view/AppStoreHorizontalListView$OnScrollStateChangedListener$ScrollState;)V

    .line 983
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->b(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)V

    .line 984
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    iget p4, p1, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->d:I

    float-to-int v0, p3

    add-int/2addr p4, v0

    iput p4, p1, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->d:I

    .line 985
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {p3}, Ljava/lang/Math;->round(F)I

    move-result p3

    invoke-static {p1, p3}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;I)V

    .line 986
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->requestLayout()V

    return p2
.end method

.method public onSingleTapConfirmed(Landroid/view/MotionEvent;)Z
    .locals 7

    .line 993
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->b(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)V

    .line 994
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->getOnItemClickListener()Landroid/widget/AdapterView$OnItemClickListener;

    move-result-object v1

    .line 996
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    float-to-int p1, p1

    invoke-static {v0, v2, p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->a(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;II)I

    move-result p1

    if-ltz p1, :cond_0

    .line 999
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->d(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 1000
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-virtual {v0, p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 1001
    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {v0}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->e(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)I

    move-result v0

    add-int v4, v0, p1

    if-eqz v1, :cond_0

    .line 1004
    iget-object v2, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    iget-object p1, p1, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->b:Landroid/widget/ListAdapter;

    invoke-interface {p1, v4}, Landroid/widget/ListAdapter;->getItemId(I)J

    move-result-wide v5

    invoke-interface/range {v1 .. v6}, Landroid/widget/AdapterView$OnItemClickListener;->onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V

    const/4 p1, 0x1

    return p1

    .line 1009
    :cond_0
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->f(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)Landroid/view/View$OnClickListener;

    move-result-object p1

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->d(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)Z

    move-result p1

    if-nez p1, :cond_1

    .line 1010
    iget-object p1, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-static {p1}, Lcom/moji/mjappstore/view/AppStoreHorizontalListView;->f(Lcom/moji/mjappstore/view/AppStoreHorizontalListView;)Landroid/view/View$OnClickListener;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjappstore/view/AppStoreHorizontalListView$GestureListener;->a:Lcom/moji/mjappstore/view/AppStoreHorizontalListView;

    invoke-interface {p1, v0}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V

    :cond_1
    const/4 p1, 0x0

    return p1
.end method
