195 lines
5.5 KiB
Smali
195 lines
5.5 KiB
Smali
.class Lcom/mojiweather/area/FootStepManager$2;
|
|
.super Ljava/lang/Object;
|
|
.source "FootStepManager.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/weatherprovider/update/WeatherUpdateListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/mojiweather/area/FootStepManager;->a(Lcom/moji/common/area/AreaInfo;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
.field final synthetic b:Lcom/mojiweather/area/FootStepManager;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/mojiweather/area/FootStepManager;Lcom/moji/common/area/AreaInfo;)V
|
|
.locals 0
|
|
|
|
.line 202
|
|
iput-object p1, p0, Lcom/mojiweather/area/FootStepManager$2;->b:Lcom/mojiweather/area/FootStepManager;
|
|
|
|
iput-object p2, p0, Lcom/mojiweather/area/FootStepManager$2;->a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/moji/common/area/AreaInfo;Lcom/moji/location/entity/MJLocation;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Weather;)V
|
|
.locals 4
|
|
|
|
.line 205
|
|
iget-boolean p1, p1, Lcom/moji/common/area/AreaInfo;->isLocation:Z
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 208
|
|
iget-object p1, p0, Lcom/mojiweather/area/FootStepManager$2;->b:Lcom/mojiweather/area/FootStepManager;
|
|
|
|
invoke-static {p1, p2}, Lcom/mojiweather/area/FootStepManager;->c(Lcom/mojiweather/area/FootStepManager;Lcom/moji/weatherprovider/data/Weather;)Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object p1
|
|
|
|
.line 210
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->f()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x9
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 213
|
|
invoke-static {p1}, Lcom/moji/areamanagement/MJAreaManager;->f(Lcom/moji/common/area/AreaInfo;)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 216
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->a(I)Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b(Lcom/moji/common/area/AreaInfo;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 222
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/weatherprovider/data/Weather;)V
|
|
|
|
.line 223
|
|
iget-object p2, p0, Lcom/mojiweather/area/FootStepManager$2;->b:Lcom/mojiweather/area/FootStepManager;
|
|
|
|
invoke-static {p2}, Lcom/mojiweather/area/FootStepManager;->e(Lcom/mojiweather/area/FootStepManager;)J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int p2, v0
|
|
|
|
invoke-static {p1, p2}, Lcom/moji/areamanagement/MJAreaManager;->a(Lcom/moji/common/area/AreaInfo;I)Z
|
|
|
|
.line 224
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->CITY_ADD_FOOTPRINT:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 225
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lcom/mojiweather/area/event/AddCityEvent;
|
|
|
|
iget-object v1, p1, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v2, p1, v1}, Lcom/mojiweather/area/event/AddCityEvent;-><init>(ILcom/moji/common/area/AreaInfo;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, v0}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/update/Result;)V
|
|
.locals 1
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 240
|
|
iget p1, p2, Lcom/moji/weatherprovider/update/Result;->a:I
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 241
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/mojiweather/area/FootStepManager$2;->a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 243
|
|
iget-object v0, p0, Lcom/mojiweather/area/FootStepManager$2;->a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/mojiweather/area/FootStepManager$2;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Weather;)V
|
|
|
|
.line 246
|
|
:cond_0
|
|
iget p1, p2, Lcom/moji/weatherprovider/update/Result;->a:I
|
|
|
|
const/16 p2, 0x9
|
|
|
|
if-ne p1, p2, :cond_1
|
|
|
|
const-string p1, "FootStepManager"
|
|
|
|
const-string p2, "UPDATE_CITY_ALREADY_EXIST waiting for another update result callback"
|
|
|
|
.line 247
|
|
invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|