.class public Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;
.super Lcom/moji/base/MJActivity;
.source "SnowPoiKeywordSearchActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/amap/api/maps2d/AMap$OnCameraChangeListener;
.implements Lcom/amap/api/maps2d/AMap$OnMapTouchListener;
.implements Lcom/amap/api/services/help/Inputtips$InputtipsListener;
.implements Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter$PoiResultClickListener;
.implements Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$SnowPKSearchCallback;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$SearchTextWatcher;,
        Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$MyDataChangedListener;
    }
.end annotation


# static fields
.field private static final k:I

.field private static final l:I

.field private static o:F

.field public static poiSearchResult:I


# instance fields
.field private A:Landroid/widget/ImageView;

.field private B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

.field private a:Lcom/amap/api/maps2d/AMap;

.field private b:Lcom/amap/api/maps2d/model/Marker;

.field private c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

.field private i:Lcom/moji/location/entity/MJLocation;

.field private j:Lcom/amap/api/maps2d/model/Circle;

.field private m:Lcom/amap/api/maps2d/model/LatLng;

.field private n:Lcom/amap/api/maps2d/MapView;

.field private p:Ljava/lang/String;

.field private q:Landroid/widget/AutoCompleteTextView;

.field private r:Landroid/support/v7/widget/RecyclerView;

.field private s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

.field private t:Lcom/amap/api/maps2d/model/LatLng;

.field private u:Landroid/widget/ImageView;

.field private v:Landroid/widget/ImageView;

.field private w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

.field private x:Landroid/widget/ListView;

.field private y:Landroid/widget/RelativeLayout;

.field private z:Landroid/widget/RelativeLayout;


# direct methods
.method static constructor <clinit>()V
    .locals 4

    const/16 v0, 0xea

    const/16 v1, 0x94

    const/16 v2, 0x42

    const/16 v3, 0x64

    .line 75
    invoke-static {v3, v2, v1, v0}, Landroid/graphics/Color;->argb(IIII)I

    move-result v3

    sput v3, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->k:I

    const/16 v3, 0x14

    .line 76
    invoke-static {v3, v2, v1, v0}, Landroid/graphics/Color;->argb(IIII)I

    move-result v0

    sput v0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->l:I

    const/high16 v0, 0x41400000    # 12.0f

    .line 79
    sput v0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->o:F

    const/16 v0, 0xb

    .line 86
    sput v0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->poiSearchResult:I

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 67
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Ljava/lang/String;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->p:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 67
    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->p:Ljava/lang/String;

    return-object p1
.end method

.method private a()V
    .locals 1

    .line 142
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    if-nez v0, :cond_0

    .line 143
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    invoke-virtual {v0}, Lcom/amap/api/maps2d/MapView;->getMap()Lcom/amap/api/maps2d/AMap;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    .line 144
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {v0}, Lcom/amap/api/maps2d/AMap;->getUiSettings()Lcom/amap/api/maps2d/UiSettings;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(Lcom/amap/api/maps2d/UiSettings;)V

    .line 145
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {v0, p0}, Lcom/amap/api/maps2d/AMap;->setOnCameraChangeListener(Lcom/amap/api/maps2d/AMap$OnCameraChangeListener;)V

    .line 146
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {v0, p0}, Lcom/amap/api/maps2d/AMap;->setOnMapTouchListener(Lcom/amap/api/maps2d/AMap$OnMapTouchListener;)V

    .line 148
    :cond_0
    new-instance v0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-direct {v0, p0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;-><init>(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$SnowPKSearchCallback;)V

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    .line 149
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-virtual {v0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a()Lcom/moji/location/entity/MJLocation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    .line 150
    invoke-direct {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->b()V

    return-void
.end method

.method private a(Landroid/os/Bundle;)V
    .locals 3

    .line 104
    sget v0, Lcom/moji/mjsnowmodule/R$id;->poi_keyword_map:I

    invoke-virtual {p0, v0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/amap/api/maps2d/MapView;

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    .line 107
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    invoke-virtual {v0, p1}, Lcom/amap/api/maps2d/MapView;->onCreate(Landroid/os/Bundle;)V

    .line 109
    sget p1, Lcom/moji/mjsnowmodule/R$id;->key_word:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/AutoCompleteTextView;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    .line 110
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    new-instance v0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$SearchTextWatcher;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$SearchTextWatcher;-><init>(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$1;)V

    invoke-virtual {p1, v0}, Landroid/widget/AutoCompleteTextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 112
    sget p1, Lcom/moji/mjsnowmodule/R$id;->clear_input:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->v:Landroid/widget/ImageView;

    .line 113
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->v:Landroid/widget/ImageView;

    new-instance v0, Lcom/moji/tool/drawable/MJStateDrawable;

    sget v1, Lcom/moji/mjsnowmodule/R$drawable;->activity_upload_photo_search_clear:I

    invoke-direct {v0, v1}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 114
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->v:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 116
    sget p1, Lcom/moji/mjsnowmodule/R$id;->search_result_recycler:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/support/v7/widget/RecyclerView;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->r:Landroid/support/v7/widget/RecyclerView;

    .line 117
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->r:Landroid/support/v7/widget/RecyclerView;

    new-instance v0, Landroid/support/v7/widget/LinearLayoutManager;

    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-direct {v0, p0, v1, v2}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    invoke-virtual {p1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V

    .line 119
    sget p1, Lcom/moji/mjsnowmodule/R$id;->iv_back_to_mylocation:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->u:Landroid/widget/ImageView;

    .line 120
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->u:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 122
    sget p1, Lcom/moji/mjsnowmodule/R$id;->tv_cancel_choose:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 123
    sget v0, Lcom/moji/mjsnowmodule/R$id;->tv_confirm_choose:I

    invoke-virtual {p0, v0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 124
    invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 125
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 127
    sget p1, Lcom/moji/mjsnowmodule/R$id;->keyword_list:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ListView;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->x:Landroid/widget/ListView;

    .line 128
    sget p1, Lcom/moji/mjsnowmodule/R$id;->rl_keyword_layout:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RelativeLayout;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->y:Landroid/widget/RelativeLayout;

    .line 130
    sget p1, Lcom/moji/mjsnowmodule/R$id;->real_input_layout:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RelativeLayout;

    .line 131
    invoke-virtual {p1, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 132
    sget p1, Lcom/moji/mjsnowmodule/R$id;->fake_input_layout:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RelativeLayout;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->z:Landroid/widget/RelativeLayout;

    .line 133
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->z:Landroid/widget/RelativeLayout;

    invoke-virtual {p1, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 135
    sget p1, Lcom/moji/mjsnowmodule/R$id;->user_marker:I

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->A:Landroid/widget/ImageView;

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->LOCATION_PAGE_SHOW:Lcom/moji/statistics/EVENT_TAG;

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

    return-void
.end method

.method private a(Lcom/amap/api/maps2d/model/LatLng;)V
    .locals 3

    .line 330
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->b:Lcom/amap/api/maps2d/model/Marker;

    if-nez v0, :cond_0

    .line 331
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    new-instance v1, Lcom/amap/api/maps2d/model/MarkerOptions;

    invoke-direct {v1}, Lcom/amap/api/maps2d/model/MarkerOptions;-><init>()V

    .line 332
    invoke-virtual {v1, p1}, Lcom/amap/api/maps2d/model/MarkerOptions;->position(Lcom/amap/api/maps2d/model/LatLng;)Lcom/amap/api/maps2d/model/MarkerOptions;

    move-result-object v1

    const/high16 v2, 0x3f000000    # 0.5f

    .line 333
    invoke-virtual {v1, v2, v2}, Lcom/amap/api/maps2d/model/MarkerOptions;->anchor(FF)Lcom/amap/api/maps2d/model/MarkerOptions;

    move-result-object v1

    sget v2, Lcom/moji/mjsnowmodule/R$drawable;->short_time_map_myposition:I

    .line 334
    invoke-static {v2}, Lcom/amap/api/maps2d/model/BitmapDescriptorFactory;->fromResource(I)Lcom/amap/api/maps2d/model/BitmapDescriptor;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/amap/api/maps2d/model/MarkerOptions;->icon(Lcom/amap/api/maps2d/model/BitmapDescriptor;)Lcom/amap/api/maps2d/model/MarkerOptions;

    move-result-object v1

    .line 331
    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/AMap;->addMarker(Lcom/amap/api/maps2d/model/MarkerOptions;)Lcom/amap/api/maps2d/model/Marker;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->b:Lcom/amap/api/maps2d/model/Marker;

    .line 335
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    if-eqz v0, :cond_1

    .line 336
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    invoke-virtual {v0}, Lcom/moji/location/entity/MJLocation;->getAccuracy()F

    move-result v0

    float-to-double v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(Lcom/amap/api/maps2d/model/LatLng;D)V

    goto :goto_0

    .line 339
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->b:Lcom/amap/api/maps2d/model/Marker;

    invoke-virtual {v0, p1}, Lcom/amap/api/maps2d/model/Marker;->setPosition(Lcom/amap/api/maps2d/model/LatLng;)V

    .line 340
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->j:Lcom/amap/api/maps2d/model/Circle;

    if-eqz v0, :cond_1

    .line 341
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->j:Lcom/amap/api/maps2d/model/Circle;

    invoke-virtual {v0, p1}, Lcom/amap/api/maps2d/model/Circle;->setCenter(Lcom/amap/api/maps2d/model/LatLng;)V

    :cond_1
    :goto_0
    return-void
.end method

.method private a(Lcom/amap/api/maps2d/model/LatLng;D)V
    .locals 2

    .line 347
    new-instance v0, Lcom/amap/api/maps2d/model/CircleOptions;

    invoke-direct {v0}, Lcom/amap/api/maps2d/model/CircleOptions;-><init>()V

    const/high16 v1, 0x40000000    # 2.0f

    .line 348
    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/model/CircleOptions;->strokeWidth(F)Lcom/amap/api/maps2d/model/CircleOptions;

    .line 349
    sget v1, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->l:I

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/model/CircleOptions;->fillColor(I)Lcom/amap/api/maps2d/model/CircleOptions;

    .line 350
    sget v1, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->k:I

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/model/CircleOptions;->strokeColor(I)Lcom/amap/api/maps2d/model/CircleOptions;

    .line 351
    invoke-virtual {v0, p1}, Lcom/amap/api/maps2d/model/CircleOptions;->center(Lcom/amap/api/maps2d/model/LatLng;)Lcom/amap/api/maps2d/model/CircleOptions;

    .line 352
    invoke-virtual {v0, p2, p3}, Lcom/amap/api/maps2d/model/CircleOptions;->radius(D)Lcom/amap/api/maps2d/model/CircleOptions;

    .line 353
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {p1, v0}, Lcom/amap/api/maps2d/AMap;->addCircle(Lcom/amap/api/maps2d/model/CircleOptions;)Lcom/amap/api/maps2d/model/Circle;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->j:Lcom/amap/api/maps2d/model/Circle;

    return-void
.end method

.method private a(Lcom/amap/api/services/core/PoiItem;)V
    .locals 3

    .line 470
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    if-nez v0, :cond_0

    .line 471
    new-instance v0, Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    invoke-direct {v0}, Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;-><init>()V

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    .line 473
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    invoke-virtual {p1}, Lcom/amap/api/services/core/PoiItem;->getTitle()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;->address:Ljava/lang/String;

    .line 474
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    invoke-virtual {p1}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v1

    invoke-virtual {v1}, Lcom/amap/api/services/core/LatLonPoint;->getLatitude()D

    move-result-wide v1

    iput-wide v1, v0, Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;->lat:D

    .line 475
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    invoke-virtual {p1}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object p1

    invoke-virtual {p1}, Lcom/amap/api/services/core/LatLonPoint;->getLongitude()D

    move-result-wide v1

    iput-wide v1, v0, Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;->lon:D

    return-void
.end method

.method static synthetic b(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Landroid/widget/AutoCompleteTextView;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    return-object p0
.end method

.method private b()V
    .locals 5

    .line 154
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    if-eqz v0, :cond_0

    .line 155
    new-instance v0, Lcom/amap/api/maps2d/model/LatLng;

    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getLatitude()D

    move-result-wide v1

    iget-object v3, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    invoke-virtual {v3}, Lcom/moji/location/entity/MJLocation;->getLongitude()D

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/amap/api/maps2d/model/LatLng;-><init>(DD)V

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->m:Lcom/amap/api/maps2d/model/LatLng;

    .line 156
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->m:Lcom/amap/api/maps2d/model/LatLng;

    sget v1, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->o:F

    invoke-static {v0, v1}, Lcom/amap/api/maps2d/model/CameraPosition;->fromLatLngZoom(Lcom/amap/api/maps2d/model/LatLng;F)Lcom/amap/api/maps2d/model/CameraPosition;

    move-result-object v0

    .line 157
    invoke-static {v0}, Lcom/amap/api/maps2d/CameraUpdateFactory;->newCameraPosition(Lcom/amap/api/maps2d/model/CameraPosition;)Lcom/amap/api/maps2d/CameraUpdate;

    move-result-object v0

    .line 158
    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {v1, v0}, Lcom/amap/api/maps2d/AMap;->moveCamera(Lcom/amap/api/maps2d/CameraUpdate;)V

    .line 159
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->m:Lcom/amap/api/maps2d/model/LatLng;

    invoke-direct {p0, v0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(Lcom/amap/api/maps2d/model/LatLng;)V

    .line 160
    invoke-direct {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c()V

    .line 161
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getAoiName()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

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

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    return-object p0
.end method

.method private c()V
    .locals 6

    .line 359
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->A:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getTranslationY()F

    move-result v0

    .line 363
    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->A:Landroid/widget/ImageView;

    const-string v2, "translationY"

    const/4 v3, 0x3

    new-array v3, v3, [F

    const/4 v4, 0x0

    aput v0, v3, v4

    iget-object v4, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->A:Landroid/widget/ImageView;

    .line 364
    invoke-virtual {v4}, Landroid/widget/ImageView;->getHeight()I

    move-result v4

    neg-int v4, v4

    int-to-float v4, v4

    const/4 v5, 0x1

    aput v4, v3, v5

    const/4 v4, 0x2

    aput v0, v3, v4

    .line 363
    invoke-static {v1, v2, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    const-wide/16 v1, 0x1f4

    .line 366
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 369
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method

.method static synthetic d(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Landroid/widget/RelativeLayout;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->y:Landroid/widget/RelativeLayout;

    return-object p0
.end method

.method static synthetic e(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Landroid/widget/ListView;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->x:Landroid/widget/ListView;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Lcom/amap/api/maps2d/AMap;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    return-object p0
.end method

.method static synthetic g(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 67
    iget-object p0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->v:Landroid/widget/ImageView;

    return-object p0
.end method


# virtual methods
.method protected a(Lcom/amap/api/maps2d/UiSettings;)V
    .locals 1

    const/4 v0, 0x0

    .line 322
    invoke-virtual {p1, v0}, Lcom/amap/api/maps2d/UiSettings;->setZoomControlsEnabled(Z)V

    const/4 v0, 0x1

    .line 323
    invoke-virtual {p1, v0}, Lcom/amap/api/maps2d/UiSettings;->setScaleControlsEnabled(Z)V

    .line 324
    invoke-virtual {p1, v0}, Lcom/amap/api/maps2d/UiSettings;->setZoomGesturesEnabled(Z)V

    .line 326
    invoke-virtual {p1, v0}, Lcom/amap/api/maps2d/UiSettings;->setScaleControlsEnabled(Z)V

    return-void
.end method

.method protected g()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public onCameraChange(Lcom/amap/api/maps2d/model/CameraPosition;)V
    .locals 0

    return-void
.end method

.method public onCameraChangeFinish(Lcom/amap/api/maps2d/model/CameraPosition;)V
    .locals 5

    .line 415
    iget-object v0, p1, Lcom/amap/api/maps2d/model/CameraPosition;->target:Lcom/amap/api/maps2d/model/LatLng;

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->t:Lcom/amap/api/maps2d/model/LatLng;

    .line 416
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-virtual {v0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a()Lcom/moji/location/entity/MJLocation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    .line 417
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    if-eqz v0, :cond_0

    .line 418
    new-instance v0, Lcom/amap/api/maps2d/model/LatLng;

    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getLatitude()D

    move-result-wide v1

    iget-object v3, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->i:Lcom/moji/location/entity/MJLocation;

    invoke-virtual {v3}, Lcom/moji/location/entity/MJLocation;->getLongitude()D

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/amap/api/maps2d/model/LatLng;-><init>(DD)V

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->m:Lcom/amap/api/maps2d/model/LatLng;

    .line 421
    :cond_0
    iget-object p1, p1, Lcom/amap/api/maps2d/model/CameraPosition;->target:Lcom/amap/api/maps2d/model/LatLng;

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->m:Lcom/amap/api/maps2d/model/LatLng;

    invoke-static {p1, v0}, Lcom/amap/api/maps2d/AMapUtils;->calculateLineDistance(Lcom/amap/api/maps2d/model/LatLng;Lcom/amap/api/maps2d/model/LatLng;)F

    move-result p1

    const/high16 v0, 0x41200000    # 10.0f

    cmpg-float p1, p1, v0

    if-gez p1, :cond_1

    .line 423
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->u:Landroid/widget/ImageView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setEnabled(Z)V

    goto :goto_0

    .line 425
    :cond_1
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->u:Landroid/widget/ImageView;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 427
    :goto_0
    invoke-direct {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    .line 432
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    .line 433
    sget v0, Lcom/moji/mjsnowmodule/R$id;->clear_input:I

    if-ne p1, v0, :cond_0

    .line 434
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    const-string v0, ""

    invoke-virtual {p1, v0}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 435
    :cond_0
    sget v0, Lcom/moji/mjsnowmodule/R$id;->iv_back_to_mylocation:I

    if-ne p1, v0, :cond_1

    .line 436
    invoke-direct {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->b()V

    .line 437
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    const-string v0, ""

    invoke-virtual {p1, v0}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 438
    :cond_1
    sget v0, Lcom/moji/mjsnowmodule/R$id;->tv_cancel_choose:I

    if-ne p1, v0, :cond_2

    .line 439
    invoke-virtual {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->finish()V

    goto :goto_0

    .line 440
    :cond_2
    sget v0, Lcom/moji/mjsnowmodule/R$id;->tv_confirm_choose:I

    if-ne p1, v0, :cond_3

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->LOCATION_CHOOSE:Lcom/moji/statistics/EVENT_TAG;

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

    .line 442
    new-instance p1, Landroid/content/Intent;

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

    .line 443
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v1, "push_site"

    .line 444
    iget-object v2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->w:Lcom/moji/http/snow/bean/SnowPushDetail$SubPush;

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    .line 445
    invoke-virtual {p1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 446
    sget v0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->poiSearchResult:I

    invoke-virtual {p0, v0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->setResult(ILandroid/content/Intent;)V

    .line 447
    invoke-virtual {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->finish()V

    goto :goto_0

    .line 448
    :cond_3
    sget v0, Lcom/moji/mjsnowmodule/R$id;->fake_input_layout:I

    if-ne p1, v0, :cond_4

    .line 449
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->z:Landroid/widget/RelativeLayout;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->setEnabled(Z)V

    .line 450
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->z:Landroid/widget/RelativeLayout;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 451
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->requestFocus()Z

    .line 452
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    invoke-static {p1}, Lcom/moji/tool/DeviceTool;->a(Landroid/view/View;)V

    :cond_4
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 96
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 97
    sget v0, Lcom/moji/mjsnowmodule/R$layout;->activity_poi_keyword_search:I

    invoke-virtual {p0, v0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->setContentView(I)V

    .line 98
    invoke-direct {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(Landroid/os/Bundle;)V

    .line 99
    invoke-direct {p0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 395
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onDestroy()V

    .line 398
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    invoke-virtual {v0}, Lcom/amap/api/maps2d/MapView;->onDestroy()V

    .line 399
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->clearFocus()V

    .line 400
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->A:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->clearAnimation()V

    return-void
.end method

.method public onGeoFail()V
    .locals 2

    const-string v0, "SnowPoiKeywordSearchActivity"

    const-string v1, "\u9006\u5730\u7406\u7f16\u7801\u5931\u8d25"

    .line 231
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onGeoSuccess(Lcom/moji/location/geo/MJReGeoCodeResult;I)V
    .locals 6

    .line 220
    invoke-virtual {p1}, Lcom/moji/location/geo/MJReGeoCodeResult;->b()Lcom/moji/location/geo/MJReGeoCodeAddress;

    move-result-object p1

    if-nez p1, :cond_0

    return-void

    .line 224
    :cond_0
    invoke-virtual {p1}, Lcom/moji/location/geo/MJReGeoCodeAddress;->getTownship()Ljava/lang/String;

    move-result-object p2

    .line 225
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-virtual {p1}, Lcom/moji/location/geo/MJReGeoCodeAddress;->getCity()Ljava/lang/String;

    move-result-object p1

    new-instance v1, Lcom/amap/api/services/core/LatLonPoint;

    iget-object v2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->t:Lcom/amap/api/maps2d/model/LatLng;

    iget-wide v2, v2, Lcom/amap/api/maps2d/model/LatLng;->latitude:D

    iget-object v4, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->t:Lcom/amap/api/maps2d/model/LatLng;

    iget-wide v4, v4, Lcom/amap/api/maps2d/model/LatLng;->longitude:D

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/amap/api/services/core/LatLonPoint;-><init>(DD)V

    invoke-virtual {v0, p2, p1, v1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a(Ljava/lang/String;Ljava/lang/String;Lcom/amap/api/services/core/LatLonPoint;)V

    return-void
.end method

.method public onGetInputtips(Ljava/util/List;I)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/amap/api/services/help/Tip;",
            ">;I)V"
        }
    .end annotation

    const/16 v0, 0x3e8

    if-ne p2, v0, :cond_3

    .line 176
    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    invoke-virtual {p2, v0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a(Landroid/widget/EditText;)Ljava/lang/String;

    move-result-object p2

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

    move-result v0

    if-nez v0, :cond_2

    if-eqz p1, :cond_2

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

    move-result v0

    if-gtz v0, :cond_0

    goto :goto_0

    .line 183
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->y:Landroid/widget/RelativeLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 184
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->x:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setVisibility(I)V

    .line 187
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    if-nez v0, :cond_1

    .line 188
    new-instance v0, Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    invoke-direct {v0, p2, p1, p0}, Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;-><init>(Ljava/lang/String;Ljava/util/List;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    .line 189
    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    new-instance v0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$MyDataChangedListener;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$MyDataChangedListener;-><init>(Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;Ljava/util/List;Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity$1;)V

    invoke-virtual {p2, v0}, Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;->a(Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter$OnDataChangedListener;)V

    .line 190
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->x:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_1

    .line 192
    :cond_1
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->B:Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;

    invoke-virtual {v0, p2, p1}, Lcom/moji/mjsnowmodule/adapter/SnowAutoTextAdapter;->a(Ljava/lang/String;Ljava/util/List;)V

    goto :goto_1

    .line 179
    :cond_2
    :goto_0
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->y:Landroid/widget/RelativeLayout;

    const/16 p2, 0x8

    invoke-virtual {p1, p2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 180
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->x:Landroid/widget/ListView;

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setVisibility(I)V

    return-void

    .line 195
    :cond_3
    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V

    :goto_1
    return-void
.end method

.method public onItemClick(Ljava/util/List;I)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;",
            ">;I)V"
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 243
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

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

    move-result-object v2

    check-cast v2, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;

    if-ne v1, p2, :cond_0

    const/4 v3, 0x1

    goto :goto_1

    :cond_0
    const/4 v3, 0x0

    .line 245
    :goto_1
    iput-boolean v3, v2, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;->a:Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 248
    :cond_1
    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;

    iget-object v0, v0, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;->b:Lcom/amap/api/services/core/PoiItem;

    invoke-direct {p0, v0}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(Lcom/amap/api/services/core/PoiItem;)V

    .line 249
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    invoke-virtual {v0, p1}, Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;->a(Ljava/util/List;)V

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->LOCATION_LIST_CHOOSE:Lcom/moji/statistics/EVENT_TAG;

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

    .line 254
    new-instance v0, Lcom/amap/api/maps2d/model/CameraPosition;

    new-instance v1, Lcom/amap/api/maps2d/model/LatLng;

    .line 255
    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;

    iget-object v2, v2, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;->b:Lcom/amap/api/services/core/PoiItem;

    invoke-virtual {v2}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v2

    invoke-virtual {v2}, Lcom/amap/api/services/core/LatLonPoint;->getLatitude()D

    move-result-wide v2

    .line 256
    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;

    iget-object p1, p1, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;->b:Lcom/amap/api/services/core/PoiItem;

    invoke-virtual {p1}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object p1

    invoke-virtual {p1}, Lcom/amap/api/services/core/LatLonPoint;->getLongitude()D

    move-result-wide p1

    invoke-direct {v1, v2, v3, p1, p2}, Lcom/amap/api/maps2d/model/LatLng;-><init>(DD)V

    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {p1}, Lcom/amap/api/maps2d/AMap;->getCameraPosition()Lcom/amap/api/maps2d/model/CameraPosition;

    move-result-object p1

    iget p1, p1, Lcom/amap/api/maps2d/model/CameraPosition;->zoom:F

    const/high16 p2, 0x41f00000    # 30.0f

    const/4 v2, 0x0

    invoke-direct {v0, v1, p1, p2, v2}, Lcom/amap/api/maps2d/model/CameraPosition;-><init>(Lcom/amap/api/maps2d/model/LatLng;FFF)V

    .line 254
    invoke-static {v0}, Lcom/amap/api/maps2d/CameraUpdateFactory;->newCameraPosition(Lcom/amap/api/maps2d/model/CameraPosition;)Lcom/amap/api/maps2d/CameraUpdate;

    move-result-object p1

    .line 257
    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a:Lcom/amap/api/maps2d/AMap;

    invoke-virtual {p2, p1}, Lcom/amap/api/maps2d/AMap;->moveCamera(Lcom/amap/api/maps2d/CameraUpdate;)V

    return-void
.end method

.method protected onPause()V
    .locals 1

    .line 387
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V

    .line 390
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    invoke-virtual {v0}, Lcom/amap/api/maps2d/MapView;->onPause()V

    return-void
.end method

.method public onPointerCaptureChanged(Z)V
    .locals 0

    return-void
.end method

.method protected onResume()V
    .locals 1

    .line 167
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onResume()V

    .line 169
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    invoke-virtual {v0}, Lcom/amap/api/maps2d/MapView;->onResume()V

    return-void
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 1

    .line 374
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 377
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->n:Lcom/amap/api/maps2d/MapView;

    invoke-virtual {v0, p1}, Lcom/amap/api/maps2d/MapView;->onSaveInstanceState(Landroid/os/Bundle;)V

    return-void
.end method

.method public onSearchFail()V
    .locals 0

    return-void
.end method

.method public onSearchResult(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;",
            ">;)V"
        }
    .end annotation

    .line 201
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->q:Landroid/widget/AutoCompleteTextView;

    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->b(Landroid/view/View;)V

    .line 202
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    if-nez v0, :cond_0

    .line 203
    new-instance v0, Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    invoke-direct {v0, p1}, Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;-><init>(Ljava/util/List;)V

    iput-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    .line 204
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    invoke-virtual {v0, p0}, Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;->a(Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter$PoiResultClickListener;)V

    .line 205
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->r:Landroid/support/v7/widget/RecyclerView;

    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V

    goto :goto_0

    .line 207
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->s:Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;

    invoke-virtual {v0, p1}, Lcom/moji/mjsnowmodule/adapter/PoiSearchResultAdapter;->a(Ljava/util/List;)V

    :goto_0
    const/4 v0, 0x0

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

    move-result-object p1

    check-cast p1, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;

    iget-object p1, p1, Lcom/moji/mjsnowmodule/bean/PoiSearchResultBean;->b:Lcom/amap/api/services/core/PoiItem;

    invoke-direct {p0, p1}, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->a(Lcom/amap/api/services/core/PoiItem;)V

    return-void
.end method

.method public onTouch(Landroid/view/MotionEvent;)V
    .locals 1

    .line 236
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    .line 237
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->t:Lcom/amap/api/maps2d/model/LatLng;

    invoke-virtual {p1, v0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a(Lcom/amap/api/maps2d/model/LatLng;)V

    :cond_0
    return-void
.end method

.method public searchButton(Ljava/lang/String;)V
    .locals 2

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->LOCATION_SEARCH_CLICK:Lcom/moji/statistics/EVENT_TAG;

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

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

    move-result v0

    if-eqz v0, :cond_0

    const-string p1, "\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u5b57"

    .line 463
    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 465
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowPoiKeywordSearchActivity;->c:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    const-string v1, ""

    invoke-virtual {v0, p1, v1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method
