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

# interfaces
.implements Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;


# 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:Landroid/content/Intent;

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


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/TopicLocationSelectActivity;Landroid/content/Intent;)V
    .locals 0

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

    iput-object p2, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$1;->a:Landroid/content/Intent;

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

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/dialog/MJDialog;Lcom/moji/dialog/type/ETypeAction;)V
    .locals 2
    .param p1    # Lcom/moji/dialog/MJDialog;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/moji/dialog/type/ETypeAction;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    .line 153
    invoke-virtual {p1}, Lcom/moji/dialog/MJDialog;->b()Lcom/moji/dialog/control/AbsDialogControl;

    move-result-object p1

    check-cast p1, Lcom/moji/dialog/control/MJDialogPickAddressControl;

    .line 154
    invoke-virtual {p1}, Lcom/moji/dialog/control/MJDialogPickAddressControl;->g()Ljava/lang/String;

    move-result-object p2

    .line 155
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 156
    invoke-virtual {p1}, Lcom/moji/dialog/control/MJDialogPickAddressControl;->h()Ljava/lang/String;

    move-result-object p1

    .line 157
    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$1;->a:Landroid/content/Intent;

    const-string v1, "key_city"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 158
    iget-object p2, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$1;->a:Landroid/content/Intent;

    const-string v0, "key_city_id"

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

    .line 159
    iget-object p1, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$1;->b:Lcom/moji/forum/ui/TopicLocationSelectActivity;

    const/4 p2, -0x1

    iget-object v0, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$1;->a:Landroid/content/Intent;

    invoke-virtual {p1, p2, v0}, Lcom/moji/forum/ui/TopicLocationSelectActivity;->setResult(ILandroid/content/Intent;)V

    .line 160
    iget-object p1, p0, Lcom/moji/forum/ui/TopicLocationSelectActivity$1;->b:Lcom/moji/forum/ui/TopicLocationSelectActivity;

    invoke-virtual {p1}, Lcom/moji/forum/ui/TopicLocationSelectActivity;->finish()V

    :cond_0
    return-void
.end method
