165 lines
4.6 KiB
Smali
165 lines
4.6 KiB
Smali
.class Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;
|
|
.super Ljava/lang/Object;
|
|
.source "MojiJsSdk.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/location/MJLocationListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/webview/jsfunction/MojiJsSdk$10;->a(Ljava/lang/String;Lcom/moji/webview/bridge/CallBackFunction;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/location/MJLocationManager;
|
|
|
|
.field final synthetic b:Lcom/moji/webview/jsfunction/MojiJsSdk$10;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/webview/jsfunction/MojiJsSdk$10;Lcom/moji/location/MJLocationManager;)V
|
|
.locals 0
|
|
|
|
.line 316
|
|
iput-object p1, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->b:Lcom/moji/webview/jsfunction/MojiJsSdk$10;
|
|
|
|
iput-object p2, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->a:Lcom/moji/location/MJLocationManager;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onLocateError(Lcom/moji/location/entity/MJLocation;)V
|
|
.locals 3
|
|
|
|
.line 333
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->b:Lcom/moji/webview/jsfunction/MojiJsSdk$10;
|
|
|
|
iget-object v0, v0, Lcom/moji/webview/jsfunction/MojiJsSdk$10;->a:Lorg/json/JSONObject;
|
|
|
|
const-string v1, "code"
|
|
|
|
const-string v2, "0"
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 334
|
|
iget-object v0, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->b:Lcom/moji/webview/jsfunction/MojiJsSdk$10;
|
|
|
|
iget-object v0, v0, Lcom/moji/webview/jsfunction/MojiJsSdk$10;->a:Lorg/json/JSONObject;
|
|
|
|
const-string v1, "msg"
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, "null"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getErrorInfo()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
const-string v0, "MojiJsSdk"
|
|
|
|
.line 336
|
|
invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 338
|
|
:goto_1
|
|
iget-object p1, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->a:Lcom/moji/location/MJLocationManager;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/location/MJLocationManager;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onLocateSuccess(Lcom/moji/location/entity/MJLocation;)V
|
|
.locals 3
|
|
|
|
.line 320
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->b:Lcom/moji/webview/jsfunction/MojiJsSdk$10;
|
|
|
|
iget-object v0, v0, Lcom/moji/webview/jsfunction/MojiJsSdk$10;->a:Lorg/json/JSONObject;
|
|
|
|
const-string v1, "code"
|
|
|
|
const-string v2, "1"
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 321
|
|
iget-object v0, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->b:Lcom/moji/webview/jsfunction/MojiJsSdk$10;
|
|
|
|
iget-object v0, v0, Lcom/moji/webview/jsfunction/MojiJsSdk$10;->a:Lorg/json/JSONObject;
|
|
|
|
const-string v1, "msg"
|
|
|
|
const-string v2, "\u6210\u529f\u5b9a\u4f4d"
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 322
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v1, "city_id"
|
|
|
|
.line 323
|
|
invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getMJCityID()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
const-string v0, "MojiJsSdk"
|
|
|
|
.line 325
|
|
invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 327
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/moji/webview/jsfunction/MojiJsSdk$10$1;->a:Lcom/moji/location/MJLocationManager;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/location/MJLocationManager;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onOtherDataReady(Lcom/moji/location/entity/MJLocation;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|