.class Lcom/moji/dialog/control/MJDialogPickAddressControl$1;
.super Ljava/lang/Object;
.source "MJDialogPickAddressControl.java"

# interfaces
.implements Lcom/moji/pickerview/listener/OnItemSelectedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/dialog/control/MJDialogPickAddressControl;->a(Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;

.field final synthetic b:Lcom/moji/dialog/control/MJDialogPickAddressControl;


# direct methods
.method constructor <init>(Lcom/moji/dialog/control/MJDialogPickAddressControl;Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;)V
    .locals 0

    .line 58
    iput-object p1, p0, Lcom/moji/dialog/control/MJDialogPickAddressControl$1;->b:Lcom/moji/dialog/control/MJDialogPickAddressControl;

    iput-object p2, p0, Lcom/moji/dialog/control/MJDialogPickAddressControl$1;->a:Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;

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

    return-void
.end method


# virtual methods
.method public onItemSelected(I)V
    .locals 2

    .line 61
    iget-object v0, p0, Lcom/moji/dialog/control/MJDialogPickAddressControl$1;->b:Lcom/moji/dialog/control/MJDialogPickAddressControl;

    iget-object v0, v0, Lcom/moji/dialog/control/MJDialogPickAddressControl;->d:Lcom/moji/pickerview/lib/WheelView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/pickerview/lib/WheelView;->setCurrentItem(I)V

    .line 62
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 63
    iget-object v1, p0, Lcom/moji/dialog/control/MJDialogPickAddressControl$1;->a:Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;

    invoke-interface {v1, p1}, Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;->a(I)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 64
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 66
    :cond_0
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogPickAddressControl$1;->b:Lcom/moji/dialog/control/MJDialogPickAddressControl;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogPickAddressControl;->d:Lcom/moji/pickerview/lib/WheelView;

    new-instance v1, Lcom/moji/pickerview/adapter/ArrayWheelAdapter;

    invoke-direct {v1, v0}, Lcom/moji/pickerview/adapter/ArrayWheelAdapter;-><init>(Ljava/util/List;)V

    invoke-virtual {p1, v1}, Lcom/moji/pickerview/lib/WheelView;->setAdapter(Lcom/moji/pickerview/adapter/WheelAdapter;)V

    return-void
.end method
