.class public Lcom/moji/mjallergy/viewcontrol/AllergyMapView;
.super Lcom/moji/viewcontrol/MJViewControl;
.source "AllergyMapView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/amap/api/maps2d/AMap$OnCameraChangeListener;
.implements Lcom/amap/api/maps2d/AMap$OnMapTouchListener;
.implements Lcom/moji/mjallergy/presenter/MapViewPresenter$MapCallback;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/viewcontrol/MJViewControl<",
        "Lcom/moji/http/allergy/bean/AllergyMainBean;",
        ">;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/amap/api/maps2d/AMap$OnCameraChangeListener;",
        "Lcom/amap/api/maps2d/AMap$OnMapTouchListener;",
        "Lcom/moji/mjallergy/presenter/MapViewPresenter$MapCallback;"
    }
.end annotation


# static fields
.field private static e:F = 7.0f


# instance fields
.field private a:Lcom/amap/api/maps2d/MapView;

.field private b:Landroid/widget/TextView;

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

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

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

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

.field private final h:I

.field private final i:I

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

.field private k:Lcom/moji/mjallergy/presenter/MapViewPresenter;

.field private l:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Lcom/amap/api/maps2d/model/LatLng;",
            "Lcom/amap/api/maps2d/model/Marker;",
            ">;"
        }
    .end annotation
.end field

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

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

.field private o:F

.field private p:Lcom/moji/areamanagement/db/LocalCityDBHelper;

.field private q:Z

.field private r:Z

.field private s:J

.field private t:Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    .line 85
    invoke-direct {p0, p1}, Lcom/moji/viewcontrol/MJViewControl;-><init>(Landroid/content/Context;)V

    const/16 p1, 0xea

    const/16 v0, 0x94

    const/16 v1, 0x42

    const/16 v2, 0x64

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

    move-result v3

    iput v3, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->h:I

    const/16 v3, 0x14

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

    move-result p1

    iput p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->i:I

    const/4 p1, 0x0

    .line 76
    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->m:Lcom/amap/api/maps2d/model/LatLng;

    .line 77
    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->n:Lcom/amap/api/maps2d/model/Marker;

    const/4 p1, 0x0

    .line 80
    iput-boolean p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->q:Z

    const/4 p1, 0x1

    .line 81
    iput-boolean p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->r:Z

    const-wide/16 v0, 0x0

    .line 82
    iput-wide v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->s:J

    .line 86
    new-instance p1, Ljava/util/HashMap;

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

    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->l:Ljava/util/HashMap;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;J)J
    .locals 0

    .line 62
    iput-wide p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->s:J

    return-wide p1
.end method

.method static synthetic a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/amap/api/maps2d/model/Marker;
    .locals 0

    .line 62
    iget-object p0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->n:Lcom/amap/api/maps2d/model/Marker;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/amap/api/maps2d/model/Marker;)Lcom/amap/api/maps2d/model/Marker;
    .locals 0

    .line 62
    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->n:Lcom/amap/api/maps2d/model/Marker;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;)Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;
    .locals 0

    .line 62
    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->t:Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    return-object p1
.end method

.method private a(Lcom/amap/api/maps2d/UiSettings;)V
    .locals 1

    const/4 v0, 0x0

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

    const/4 v0, 0x1

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

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

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

    return-void
.end method

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

    .line 186
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->f:Lcom/amap/api/maps2d/model/Marker;

    if-nez v0, :cond_0

    .line 187
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c: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 188
    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 189
    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, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->short_time_map_myposition:I

    .line 190
    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 187
    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/mjallergy/viewcontrol/AllergyMapView;->f:Lcom/amap/api/maps2d/model/Marker;

    .line 191
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->d:Lcom/moji/location/entity/MJLocation;

    if-eqz v0, :cond_1

    .line 192
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->d: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/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/model/LatLng;D)V

    goto :goto_0

    .line 195
    :cond_0
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->f: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 196
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->g:Lcom/amap/api/maps2d/model/Circle;

    if-eqz v0, :cond_1

    .line 197
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->g: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 221
    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 222
    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/model/CircleOptions;->strokeWidth(F)Lcom/amap/api/maps2d/model/CircleOptions;

    .line 223
    iget v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->i:I

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

    .line 224
    iget v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->h:I

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

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

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

    .line 227
    iget-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c: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/mjallergy/viewcontrol/AllergyMapView;->g:Lcom/amap/api/maps2d/model/Circle;

    return-void
.end method

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

    .line 216
    invoke-static {p1, p2}, Lcom/amap/api/maps2d/CameraUpdateFactory;->newLatLngZoom(Lcom/amap/api/maps2d/model/LatLng;F)Lcom/amap/api/maps2d/CameraUpdate;

    move-result-object p1

    .line 217
    iget-object p2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c: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 private a(Lcom/amap/api/maps2d/model/Marker;Landroid/view/View;)V
    .locals 1

    .line 206
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->tv_allergy_map_city:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    .line 207
    invoke-virtual {p1}, Lcom/amap/api/maps2d/model/Marker;->getTitle()Ljava/lang/String;

    move-result-object p1

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

    move-result v0

    if-nez v0, :cond_0

    .line 209
    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_0
    const/16 p1, 0x8

    .line 211
    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/amap/api/maps2d/model/LatLng;F)V
    .locals 0

    .line 62
    invoke-direct {p0, p1, p2}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/model/LatLng;F)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/amap/api/maps2d/model/Marker;Landroid/view/View;)V
    .locals 0

    .line 62
    invoke-direct {p0, p1, p2}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/model/Marker;Landroid/view/View;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)F
    .locals 0

    .line 62
    iget p0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->o:F

    return p0
.end method

.method private b(Lcom/amap/api/maps2d/model/LatLng;)V
    .locals 4

    .line 235
    invoke-direct {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->g()V

    .line 236
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->j:Lcom/amap/api/maps2d/model/Marker;

    if-nez v0, :cond_0

    .line 237
    invoke-virtual {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->short_time_map_click_marker:I

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 238
    iget-object v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

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

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

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

    move-result-object p1

    const/high16 v2, 0x3f000000    # 0.5f

    const/high16 v3, 0x3f800000    # 1.0f

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

    move-result-object p1

    .line 241
    invoke-static {v0}, Lcom/amap/api/maps2d/model/BitmapDescriptorFactory;->fromBitmap(Landroid/graphics/Bitmap;)Lcom/amap/api/maps2d/model/BitmapDescriptor;

    move-result-object v0

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

    move-result-object p1

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

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->j:Lcom/amap/api/maps2d/model/Marker;

    goto :goto_0

    .line 243
    :cond_0
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->j:Lcom/amap/api/maps2d/model/Marker;

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

    :goto_0
    return-void
.end method

.method private c(Lcom/amap/api/maps2d/model/LatLng;)Z
    .locals 1

    .line 355
    iget-boolean v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->r:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->m:Lcom/amap/api/maps2d/model/LatLng;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->m:Lcom/amap/api/maps2d/model/LatLng;

    invoke-virtual {v0, p1}, Lcom/amap/api/maps2d/model/LatLng;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_1

    :cond_0
    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method static synthetic c(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Z
    .locals 0

    .line 62
    iget-boolean p0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->q:Z

    return p0
.end method

.method static synthetic d(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/areamanagement/db/LocalCityDBHelper;
    .locals 0

    .line 62
    iget-object p0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->p:Lcom/moji/areamanagement/db/LocalCityDBHelper;

    return-object p0
.end method

.method static synthetic e(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;
    .locals 0

    .line 62
    iget-object p0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->t:Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    return-object p0
.end method

.method private e()V
    .locals 2

    .line 106
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

    if-nez v0, :cond_0

    .line 107
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a: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/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

    .line 108
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

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

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/UiSettings;)V

    .line 109
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

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

    .line 110
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

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

    .line 112
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

    new-instance v1, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$1;

    invoke-direct {v1, p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$1;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)V

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/AMap;->setOnMarkerClickListener(Lcom/amap/api/maps2d/AMap$OnMarkerClickListener;)V

    .line 122
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

    new-instance v1, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$2;

    invoke-direct {v1, p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$2;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)V

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/AMap;->setOnMapClickListener(Lcom/amap/api/maps2d/AMap$OnMapClickListener;)V

    .line 132
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

    new-instance v1, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$3;

    invoke-direct {v1, p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$3;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)V

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/AMap;->setInfoWindowAdapter(Lcom/amap/api/maps2d/AMap$InfoWindowAdapter;)V

    :cond_0
    return-void
.end method

.method static synthetic f(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)J
    .locals 2

    .line 62
    iget-wide v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->s:J

    return-wide v0
.end method

.method private f()V
    .locals 5

    .line 176
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->d:Lcom/moji/location/entity/MJLocation;

    if-eqz v0, :cond_0

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

    iget-object v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->d: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/mjallergy/viewcontrol/AllergyMapView;->d: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

    .line 178
    sget v1, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->e:F

    invoke-direct {p0, v0, v1}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/model/LatLng;F)V

    .line 179
    invoke-direct {p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/model/LatLng;)V

    .line 180
    invoke-direct {p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->b(Lcom/amap/api/maps2d/model/LatLng;)V

    .line 182
    :cond_0
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->k:Lcom/moji/mjallergy/presenter/MapViewPresenter;

    iget-wide v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->s:J

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjallergy/presenter/MapViewPresenter;->a(J)V

    return-void
.end method

.method static synthetic g(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/mjallergy/presenter/MapViewPresenter;
    .locals 0

    .line 62
    iget-object p0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->k:Lcom/moji/mjallergy/presenter/MapViewPresenter;

    return-object p0
.end method

.method private g()V
    .locals 1

    .line 248
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v0

    if-nez v0, :cond_0

    .line 249
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$string;->network_unaviable:I

    invoke-static {v0}, Lcom/moji/tool/ToastTool;->a(I)V

    :cond_0
    return-void
.end method

.method private h()V
    .locals 11

    const/4 v0, 0x1

    .line 360
    iput-boolean v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->r:Z

    .line 361
    new-instance v1, Lcom/moji/areamanagement/db/LocalCityDBHelper;

    invoke-virtual {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/moji/areamanagement/db/LocalCityDBHelper;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->p:Lcom/moji/areamanagement/db/LocalCityDBHelper;

    .line 362
    new-instance v1, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;

    invoke-virtual {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;-><init>(Landroid/content/Context;)V

    .line 363
    invoke-virtual {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    sget v3, Lpad/aqi/cnemc/com/mjallergymodule/R$layout;->dialog_map_pick_city:I

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 364
    sget v3, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->choose_city_cancel:I

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 365
    sget v4, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->choose_city_ok:I

    invoke-virtual {v2, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 366
    sget v5, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->pick_province:I

    invoke-virtual {v2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lcom/moji/pickerview/lib/WheelView;

    .line 367
    sget v6, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->pick_city:I

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/moji/pickerview/lib/WheelView;

    const/high16 v7, 0x41800000    # 16.0f

    .line 369
    invoke-virtual {v5, v7}, Lcom/moji/pickerview/lib/WheelView;->setCenterTextSize(F)V

    .line 370
    invoke-virtual {v6, v7}, Lcom/moji/pickerview/lib/WheelView;->setCenterTextSize(F)V

    const/high16 v7, 0x41600000    # 14.0f

    .line 372
    invoke-virtual {v5, v7}, Lcom/moji/pickerview/lib/WheelView;->setOuterTextSize(F)V

    .line 373
    invoke-virtual {v6, v7}, Lcom/moji/pickerview/lib/WheelView;->setOuterTextSize(F)V

    .line 375
    new-instance v7, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    invoke-direct {v7}, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;-><init>()V

    const/4 v8, -0x1

    .line 376
    iput v8, v7, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;->c:I

    const-string v8, ""

    .line 377
    iput-object v8, v7, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;->b:Ljava/lang/String;

    const/4 v8, 0x0

    .line 378
    iput v8, v7, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;->d:I

    .line 380
    iget-object v9, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->p:Lcom/moji/areamanagement/db/LocalCityDBHelper;

    invoke-virtual {v9, v7}, Lcom/moji/areamanagement/db/LocalCityDBHelper;->a(Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;)Ljava/util/ArrayList;

    move-result-object v7

    .line 381
    new-instance v9, Lcom/moji/webview/pickcity/CityWheelAdapter;

    invoke-direct {v9, v7}, Lcom/moji/webview/pickcity/CityWheelAdapter;-><init>(Ljava/util/List;)V

    .line 383
    invoke-virtual {v5, v9}, Lcom/moji/pickerview/lib/WheelView;->setAdapter(Lcom/moji/pickerview/adapter/WheelAdapter;)V

    .line 384
    iget-object v9, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->p:Lcom/moji/areamanagement/db/LocalCityDBHelper;

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

    move-result-object v10

    check-cast v10, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    invoke-virtual {v9, v10}, Lcom/moji/areamanagement/db/LocalCityDBHelper;->b(Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;)Ljava/util/ArrayList;

    move-result-object v9

    .line 385
    new-array v0, v0, [Lcom/moji/webview/pickcity/CityWheelAdapter;

    new-instance v10, Lcom/moji/webview/pickcity/CityWheelAdapter;

    invoke-direct {v10, v9}, Lcom/moji/webview/pickcity/CityWheelAdapter;-><init>(Ljava/util/List;)V

    aput-object v10, v0, v8

    .line 386
    aget-object v10, v0, v8

    invoke-virtual {v6, v10}, Lcom/moji/pickerview/lib/WheelView;->setAdapter(Lcom/moji/pickerview/adapter/WheelAdapter;)V

    .line 388
    invoke-virtual {v9}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v10

    if-nez v10, :cond_0

    .line 389
    invoke-virtual {v9, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    iput-object v8, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->t:Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    .line 392
    :cond_0
    new-instance v8, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$4;

    invoke-direct {v8, p0, v6, v0, v7}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$4;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/moji/pickerview/lib/WheelView;[Lcom/moji/webview/pickcity/CityWheelAdapter;Ljava/util/ArrayList;)V

    invoke-virtual {v5, v8}, Lcom/moji/pickerview/lib/WheelView;->setOnItemSelectedListener(Lcom/moji/pickerview/listener/OnItemSelectedListener;)V

    .line 403
    new-instance v5, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$5;

    invoke-direct {v5, p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$5;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;[Lcom/moji/webview/pickcity/CityWheelAdapter;)V

    invoke-virtual {v6, v5}, Lcom/moji/pickerview/lib/WheelView;->setOnItemSelectedListener(Lcom/moji/pickerview/listener/OnItemSelectedListener;)V

    .line 417
    invoke-virtual {v1, v2}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;->a(Landroid/view/View;)Lcom/moji/dialog/control/MJDialogCustomControl$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;->a()Lcom/moji/dialog/MJDialog;

    move-result-object v0

    .line 419
    new-instance v1, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$6;

    invoke-direct {v1, p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$6;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/moji/dialog/MJDialog;)V

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 425
    new-instance v1, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;

    invoke-direct {v1, p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;-><init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/moji/dialog/MJDialog;)V

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 442
    invoke-virtual {v0}, Lcom/moji/dialog/MJDialog;->show()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 351
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$string;->choose_city_failed:I

    invoke-static {v0}, Lcom/moji/tool/ToastTool;->a(I)V

    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 1

    .line 150
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a:Lcom/amap/api/maps2d/MapView;

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

    return-void
.end method

.method public a(Lcom/moji/http/allergy/bean/AllergyAreaQueryBean;I)V
    .locals 7

    .line 309
    iget-object p1, p1, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean;->citys:Ljava/util/List;

    if-eqz p1, :cond_5

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

    move-result v0

    if-lez v0, :cond_5

    .line 311
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->l:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_3

    .line 312
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->l:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_2

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

    move-result-object v1

    check-cast v1, Lcom/amap/api/maps2d/model/LatLng;

    .line 313
    iget-object v2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->l:Ljava/util/HashMap;

    invoke-virtual {v2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/amap/api/maps2d/model/Marker;

    .line 314
    iget-object v2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->n:Lcom/amap/api/maps2d/model/Marker;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->n:Lcom/amap/api/maps2d/model/Marker;

    invoke-virtual {v2, v1}, Lcom/amap/api/maps2d/model/Marker;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_0

    :cond_1
    if-eqz v1, :cond_0

    .line 318
    invoke-virtual {v1}, Lcom/amap/api/maps2d/model/Marker;->remove()V

    goto :goto_0

    .line 321
    :cond_2
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->l:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    .line 323
    :cond_3
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_4
    :goto_1
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_6

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

    move-result-object v0

    check-cast v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;

    .line 324
    invoke-virtual {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget v2, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->incident:I

    invoke-static {v2}, Lcom/moji/mjallergy/AllergyHelper;->c(I)I

    move-result v2

    invoke-static {v1, v2}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 326
    new-instance v2, Lcom/amap/api/maps2d/model/LatLng;

    iget-wide v3, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->lat:D

    iget-wide v5, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->lon:D

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

    .line 327
    iget-object v3, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c:Lcom/amap/api/maps2d/AMap;

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

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

    .line 328
    invoke-virtual {v4, v2}, Lcom/amap/api/maps2d/model/MarkerOptions;->position(Lcom/amap/api/maps2d/model/LatLng;)Lcom/amap/api/maps2d/model/MarkerOptions;

    move-result-object v4

    const/high16 v5, 0x3f000000    # 0.5f

    .line 329
    invoke-virtual {v4, v5, v5}, Lcom/amap/api/maps2d/model/MarkerOptions;->anchor(FF)Lcom/amap/api/maps2d/model/MarkerOptions;

    move-result-object v4

    iget-object v5, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->city_name:Ljava/lang/String;

    .line 330
    invoke-virtual {v4, v5}, Lcom/amap/api/maps2d/model/MarkerOptions;->title(Ljava/lang/String;)Lcom/amap/api/maps2d/model/MarkerOptions;

    move-result-object v4

    .line 331
    invoke-static {v1}, Lcom/amap/api/maps2d/model/BitmapDescriptorFactory;->fromBitmap(Landroid/graphics/Bitmap;)Lcom/amap/api/maps2d/model/BitmapDescriptor;

    move-result-object v1

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

    move-result-object v1

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

    move-result-object v1

    .line 333
    iget-object v3, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->l:Ljava/util/HashMap;

    invoke-virtual {v3, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-nez p2, :cond_4

    .line 335
    iget-wide v2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->s:J

    iget-wide v4, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->city_id:J

    cmp-long v6, v2, v4

    if-nez v6, :cond_4

    .line 336
    iput-object v1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->n:Lcom/amap/api/maps2d/model/Marker;

    .line 337
    new-instance v2, Lcom/amap/api/maps2d/model/LatLng;

    iget-wide v3, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->lat:D

    iget-wide v5, v0, Lcom/moji/http/allergy/bean/AllergyAreaQueryBean$AllergyAreas;->lon:D

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

    sget v0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->e:F

    invoke-direct {p0, v2, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/amap/api/maps2d/model/LatLng;F)V

    .line 338
    invoke-virtual {v1}, Lcom/amap/api/maps2d/model/Marker;->showInfoWindow()V

    goto :goto_1

    .line 342
    :cond_5
    new-instance p1, Lcom/moji/tipview/MJTipView$Builder;

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object p2

    invoke-direct {p1, p2}, Lcom/moji/tipview/MJTipView$Builder;-><init>(Landroid/content/Context;)V

    const-string p2, "\u6682\u65e0\u6570\u636e"

    .line 343
    invoke-virtual {p1, p2}, Lcom/moji/tipview/MJTipView$Builder;->a(Ljava/lang/String;)Lcom/moji/tipview/MJTipView$Builder;

    move-result-object p1

    sget-object p2, Lcom/moji/tipview/MJTipView$TipMode;->FAIL:Lcom/moji/tipview/MJTipView$TipMode;

    .line 344
    invoke-virtual {p1, p2}, Lcom/moji/tipview/MJTipView$Builder;->a(Lcom/moji/tipview/MJTipView$TipMode;)Lcom/moji/tipview/MJTipView$Builder;

    move-result-object p1

    .line 345
    invoke-virtual {p1}, Lcom/moji/tipview/MJTipView$Builder;->b()V

    :cond_6
    return-void
.end method

.method protected a(Lcom/moji/http/allergy/bean/AllergyMainBean;)V
    .locals 6
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "DefaultLocale"
        }
    .end annotation

    .line 156
    sget-wide v0, Lcom/moji/mjallergy/MJAllergyMainActivity;->mCityId:J

    iput-wide v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->s:J

    .line 157
    invoke-virtual {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->getContext()Landroid/content/Context;

    move-result-object p1

    sget-object v0, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource;

    invoke-static {p1, v0}, Lcom/moji/location/provider/HistoryLocationHelper;->b(Landroid/content/Context;Lcom/moji/location/MJLocationSource;)Lcom/moji/location/entity/MJLocation;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->d:Lcom/moji/location/entity/MJLocation;

    .line 159
    new-instance p1, Lcom/moji/mjallergy/presenter/MapViewPresenter;

    invoke-direct {p1, p0}, Lcom/moji/mjallergy/presenter/MapViewPresenter;-><init>(Lcom/moji/mjallergy/presenter/MapViewPresenter$MapCallback;)V

    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->k:Lcom/moji/mjallergy/presenter/MapViewPresenter;

    .line 160
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object p1

    const/4 v0, 0x2

    .line 161
    invoke-virtual {p1, v0}, Ljava/util/Calendar;->get(I)I

    move-result v1

    const/4 v2, 0x1

    add-int/2addr v1, v2

    const/4 v3, 0x5

    .line 162
    invoke-virtual {p1, v3}, Ljava/util/Calendar;->get(I)I

    move-result p1

    .line 163
    iget-object v3, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->b:Landroid/widget/TextView;

    const-string v4, "%d\u6708%d\u65e5"

    new-array v0, v0, [Ljava/lang/Object;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v5, 0x0

    aput-object v1, v0, v5

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v0, v2

    invoke-static {v4, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

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

    .line 164
    invoke-direct {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->f()V

    return-void
.end method

.method public b()V
    .locals 1

    .line 254
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a:Lcom/amap/api/maps2d/MapView;

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

    return-void
.end method

.method public b(Landroid/os/Bundle;)V
    .locals 1

    .line 260
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a: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 c()V
    .locals 1

    .line 266
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a:Lcom/amap/api/maps2d/MapView;

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

    return-void
.end method

.method public d()V
    .locals 1

    .line 272
    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a:Lcom/amap/api/maps2d/MapView;

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

    const/4 v0, 0x1

    .line 273
    iput-boolean v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->q:Z

    return-void
.end method

.method protected getResLayoutId()I
    .locals 1

    .line 91
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$layout;->view_allergy_map:I

    return v0
.end method

.method protected synthetic onBindViewData(Ljava/lang/Object;)V
    .locals 0
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "DefaultLocale"
        }
    .end annotation

    .line 62
    check-cast p1, Lcom/moji/http/allergy/bean/AllergyMainBean;

    invoke-virtual {p0, p1}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/moji/http/allergy/bean/AllergyMainBean;)V

    return-void
.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 8

    if-nez p1, :cond_0

    return-void

    .line 292
    :cond_0
    iget v0, p1, Lcom/amap/api/maps2d/model/CameraPosition;->zoom:F

    iput v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->o:F

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

    .line 295
    invoke-direct {p0, v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->c(Lcom/amap/api/maps2d/model/LatLng;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 297
    iget-object v2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->k:Lcom/moji/mjallergy/presenter/MapViewPresenter;

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

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

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

    float-to-int v7, p1

    invoke-virtual/range {v2 .. v7}, Lcom/moji/mjallergy/presenter/MapViewPresenter;->a(DDI)V

    .line 298
    iput-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->m:Lcom/amap/api/maps2d/model/LatLng;

    :cond_1
    return-void
.end method

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

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

    move-result-object p1

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

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

    .line 279
    invoke-direct {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->h()V

    return-void
.end method

.method protected onCreatedView(Landroid/view/View;)V
    .locals 2

    .line 96
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->allergy_map:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

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

    iput-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a:Lcom/amap/api/maps2d/MapView;

    .line 97
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->tv_choose_city:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 98
    sget v1, Lpad/aqi/cnemc/com/mjallergymodule/R$id;->tv_current_date:I

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->b:Landroid/widget/TextView;

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

    .line 101
    invoke-direct {p0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->e()V

    return-void
.end method

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

    const/4 p1, 0x0

    .line 304
    iput-boolean p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->r:Z

    return-void
.end method
