PurchaseFragment$1.smali

.class Lcom/yctpublication/mastes/purchase/PurchaseFragment$1;
.super Ljava/lang/Object;
.source "PurchaseFragment.java"

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/yctpublication/mastes/purchase/PurchaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/yctpublication/mastes/purchase/PurchaseFragment;


# direct methods
.method constructor <init>(Lcom/yctpublication/mastes/purchase/PurchaseFragment;)V
    .registers 2
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x8010
        }
        names = {
            "this$0"
        }
    .end annotation

    .line 97
    iput-object p1, p0, Lcom/yctpublication/mastes/purchase/PurchaseFragment$1;->this$0:Lcom/yctpublication/mastes/purchase/PurchaseFragment;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 4
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0
        }
        names = {
            "v"
        }
    .end annotation

    .line 100
    iget-object p1, p0, Lcom/yctpublication/mastes/purchase/PurchaseFragment$1;->this$0:Lcom/yctpublication/mastes/purchase/PurchaseFragment;

    iget p1, p1, Lcom/yctpublication/mastes/purchase/PurchaseFragment;->lastSelectedPosition:I

    const/4 v0, -0x1

    if-ne p1, v0, :cond_1f

    .line 101
    iget-object p1, p0, Lcom/yctpublication/mastes/purchase/PurchaseFragment$1;->this$0:Lcom/yctpublication/mastes/purchase/PurchaseFragment;

    invoke-virtual {p1}, Lcom/yctpublication/mastes/purchase/PurchaseFragment;->getContext()Landroid/content/Context;

    move-result-object p1

    iget-object v0, p0, Lcom/yctpublication/mastes/purchase/PurchaseFragment$1;->this$0:Lcom/yctpublication/mastes/purchase/PurchaseFragment;

    const v1, 0x7f1200f1

    invoke-virtual {v0, v1}, Lcom/yctpublication/mastes/purchase/PurchaseFragment;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    goto :goto_24

    .line 103
    :cond_1f
    iget-object p1, p0, Lcom/yctpublication/mastes/purchase/PurchaseFragment$1;->this$0:Lcom/yctpublication/mastes/purchase/PurchaseFragment;

    # invokes: Lcom/yctpublication/mastes/purchase/PurchaseFragment;->checkout()V
    invoke-static {p1}, Lcom/yctpublication/mastes/purchase/PurchaseFragment;->access$100(Lcom/yctpublication/mastes/purchase/PurchaseFragment;)V

    :goto_24
    return-void
.end method