.class public Lcom/moji/mjweather/aqi/MapMoveHelper;
.super Ljava/lang/Object;
.source "MapMoveHelper.java"


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

.field b:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

.field c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

.field d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

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

.field private f:F


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

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

    const/high16 v0, -0x40800000    # -1.0f

    .line 21
    iput v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->f:F

    .line 31
    iput-object p1, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    .line 32
    iput-object p2, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->b:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    .line 33
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/aqi/MapMoveHelper;->a(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;Lcom/moji/mjweather/aqi/control/AQIMapViewControl;)V

    return-void
.end method


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

    const/4 v0, 0x0

    .line 62
    iput-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->a:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    .line 63
    iput-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->b:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    .line 64
    iput-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    return-void
.end method

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

    .line 43
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->e:Lcom/amap/api/maps2d/model/LatLng;

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->f:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    .line 44
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->e:Lcom/amap/api/maps2d/model/LatLng;

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

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->f:F

    cmpl-float v0, v0, p2

    if-nez v0, :cond_0

    return-void

    .line 48
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    if-eqz v0, :cond_1

    .line 49
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->c(Z)V

    .line 50
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    const/4 v1, 0x0

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

    .line 52
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

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

    move-result-object v0

    if-eqz v0, :cond_1

    .line 54
    iget-object v1, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

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

    .line 57
    :cond_1
    iput-object p1, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->e:Lcom/amap/api/maps2d/model/LatLng;

    .line 58
    iput p2, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->f:F

    return-void
.end method

.method public a(Lcom/moji/mjweather/aqi/control/AQIMapViewControl;Lcom/moji/mjweather/aqi/control/AQIMapViewControl;)V
    .locals 3

    .line 68
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    if-eq v0, p1, :cond_0

    const-string v0, "MapMoveHelper"

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

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

    const-string v2, "mCurrent changed to "

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

    invoke-virtual {p1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->l()Ljava/lang/String;

    move-result-object v2

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

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

    move-result-object v1

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

    .line 71
    :cond_0
    iput-object p1, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    .line 72
    iput-object p2, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    .line 73
    iget-object p1, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->c:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    const/4 p2, 0x1

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

    .line 74
    iget-object p1, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    const/4 p2, 0x0

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

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/weather/entity/AqiPointMapEntity$ResultBean;",
            ">;)V"
        }
    .end annotation

    .line 78
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    if-eqz v0, :cond_0

    .line 79
    iget-object v0, p0, Lcom/moji/mjweather/aqi/MapMoveHelper;->d:Lcom/moji/mjweather/aqi/control/AQIMapViewControl;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/aqi/control/AQIMapViewControl;->a(Ljava/util/List;)V

    :cond_0
    return-void
.end method
