g.smali

.class public final Lsg/bigo/config/g;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lsg/bigo/config/g$a;
    }
.end annotation


# instance fields
.field a:Lsg/bigo/config/b;

.field b:Landroid/content/Context;

.field public c:I

.field private d:Ljava/lang/String;


# direct methods
.method private constructor <init>()V
    .registers 1

    .line 19
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(B)V
    .registers 2

    .line 9
    invoke-direct {p0}, Lsg/bigo/config/g;-><init>()V

    return-void
.end method

.method public static b()Landroid/content/Context;
    .registers 2

    .line 3024
    invoke-static {}, Lsg/bigo/config/g$a;->a()Lsg/bigo/config/g;

    move-result-object v0

    .line 48
    iget-object v0, v0, Lsg/bigo/config/g;->b:Landroid/content/Context;

    if-eqz v0, :cond_f

    .line 4024
    invoke-static {}, Lsg/bigo/config/g$a;->a()Lsg/bigo/config/g;

    move-result-object v0

    .line 51
    iget-object v0, v0, Lsg/bigo/config/g;->b:Landroid/content/Context;

    return-object v0

    .line 49
    :cond_f
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "context must not null.should call init() first"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method


# virtual methods
.method public final a()Ljava/lang/String;
    .registers 3

    .line 34
    iget-object v0, p0, Lsg/bigo/config/g;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_b

    .line 35
    iget-object v0, p0, Lsg/bigo/config/g;->d:Ljava/lang/String;

    return-object v0

    .line 1028
    :cond_b
    invoke-virtual {p0}, Lsg/bigo/config/g;->c()Lsg/bigo/config/b;

    move-result-object v0

    .line 2026
    iget-object v0, v0, Lsg/bigo/config/b;->b:Ljava/lang/Boolean;

    .line 1028
    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_28

    iget-object v0, p0, Lsg/bigo/config/g;->b:Landroid/content/Context;

    invoke-static {v0}, Lsg/bigo/config/m;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "SNAPSHOT"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_26

    goto :goto_28

    :cond_26
    const/4 v0, 0x0

    goto :goto_29

    :cond_28
    :goto_28
    const/4 v0, 0x1

    :goto_29
    if-eqz v0, :cond_32

    .line 37
    invoke-virtual {p0}, Lsg/bigo/config/g;->c()Lsg/bigo/config/b;

    move-result-object v0

    .line 3022
    iget-object v0, v0, Lsg/bigo/config/b;->a:Ljava/lang/String;

    return-object v0

    .line 37
    :cond_32
    iget-object v0, p0, Lsg/bigo/config/g;->b:Landroid/content/Context;

    invoke-static {v0}, Lsg/bigo/config/m;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final c()Lsg/bigo/config/b;
    .registers 3

    .line 64
    iget-object v0, p0, Lsg/bigo/config/g;->a:Lsg/bigo/config/b;

    if-eqz v0, :cond_5

    return-object v0

    .line 65
    :cond_5
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "abSdkConfig must not null.should call init() first"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method