FeatureManager.smali
.class public final Lcom/facebook/internal/FeatureManager;
.super Ljava/lang/Object;
.source "FeatureManager.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/internal/FeatureManager$Callback;,
Lcom/facebook/internal/FeatureManager$Feature;
}
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkFeature(Lcom/facebook/internal/FeatureManager$Feature;Lcom/facebook/internal/FeatureManager$Callback;)V
.registers 3
.line 1
new-instance v0, Lcom/facebook/internal/FeatureManager$1;
invoke-direct {v0, p1, p0}, Lcom/facebook/internal/FeatureManager$1;-><init>(Lcom/facebook/internal/FeatureManager$Callback;Lcom/facebook/internal/FeatureManager$Feature;)V
invoke-static {v0}, Lcom/facebook/internal/FetchedAppGateKeepersManager;->loadAppGateKeepersAsync(Lcom/facebook/internal/FetchedAppGateKeepersManager$Callback;)V
return-void
.end method
.method private static defaultStatus(Lcom/facebook/internal/FeatureManager$Feature;)Z
.registers 2
.line 1
sget-object v0, Lcom/facebook/internal/FeatureManager$2;->$SwitchMap$com$facebook$internal$FeatureManager$Feature:[I
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result p0
aget p0, v0, p0
packed-switch p0, :pswitch_data_10
const/4 p0, 0x1
return p0
:pswitch_d
const/4 p0, 0x0
return p0
nop
:pswitch_data_10
.packed-switch 0x1
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_d
.end packed-switch
.end method
.method private static getGKStatus(Lcom/facebook/internal/FeatureManager$Feature;)Z
.registers 3
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "FBSDKFeature"
.line 2
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 3
invoke-virtual {p0}, Lcom/facebook/internal/FeatureManager$Feature;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 4
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 5
invoke-static {p0}, Lcom/facebook/internal/FeatureManager;->defaultStatus(Lcom/facebook/internal/FeatureManager$Feature;)Z
move-result p0
.line 6
invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationId()Ljava/lang/String;
move-result-object v1
.line 7
invoke-static {v0, v1, p0}, Lcom/facebook/internal/FetchedAppGateKeepersManager;->getGateKeeperForKey(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result p0
return p0
.end method
.method public static isEnabled(Lcom/facebook/internal/FeatureManager$Feature;)Z
.registers 4
.line 1
sget-object v0, Lcom/facebook/internal/FeatureManager$Feature;->Unknown:Lcom/facebook/internal/FeatureManager$Feature;
const/4 v1, 0x0
if-ne v0, p0, :cond_6
return v1
.line 2
:cond_6
sget-object v0, Lcom/facebook/internal/FeatureManager$Feature;->Core:Lcom/facebook/internal/FeatureManager$Feature;
const/4 v2, 0x1
if-ne v0, p0, :cond_c
return v2
.line 3
:cond_c
invoke-virtual {p0}, Lcom/facebook/internal/FeatureManager$Feature;->getParent()Lcom/facebook/internal/FeatureManager$Feature;
move-result-object v0
if-ne v0, p0, :cond_17
.line 4
invoke-static {p0}, Lcom/facebook/internal/FeatureManager;->getGKStatus(Lcom/facebook/internal/FeatureManager$Feature;)Z
move-result p0
return p0
.line 5
:cond_17
invoke-static {v0}, Lcom/facebook/internal/FeatureManager;->isEnabled(Lcom/facebook/internal/FeatureManager$Feature;)Z
move-result v0
if-eqz v0, :cond_24
invoke-static {p0}, Lcom/facebook/internal/FeatureManager;->getGKStatus(Lcom/facebook/internal/FeatureManager$Feature;)Z
move-result p0
if-eqz p0, :cond_24
const/4 v1, 0x1
:cond_24
return v1
.end method