.class Lcom/moji/mjweather/setting/activity/InputCityActivity$3;
.super Ljava/lang/Object;
.source "InputCityActivity.java"

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/setting/activity/InputCityActivity;->c()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/setting/activity/InputCityActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/setting/activity/InputCityActivity;)V
    .locals 0

    .line 157
    iput-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    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 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .line 160
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->INFO_LOCATION_SOME_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1, p2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    if-nez p3, :cond_0

    .line 161
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    invoke-static {p1}, Lcom/moji/mjweather/setting/activity/InputCityActivity;->b(Lcom/moji/mjweather/setting/activity/InputCityActivity;)Landroid/widget/EditText;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, ""

    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 162
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    invoke-static {p1}, Lcom/moji/mjweather/setting/activity/InputCityActivity;->c(Lcom/moji/mjweather/setting/activity/InputCityActivity;)V

    .line 163
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    invoke-static {p1}, Lcom/moji/mjweather/setting/activity/InputCityActivity;->d(Lcom/moji/mjweather/setting/activity/InputCityActivity;)V

    goto :goto_0

    .line 165
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    invoke-static {p1}, Lcom/moji/mjweather/setting/activity/InputCityActivity;->e(Lcom/moji/mjweather/setting/activity/InputCityActivity;)Ljava/util/List;

    move-result-object p1

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

    move-result-object p1

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

    .line 166
    iget-object p2, p1, Lcom/moji/areamanagement/entity/CityItemRecord;->cityName:Ljava/lang/String;

    .line 167
    iget p3, p1, Lcom/moji/areamanagement/entity/CityItemRecord;->cityID:I

    .line 168
    iget-object p1, p1, Lcom/moji/areamanagement/entity/CityItemRecord;->provinceName:Ljava/lang/String;

    if-nez p1, :cond_1

    const-string p1, ""

    .line 172
    :cond_1
    new-instance p4, Landroid/content/Intent;

    invoke-direct {p4}, Landroid/content/Intent;-><init>()V

    const-string p5, "cityName"

    .line 173
    invoke-virtual {p4, p5, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p2, "cityId"

    .line 174
    invoke-virtual {p4, p2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string p2, "cityProvince"

    .line 175
    invoke-virtual {p4, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 176
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    const/16 p2, 0x28

    invoke-virtual {p1, p2, p4}, Lcom/moji/mjweather/setting/activity/InputCityActivity;->setResult(ILandroid/content/Intent;)V

    .line 178
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/InputCityActivity$3;->a:Lcom/moji/mjweather/setting/activity/InputCityActivity;

    invoke-virtual {p1}, Lcom/moji/mjweather/setting/activity/InputCityActivity;->finish()V

    :goto_0
    return-void
.end method
