.class Lcom/moji/forum/ui/TopicLocationSelectActivity$2;
.super Ljava/lang/Object;
.source "TopicLocationSelectActivity.java"

# interfaces
.implements Lcom/moji/dialog/control/MJDialogPickAddressControl$CascadeDataWrap;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/TopicLocationSelectActivity;->onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
.end annotation

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


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Lcom/moji/forum/ui/TopicLocationSelectActivity;


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/TopicLocationSelectActivity;Ljava/util/List;)V
    .locals 0

    .line 95
    iput-object p1, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->b:Lcom/moji/forum/ui/TopicLocationSelectActivity;

    iput-object p2, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

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

    return-void
.end method


# virtual methods
.method public a(II)Ljava/lang/String;
    .locals 1

    if-ltz p1, :cond_0

    .line 127
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    .line 128
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;

    if-ltz p2, :cond_0

    .line 129
    iget-object v0, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->cities:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-lt p2, v0, :cond_0

    .line 130
    iget-object p1, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->cities:Ljava/util/ArrayList;

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo$City;

    iget-object p1, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo$City;->a:Ljava/lang/String;

    return-object p1

    :cond_0
    const-string p1, ""

    return-object p1
.end method

.method public a()Ljava/util/List;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

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

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

    .line 99
    iget-object v1, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

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

    move-result-object v1

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

    move-result v2

    if-eqz v2, :cond_0

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

    move-result-object v2

    check-cast v2, Lcom/moji/areamanagement/entity/ProvinceCityInfo;

    .line 100
    iget-object v2, v2, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->provinceName:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public a(I)Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

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

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

    if-ltz p1, :cond_1

    .line 108
    iget-object v1, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge p1, v1, :cond_1

    .line 109
    iget-object v1, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;

    iget-object p1, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->cities:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->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, Lcom/moji/areamanagement/entity/ProvinceCityInfo$City;

    .line 110
    iget-object v1, v1, Lcom/moji/areamanagement/entity/ProvinceCityInfo$City;->a:Ljava/lang/String;

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

    goto :goto_0

    :cond_0
    return-object v0

    .line 114
    :cond_1
    new-instance p1, Ljava/util/ArrayList;

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

    return-object p1
.end method

.method public b(I)Ljava/lang/String;
    .locals 1

    if-ltz p1, :cond_0

    .line 119
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    .line 120
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;

    iget-object p1, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->provinceName:Ljava/lang/String;

    return-object p1

    :cond_0
    const-string p1, ""

    return-object p1
.end method

.method public b(II)Ljava/lang/String;
    .locals 1

    if-ltz p1, :cond_0

    .line 138
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    .line 139
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$2;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;

    if-ltz p2, :cond_0

    .line 140
    iget-object v0, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->cities:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-lt p2, v0, :cond_0

    .line 141
    iget-object p1, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo;->cities:Ljava/util/ArrayList;

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo$City;

    iget-object p1, p1, Lcom/moji/areamanagement/entity/ProvinceCityInfo$City;->b:Ljava/lang/String;

    return-object p1

    :cond_0
    const-string p1, ""

    return-object p1
.end method
