.class Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;
.super Ljava/lang/Object;
.source "GridViewWithHeaderAndFooter.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Landroid/widget/AdapterView$OnItemLongClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/GridViewWithHeaderAndFooter;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/GridViewWithHeaderAndFooter;


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

    .line 832
    iput-object p1, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

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

    return-void
.end method

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

    .line 832
    invoke-direct {p0, p1}, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;-><init>(Lcom/moji/GridViewWithHeaderAndFooter;)V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .line 836
    iget-object v0, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-static {v0}, Lcom/moji/GridViewWithHeaderAndFooter;->a(Lcom/moji/GridViewWithHeaderAndFooter;)Landroid/widget/AdapterView$OnItemClickListener;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 837
    iget-object v0, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-virtual {v0}, Lcom/moji/GridViewWithHeaderAndFooter;->getHeaderViewCount()I

    move-result v0

    iget-object v1, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-static {v1}, Lcom/moji/GridViewWithHeaderAndFooter;->b(Lcom/moji/GridViewWithHeaderAndFooter;)I

    move-result v1

    mul-int v0, v0, v1

    sub-int v4, p3, v0

    if-ltz v4, :cond_0

    .line 839
    iget-object p3, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-static {p3}, Lcom/moji/GridViewWithHeaderAndFooter;->a(Lcom/moji/GridViewWithHeaderAndFooter;)Landroid/widget/AdapterView$OnItemClickListener;

    move-result-object v1

    move-object v2, p1

    move-object v3, p2

    move-wide v5, p4

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

    :cond_0
    return-void
.end method

.method public onItemLongClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)Z
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)Z"
        }
    .end annotation

    .line 846
    iget-object v0, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-static {v0}, Lcom/moji/GridViewWithHeaderAndFooter;->c(Lcom/moji/GridViewWithHeaderAndFooter;)Landroid/widget/AdapterView$OnItemLongClickListener;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 847
    iget-object v0, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-virtual {v0}, Lcom/moji/GridViewWithHeaderAndFooter;->getHeaderViewCount()I

    move-result v0

    iget-object v1, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-static {v1}, Lcom/moji/GridViewWithHeaderAndFooter;->b(Lcom/moji/GridViewWithHeaderAndFooter;)I

    move-result v1

    mul-int v0, v0, v1

    sub-int v4, p3, v0

    if-ltz v4, :cond_0

    .line 849
    iget-object p3, p0, Lcom/moji/GridViewWithHeaderAndFooter$ItemClickHandler;->a:Lcom/moji/GridViewWithHeaderAndFooter;

    invoke-static {p3}, Lcom/moji/GridViewWithHeaderAndFooter;->c(Lcom/moji/GridViewWithHeaderAndFooter;)Landroid/widget/AdapterView$OnItemLongClickListener;

    move-result-object v1

    move-object v2, p1

    move-object v3, p2

    move-wide v5, p4

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

    :cond_0
    const/4 p1, 0x1

    return p1
.end method
