.class Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;
.super Ljava/lang/Object;
.source "AllergyMapView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->h()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/dialog/MJDialog;

.field final synthetic b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;


# direct methods
.method constructor <init>(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;Lcom/moji/dialog/MJDialog;)V
    .locals 0

    .line 425
    iput-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    iput-object p2, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->a:Lcom/moji/dialog/MJDialog;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 428
    iget-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->a:Lcom/moji/dialog/MJDialog;

    invoke-virtual {p1}, Lcom/moji/dialog/MJDialog;->dismiss()V

    .line 430
    iget-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    invoke-static {p1}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->e(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    move-result-object p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    invoke-static {p1}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->e(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    move-result-object p1

    iget p1, p1, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;->d:I

    if-eqz p1, :cond_0

    .line 431
    iget-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    invoke-static {v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->e(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;

    move-result-object v0

    iget v0, v0, Lcom/moji/areamanagement/db/LocalCityDBHelper$CityInfo;->d:I

    int-to-long v0, v0

    invoke-static {p1, v0, v1}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->a(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;J)J

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

    move-result p1

    if-eqz p1, :cond_1

    .line 435
    iget-object p1, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    invoke-static {p1}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->g(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)Lcom/moji/mjallergy/presenter/MapViewPresenter;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjallergy/viewcontrol/AllergyMapView$7;->b:Lcom/moji/mjallergy/viewcontrol/AllergyMapView;

    invoke-static {v0}, Lcom/moji/mjallergy/viewcontrol/AllergyMapView;->f(Lcom/moji/mjallergy/viewcontrol/AllergyMapView;)J

    move-result-wide v0

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

    goto :goto_0

    .line 437
    :cond_1
    sget p1, Lpad/aqi/cnemc/com/mjallergymodule/R$string;->no_network:I

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

    :goto_0
    return-void
.end method
