288 lines
7.4 KiB
Smali
288 lines
7.4 KiB
Smali
.class public Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;
|
|
.super Lcom/moji/base/MJPresenter;
|
|
.source "RedLeavesFeedbackPresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/base/MJPresenter<",
|
|
"Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
invoke-direct {p0, p1}, Lcom/moji/base/MJPresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/moji/redleaves/adapter/RedLeavesFeedbackAdapter;)V
|
|
.locals 10
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 36
|
|
iget-object p1, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
check-cast p1, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 39
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/redleaves/adapter/RedLeavesFeedbackAdapter;->e()[I
|
|
|
|
move-result-object v1
|
|
|
|
.line 40
|
|
invoke-virtual {p1}, Lcom/moji/redleaves/adapter/RedLeavesFeedbackAdapter;->f()I
|
|
|
|
move-result v6
|
|
|
|
const/4 p1, 0x1
|
|
|
|
if-gez v6, :cond_1
|
|
|
|
.line 43
|
|
iget-object v0, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
check-cast v0, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/redleaves/R$string;->red_leaves_feedback_check_first:I
|
|
|
|
invoke-static {v0, v1, p1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
return-void
|
|
|
|
.line 46
|
|
:cond_1
|
|
array-length v2, v1
|
|
|
|
if-lt v6, v2, :cond_2
|
|
|
|
.line 47
|
|
iget-object p1, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
check-cast p1, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 53
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v2
|
|
|
|
.line 55
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->h()Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
.line 56
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v7, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource;
|
|
|
|
const-wide/32 v8, 0x5265c00
|
|
|
|
invoke-static {v3, v7, v8, v9}, Lcom/moji/location/provider/HistoryLocationHelper;->a(Landroid/content/Context;Lcom/moji/location/MJLocationSource;J)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
move-object v3, v5
|
|
|
|
goto :goto_0
|
|
|
|
.line 59
|
|
:cond_3
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v7, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource;
|
|
|
|
invoke-static {v3, v7}, Lcom/moji/location/provider/HistoryLocationHelper;->b(Landroid/content/Context;Lcom/moji/location/MJLocationSource;)Lcom/moji/location/entity/MJLocation;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 60
|
|
invoke-static {v3}, Lcom/moji/location/util/LocationUtil;->b(Lcom/moji/location/entity/MJLocation;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
const/4 v4, 0x1
|
|
|
|
:cond_4
|
|
:goto_0
|
|
if-nez v4, :cond_6
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 62
|
|
iget-boolean v7, v2, Lcom/moji/common/area/AreaInfo;->isLocation:Z
|
|
|
|
if-eqz v7, :cond_6
|
|
|
|
.line 63
|
|
iget-object v0, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
check-cast v0, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;->a(I)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
move-object v3, v5
|
|
|
|
:cond_6
|
|
if-nez v4, :cond_7
|
|
|
|
if-nez v2, :cond_7
|
|
|
|
.line 69
|
|
iget-object p1, p0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
check-cast p1, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redleaves/control/RedLeavesFeedbackViewControl;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 73
|
|
:cond_7
|
|
aget p1, v1, v6
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
.line 74
|
|
new-instance p1, Lcom/moji/http/redleaves/RLFeedbackRequest;
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
invoke-virtual {v3}, Lcom/moji/location/entity/MJLocation;->getLongitude()D
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_8
|
|
move-object v0, v5
|
|
|
|
:goto_1
|
|
if-eqz v3, :cond_9
|
|
|
|
.line 75
|
|
invoke-virtual {v3}, Lcom/moji/location/entity/MJLocation;->getLatitude()D
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v4, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
move-object v4, v5
|
|
|
|
:goto_2
|
|
if-eqz v2, :cond_a
|
|
|
|
iget v1, v2, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v5, v1
|
|
|
|
:cond_a
|
|
move-object v2, p1
|
|
|
|
move-object v3, v0
|
|
|
|
invoke-direct/range {v2 .. v7}, Lcom/moji/http/redleaves/RLFeedbackRequest;-><init>(Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/Integer;ILjava/lang/String;)V
|
|
|
|
.line 76
|
|
new-instance v0, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter$1;-><init>(Lcom/moji/redleaves/presenter/RedLeavesFeedbackPresenter;)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/http/redleaves/RLFeedbackRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|