RuntimeFeatureImpl$b.smali
.class Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;
.super Ljava/lang/Object;
# interfaces
.implements Lio/dcloud/common/ui/PrivacyManager$b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/dcloud/feature/pdr/RuntimeFeatureImpl;->execute(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lio/dcloud/common/DHInterface/IWebview;
.field final synthetic b:Ljava/lang/String;
.field final synthetic c:Landroid/app/Activity;
.field final synthetic d:Lio/dcloud/feature/pdr/RuntimeFeatureImpl;
# direct methods
.method constructor <init>(Lio/dcloud/feature/pdr/RuntimeFeatureImpl;Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Landroid/app/Activity;)V
.registers 5
.line 1
iput-object p1, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->d:Lio/dcloud/feature/pdr/RuntimeFeatureImpl;
iput-object p2, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->a:Lio/dcloud/common/DHInterface/IWebview;
iput-object p3, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->b:Ljava/lang/String;
iput-object p4, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->c:Landroid/app/Activity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a()V
.registers 6
.line 3
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_start_5
const-string v1, "code"
const/4 v2, 0x1
.line 5
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_b
.catch Lorg/json/JSONException; {:try_start_5 .. :try_end_b} :catch_c
goto :goto_10
:catch_c
move-exception v1
.line 7
invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V
.line 9
:goto_10
iget-object v1, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->a:Lio/dcloud/common/DHInterface/IWebview;
iget-object v2, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->b:Ljava/lang/String;
sget v3, Lio/dcloud/common/util/JSUtil;->OK:I
const/4 v4, 0x0
invoke-static {v1, v2, v0, v3, v4}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
return-void
.end method
.method public a(Lio/dcloud/common/ui/Info/AndroidPrivacyResponse;)V
.registers 6
.line 10
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V
:try_start_5
const-string v0, "code"
const/4 v1, 0x2
.line 12
invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_b
.catch Lorg/json/JSONException; {:try_start_5 .. :try_end_b} :catch_c
goto :goto_10
:catch_c
move-exception v0
.line 14
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
.line 16
:goto_10
iget-object v0, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->a:Lio/dcloud/common/DHInterface/IWebview;
iget-object v1, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->b:Ljava/lang/String;
sget v2, Lio/dcloud/common/util/JSUtil;->OK:I
const/4 v3, 0x0
invoke-static {v0, v1, p1, v2, v3}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
return-void
.end method
.method public a(Ljava/lang/String;)V
.registers 6
.line 1
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V
.line 2
iget-object v0, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->a:Lio/dcloud/common/DHInterface/IWebview;
iget-object v1, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->b:Ljava/lang/String;
sget v2, Lio/dcloud/common/util/JSUtil;->ERROR:I
const/4 v3, 0x0
invoke-static {v0, v1, p1, v2, v3}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
return-void
.end method
.method public b(Lio/dcloud/common/ui/Info/AndroidPrivacyResponse;)V
.registers 6
.line 1
iget-object p1, p1, Lio/dcloud/common/ui/Info/AndroidPrivacyResponse;->second:Lio/dcloud/common/ui/Info/AndroidPrivacyResponse$SecondDTO;
iget-object p1, p1, Lio/dcloud/common/ui/Info/AndroidPrivacyResponse$SecondDTO;->message:Ljava/lang/String;
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result p1
if-eqz p1, :cond_25
.line 3
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V
:try_start_f
const-string v0, "code"
const/4 v1, -0x1
.line 5
invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_15
.catch Lorg/json/JSONException; {:try_start_f .. :try_end_15} :catch_16
goto :goto_1a
:catch_16
move-exception v0
.line 7
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
.line 10
:goto_1a
iget-object v0, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->a:Lio/dcloud/common/DHInterface/IWebview;
iget-object v1, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->b:Ljava/lang/String;
sget v2, Lio/dcloud/common/util/JSUtil;->OK:I
const/4 v3, 0x0
invoke-static {v0, v1, p1, v2, v3}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
goto :goto_34
.line 14
:cond_25
invoke-static {}, Lio/dcloud/common/ui/PrivacyManager;->getInstance()Lio/dcloud/common/ui/PrivacyManager;
move-result-object p1
iget-object v0, p0, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;->c:Landroid/app/Activity;
new-instance v1, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b$a;
invoke-direct {v1, p0}, Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b$a;-><init>(Lio/dcloud/feature/pdr/RuntimeFeatureImpl$b;)V
const/4 v2, 0x1
invoke-virtual {p1, v0, v1, v2, v2}, Lio/dcloud/common/ui/PrivacyManager;->showPrivacyDialog(Landroid/app/Activity;Lio/dcloud/common/ui/PrivacyManager$b;ZZ)V
:goto_34
return-void
.end method