GenderDialog$2.smali

.class Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;
.super Ljava/lang/Object;
.source "GenderDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.end annotation

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


# instance fields
.field final synthetic this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;


# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;)V
    .registers 2

    .line 34
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .registers 5

    .line 37
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

    # getter for: Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->checkedIndex:I
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->access$000(Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;)I

    move-result p1

    const/4 p2, -0x1

    if-le p1, p2, :cond_24

    .line 38
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

    iget-object p1, p1, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->listener:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$GenderListener;

    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

    # getter for: Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->checkedIndex:I
    invoke-static {p2}, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->access$000(Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;)I

    move-result p2

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

    # getter for: Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->genders:[Ljava/lang/String;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->access$100(Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;)[Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

    # getter for: Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->checkedIndex:I
    invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->access$000(Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;)I

    move-result v1

    aget-object v0, v0, v1

    invoke-interface {p1, p2, v0}, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$GenderListener;->onGenderSelected(ILjava/lang/String;)V

    .line 39
    :cond_24
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog$2;->this$0:Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/dialogs/GenderDialog;->dismiss()V

    return-void
.end method