.class Lcom/moji/mjweather/aqi/AqiWarnActivity$3;
.super Ljava/lang/Object;
.source "AqiWarnActivity.java"

# interfaces
.implements Lcom/moji/titlebar/MJTitleBar$OnClickBack;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/aqi/AqiWarnActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

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


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


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

    .line 109
    iput-object p1, p0, Lcom/moji/mjweather/aqi/AqiWarnActivity$3;->a:Lcom/moji/mjweather/aqi/AqiWarnActivity;

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

    return-void
.end method


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

    .line 112
    iget-object p1, p0, Lcom/moji/mjweather/aqi/AqiWarnActivity$3;->a:Lcom/moji/mjweather/aqi/AqiWarnActivity;

    invoke-static {p1}, Lcom/moji/mjweather/aqi/AqiWarnActivity;->c(Lcom/moji/mjweather/aqi/AqiWarnActivity;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjweather/aqi/AqiWarnActivity$3;->a:Lcom/moji/mjweather/aqi/AqiWarnActivity;

    invoke-static {p1}, Lcom/moji/mjweather/aqi/AqiWarnActivity;->d(Lcom/moji/mjweather/aqi/AqiWarnActivity;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 113
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 114
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 115
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    if-eqz v0, :cond_0

    .line 116
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mAqi:Lcom/moji/weatherprovider/data/Aqi;

    if-eqz v0, :cond_0

    .line 117
    iget-object v0, p0, Lcom/moji/mjweather/aqi/AqiWarnActivity$3;->a:Lcom/moji/mjweather/aqi/AqiWarnActivity;

    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v1

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mAqi:Lcom/moji/weatherprovider/data/Aqi;

    const-string v2, "aqi_warn"

    invoke-static {v0, p1, v1, v2}, Lcom/moji/mjweather/NavigationManager;->a(Landroid/content/Context;Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Aqi;Ljava/lang/String;)V

    .line 119
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/aqi/AqiWarnActivity$3;->a:Lcom/moji/mjweather/aqi/AqiWarnActivity;

    invoke-virtual {p1}, Lcom/moji/mjweather/aqi/AqiWarnActivity;->finish()V

    return-void
.end method
