.class Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;
.super Ljava/lang/Object;
.source "AQIMapViewControl.java"

# interfaces
.implements Lcom/amap/api/maps2d/AMap$OnMarkerClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->o()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;)V
    .locals 0

    .line 316
    iput-object p1, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

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

    return-void
.end method


# virtual methods
.method public onMarkerClick(Lcom/amap/api/maps2d/model/Marker;)Z
    .locals 2

    .line 319
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-static {v0, p1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->a(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;Lcom/amap/api/maps2d/model/Marker;)Lcom/amap/api/maps2d/model/Marker;

    .line 320
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-static {v0}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->h(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;)Lcom/amap/api/maps2d/model/Marker;

    move-result-object v0

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

    .line 321
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

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

    move-result-object p1

    iget-object v1, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-static {v1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->g(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;)F

    move-result v1

    invoke-static {v0, p1, v1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->a(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;Lcom/amap/api/maps2d/model/LatLng;F)V

    .line 322
    iget-object p1, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-virtual {p1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->getContext()Landroid/content/Context;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/aqi/AQIActivity;

    .line 323
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-static {v0}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->h(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;)Lcom/amap/api/maps2d/model/Marker;

    move-result-object v0

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

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/moji/mjweather/aqi/AQIActivity;->selectCheckPoint(Ljava/lang/String;)V

    .line 324
    iget-object p1, p0, Lcom/moji/mjweather/aqi/control/AQIMapViewControl$5;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-virtual {p1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->h()Z

    move-result p1

    if-eqz p1, :cond_0

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

    move-result-object p1

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

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

    :cond_0
    const/4 p1, 0x1

    return p1
.end method
