You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
4.6 KiB
156 lines
4.6 KiB
.class final Lcom/facebook/internal/FetchedAppSettingsManager$1; |
|
.super Ljava/lang/Object; |
|
.source "FetchedAppSettingsManager.java" |
|
|
|
# interfaces |
|
.implements Ljava/lang/Runnable; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/facebook/internal/FetchedAppSettingsManager;->loadAppSettingsAsync()V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic val$applicationId:Ljava/lang/String; |
|
|
|
.field final synthetic val$context:Landroid/content/Context; |
|
|
|
.field final synthetic val$settingsKey:Ljava/lang/String; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 102 |
|
iput-object p1, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$context:Landroid/content/Context; |
|
|
|
iput-object p2, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$settingsKey:Ljava/lang/String; |
|
|
|
iput-object p3, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$applicationId:Ljava/lang/String; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public run()V |
|
.locals 5 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
const/4 v4, 0x0 |
|
|
|
.line 106 |
|
iget-object v0, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$context:Landroid/content/Context; |
|
|
|
const-string v2, "com.facebook.internal.preferences.APP_SETTINGS" |
|
|
|
invoke-virtual {v0, v2, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences; |
|
|
|
move-result-object v2 |
|
|
|
.line 109 |
|
iget-object v0, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$settingsKey:Ljava/lang/String; |
|
|
|
invoke-interface {v2, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
.line 110 |
|
invoke-static {v3}, Lcom/facebook/internal/Utility;->isNullOrEmpty(Ljava/lang/String;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 113 |
|
:try_start_0 |
|
new-instance v0, Lorg/json/JSONObject; |
|
|
|
invoke-direct {v0, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V |
|
:try_end_0 |
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 117 |
|
:goto_0 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 118 |
|
iget-object v1, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$applicationId:Ljava/lang/String; |
|
|
|
invoke-static {v1, v0}, Lcom/facebook/internal/FetchedAppSettingsManager;->access$000(Ljava/lang/String;Lorg/json/JSONObject;)Lcom/facebook/internal/FetchedAppSettings; |
|
|
|
.line 122 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$applicationId:Ljava/lang/String; |
|
|
|
invoke-static {v0}, Lcom/facebook/internal/FetchedAppSettingsManager;->access$100(Ljava/lang/String;)Lorg/json/JSONObject; |
|
|
|
move-result-object v0 |
|
|
|
.line 123 |
|
if-eqz v0, :cond_1 |
|
|
|
.line 124 |
|
iget-object v1, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$applicationId:Ljava/lang/String; |
|
|
|
invoke-static {v1, v0}, Lcom/facebook/internal/FetchedAppSettingsManager;->access$000(Ljava/lang/String;Lorg/json/JSONObject;)Lcom/facebook/internal/FetchedAppSettings; |
|
|
|
.line 126 |
|
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor; |
|
|
|
move-result-object v1 |
|
|
|
iget-object v2, p0, Lcom/facebook/internal/FetchedAppSettingsManager$1;->val$settingsKey:Ljava/lang/String; |
|
|
|
.line 127 |
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor; |
|
|
|
move-result-object v0 |
|
|
|
.line 128 |
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V |
|
|
|
.line 132 |
|
:cond_1 |
|
invoke-static {}, Lcom/facebook/appevents/internal/AutomaticAnalyticsLogger;->logActivateAppEvent()V |
|
|
|
.line 134 |
|
invoke-static {}, Lcom/facebook/internal/FetchedAppSettingsManager;->access$200()Ljava/util/concurrent/atomic/AtomicBoolean; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, v4}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V |
|
|
|
.line 135 |
|
return-void |
|
|
|
.line 114 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 115 |
|
const-string v3, "FacebookSDK" |
|
|
|
invoke-static {v3, v0}, Lcom/facebook/internal/Utility;->logd(Ljava/lang/String;Ljava/lang/Exception;)V |
|
|
|
move-object v0, v1 |
|
|
|
goto :goto_0 |
|
.end method
|
|
|