355 lines
9.9 KiB
Smali
355 lines
9.9 KiB
Smali
.class public Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;
|
|
.super Lcom/moji/mvpframe/BasePresenter;
|
|
.source "MapAqiPresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$OnParseLocationByLocal;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/mvpframe/BasePresenter<",
|
|
"Lcom/moji/mjweather/aqi/presenter/AqiApi;",
|
|
"Lcom/moji/mjweather/aqi/view/IMapAqiView;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static a:D = 34.3412092171
|
|
|
|
.field private static b:D = 108.9398697003
|
|
|
|
.field private static final c:Ljava/lang/String; = "MapAqiPresenter"
|
|
|
|
|
|
# instance fields
|
|
.field private d:Lcom/amap/api/maps2d/model/LatLng;
|
|
|
|
.field private g:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/mjweather/aqi/view/IMapAqiView;)V
|
|
.locals 4
|
|
|
|
.line 47
|
|
invoke-direct {p0, p1}, Lcom/moji/mvpframe/BasePresenter;-><init>(Lcom/moji/mvpframe/IMJMvpView;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 44
|
|
iput-boolean p1, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->g:Z
|
|
|
|
.line 48
|
|
new-instance v0, Lcom/moji/preferences/DefaultPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V
|
|
|
|
.line 49
|
|
invoke-virtual {v0}, Lcom/moji/preferences/DefaultPrefer;->g()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x5
|
|
|
|
if-gt v1, v3, :cond_0
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
.line 51
|
|
invoke-virtual {v0, v1}, Lcom/moji/preferences/DefaultPrefer;->c(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 53
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lcom/moji/preferences/DefaultPrefer;->c(I)V
|
|
|
|
.line 54
|
|
iput-boolean v2, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->g:Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;Lcom/amap/api/maps2d/model/LatLng;)Lcom/amap/api/maps2d/model/LatLng;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iput-object p1, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->d:Lcom/amap/api/maps2d/model/LatLng;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/amap/api/maps2d/model/LatLng;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->d:Lcom/amap/api/maps2d/model/LatLng;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic g(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic g()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 33
|
|
sget-object v0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->c:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic h()D
|
|
.locals 2
|
|
|
|
.line 33
|
|
sget-wide v0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->a:D
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method static synthetic h(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic i()D
|
|
.locals 2
|
|
|
|
.line 33
|
|
sget-wide v0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->b:D
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method static synthetic i(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic j(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
.locals 0
|
|
|
|
.line 33
|
|
iget-object p0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(F)V
|
|
.locals 4
|
|
|
|
.line 71
|
|
new-instance v0, Lcom/moji/location/MJLocationManager;
|
|
|
|
invoke-direct {v0}, Lcom/moji/location/MJLocationManager;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->f:Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
check-cast v1, Lcom/moji/mjweather/aqi/view/IMapAqiView;
|
|
|
|
invoke-interface {v1}, Lcom/moji/mjweather/aqi/view/IMapAqiView;->getMJContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource;
|
|
|
|
new-instance v3, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$1;
|
|
|
|
invoke-direct {v3, p0, p1}, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$1;-><init>(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;F)V
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lcom/moji/location/MJLocationManager;->a(Landroid/content/Context;Lcom/moji/location/MJLocationSource;Lcom/moji/location/MJLocationListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(IDDF)V
|
|
.locals 9
|
|
|
|
.line 96
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->e:Ljava/lang/Object;
|
|
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Lcom/moji/mjweather/aqi/presenter/AqiApi;
|
|
|
|
new-instance v8, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$2;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {v8, p0, p0, v0}, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$2;-><init>(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;Lcom/moji/mvpframe/BasePresenter;Z)V
|
|
|
|
move v2, p1
|
|
|
|
move-wide v3, p2
|
|
|
|
move-wide v5, p4
|
|
|
|
move v7, p6
|
|
|
|
invoke-virtual/range {v1 .. v8}, Lcom/moji/mjweather/aqi/presenter/AqiApi;->a(IDDFLcom/moji/requestcore/MJHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/amap/api/maps2d/model/LatLng;)V
|
|
.locals 0
|
|
|
|
.line 166
|
|
iput-object p1, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->d:Lcom/amap/api/maps2d/model/LatLng;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/common/area/AreaInfo;FLcom/moji/mjweather/aqi/presenter/MapAqiPresenter$OnParseLocationByLocal;)V
|
|
.locals 3
|
|
|
|
.line 124
|
|
new-instance v0, Lcom/amap/api/services/geocoder/GeocodeSearch;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->n()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/amap/api/services/geocoder/GeocodeSearch;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 126
|
|
new-instance v1, Lcom/amap/api/services/geocoder/GeocodeQuery;
|
|
|
|
iget-object v2, p1, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;
|
|
|
|
iget-object p1, p1, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, p1}, Lcom/amap/api/services/geocoder/GeocodeQuery;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 127
|
|
invoke-virtual {v0, v1}, Lcom/amap/api/services/geocoder/GeocodeSearch;->getFromLocationNameAsyn(Lcom/amap/api/services/geocoder/GeocodeQuery;)V
|
|
|
|
.line 128
|
|
new-instance p1, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$3;
|
|
|
|
invoke-direct {p1, p0, p2, p3}, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter$3;-><init>(Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;FLcom/moji/mjweather/aqi/presenter/MapAqiPresenter$OnParseLocationByLocal;)V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/amap/api/services/geocoder/GeocodeSearch;->setOnGeocodeSearchListener(Lcom/amap/api/services/geocoder/GeocodeSearch$OnGeocodeSearchListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic b()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 33
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->e()Lcom/moji/mjweather/aqi/presenter/AqiApi;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public d()Z
|
|
.locals 1
|
|
|
|
.line 59
|
|
iget-boolean v0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->g:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected e()Lcom/moji/mjweather/aqi/presenter/AqiApi;
|
|
.locals 1
|
|
|
|
.line 64
|
|
new-instance v0, Lcom/moji/mjweather/aqi/presenter/AqiApi;
|
|
|
|
invoke-direct {v0}, Lcom/moji/mjweather/aqi/presenter/AqiApi;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public f()Lcom/amap/api/maps2d/model/LatLng;
|
|
.locals 1
|
|
|
|
.line 162
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/MapAqiPresenter;->d:Lcom/amap/api/maps2d/model/LatLng;
|
|
|
|
return-object v0
|
|
.end method
|