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

# interfaces
.implements Lcom/moji/location/MJLocationListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/NewTopicActivity;->n()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/forum/ui/NewTopicActivity;


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

    .line 862
    iput-object p1, p0, Lcom/moji/forum/ui/NewTopicActivity$12;->a:Lcom/moji/forum/ui/NewTopicActivity;

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

    return-void
.end method


# virtual methods
.method public onLocateError(Lcom/moji/location/entity/MJLocation;)V
    .locals 0

    .line 908
    iget-object p1, p0, Lcom/moji/forum/ui/NewTopicActivity$12;->a:Lcom/moji/forum/ui/NewTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/NewTopicActivity;->B(Lcom/moji/forum/ui/NewTopicActivity;)Lcom/moji/forum/view/NewTopicLocationView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/forum/view/NewTopicLocationView;->b()V

    return-void
.end method

.method public onLocateSuccess(Lcom/moji/location/entity/MJLocation;)V
    .locals 4

    const-string v0, ""

    if-eqz p1, :cond_1

    .line 868
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getMJCityID()I

    move-result v0

    .line 869
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getProvince()Ljava/lang/String;

    move-result-object v1

    .line 870
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getCity()Ljava/lang/String;

    move-result-object v2

    .line 871
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getDistrict()Ljava/lang/String;

    move-result-object p1

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

    move-result v3

    if-nez v3, :cond_0

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

    move-result v3

    if-eqz v3, :cond_0

    .line 873
    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 875
    :cond_0
    new-instance p1, Ljava/lang/StringBuilder;

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

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object p1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    move-object p1, v0

    const/4 v0, 0x0

    :goto_0
    if-nez v0, :cond_2

    .line 879
    iget-object p1, p0, Lcom/moji/forum/ui/NewTopicActivity$12;->a:Lcom/moji/forum/ui/NewTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/NewTopicActivity;->B(Lcom/moji/forum/ui/NewTopicActivity;)Lcom/moji/forum/view/NewTopicLocationView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/forum/view/NewTopicLocationView;->b()V

    goto :goto_1

    .line 881
    :cond_2
    iget-object v1, p0, Lcom/moji/forum/ui/NewTopicActivity$12;->a:Lcom/moji/forum/ui/NewTopicActivity;

    invoke-static {v1}, Lcom/moji/forum/ui/NewTopicActivity;->B(Lcom/moji/forum/ui/NewTopicActivity;)Lcom/moji/forum/view/NewTopicLocationView;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, p1, v0}, Lcom/moji/forum/view/NewTopicLocationView;->a(Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void
.end method

.method public onOtherDataReady(Lcom/moji/location/entity/MJLocation;)V
    .locals 0

    return-void
.end method
