.class Lcom/scaleasw/powercalc/ConstantActivity$1;
.super Ljava/lang/Object;
.source "ConstantActivity.java"

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/scaleasw/powercalc/ConstantActivity;->loadConstantPage(Ljava/lang/String;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/scaleasw/powercalc/ConstantActivity;


# direct methods
.method constructor <init>(Lcom/scaleasw/powercalc/ConstantActivity;)V
    .locals 0
    .param p1, "this$0"    # Lcom/scaleasw/powercalc/ConstantActivity;

    .prologue
    .line 90
    iput-object p1, p0, Lcom/scaleasw/powercalc/ConstantActivity$1;->this$0:Lcom/scaleasw/powercalc/ConstantActivity;

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

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .param p2, "view"    # Landroid/view/View;
    .param p3, "position"    # I
    .param p4, "id"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 95
    .local p1, "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    iget-object v2, p0, Lcom/scaleasw/powercalc/ConstantActivity$1;->this$0:Lcom/scaleasw/powercalc/ConstantActivity;

    const/high16 v3, 0x7f0b0000

    invoke-virtual {v2, v3}, Lcom/scaleasw/powercalc/ConstantActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    .line 96
    .local v1, "v":Landroid/widget/ListView;
    invoke-virtual {v1, p3}, Landroid/widget/ListView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/scaleasw/powercalc/ConstantItem;

    .line 97
    .local v0, "item":Lcom/scaleasw/powercalc/ConstantItem;
    iget-object v2, v0, Lcom/scaleasw/powercalc/ConstantItem;->type:Lcom/scaleasw/powercalc/ConstantItem$ConstantType;

    sget-object v3, Lcom/scaleasw/powercalc/ConstantItem$ConstantType;->ITEM:Lcom/scaleasw/powercalc/ConstantItem$ConstantType;

    if-ne v2, v3, :cond_0

    iget-object v2, p0, Lcom/scaleasw/powercalc/ConstantActivity$1;->this$0:Lcom/scaleasw/powercalc/ConstantActivity;

    iget-object v3, v0, Lcom/scaleasw/powercalc/ConstantItem;->page:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/scaleasw/powercalc/ConstantActivity;->loadConstantPage(Ljava/lang/String;)V

    .line 101
    :goto_0
    return-void

    .line 99
    :cond_0
    iget-object v2, p0, Lcom/scaleasw/powercalc/ConstantActivity$1;->this$0:Lcom/scaleasw/powercalc/ConstantActivity;

    invoke-static {v2, v0}, Lcom/scaleasw/powercalc/ConstantActivity;->access$000(Lcom/scaleasw/powercalc/ConstantActivity;Lcom/scaleasw/powercalc/ConstantItem;)V

    goto :goto_0
.end method
