be.smali

.class public Lcom/qq/e/comm/plugin/util/be;
.super Ljava/lang/Object;


# direct methods
.method public static a(Landroid/content/Context;)Landroid/app/Activity;
    .registers 3

    const/4 v0, 0x0

    if-nez p0, :cond_5

    move-object p0, v0

    :goto_4
    return-object p0

    :cond_5
    instance-of v1, p0, Landroid/app/Activity;

    if-eqz v1, :cond_c

    check-cast p0, Landroid/app/Activity;

    goto :goto_4

    :cond_c
    instance-of v1, p0, Landroid/content/ContextWrapper;

    if-eqz v1, :cond_1b

    check-cast p0, Landroid/content/ContextWrapper;

    invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/qq/e/comm/plugin/util/be;->a(Landroid/content/Context;)Landroid/app/Activity;

    move-result-object p0

    goto :goto_4

    :cond_1b
    move-object p0, v0

    goto :goto_4
.end method

.method public static a(Landroid/content/Context;I)V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    const/16 v3, 0x400

    invoke-static {p0}, Lcom/qq/e/comm/plugin/e/b;->a(Landroid/content/Context;)Lcom/qq/e/comm/plugin/e/b;

    move-result-object v0

    if-eqz v0, :cond_10

    and-int/lit8 v1, p1, 0x4

    if-lez v1, :cond_2f

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/qq/e/comm/plugin/util/be;->a(Lcom/qq/e/comm/plugin/e/b;Z)V

    :cond_10
    :goto_10
    invoke-static {p0}, Lcom/qq/e/comm/plugin/util/be;->a(Landroid/content/Context;)Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_2e

    invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;

    move-result-object v1

    if-eqz v1, :cond_23

    and-int/lit8 v2, p1, 0x2

    if-lez v2, :cond_38

    invoke-virtual {v1}, Landroid/app/ActionBar;->hide()V

    :cond_23
    :goto_23
    and-int/lit8 v1, p1, 0x10

    if-lez v1, :cond_40

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/Window;->clearFlags(I)V

    :cond_2e
    :goto_2e
    return-void

    :cond_2f
    and-int/lit8 v1, p1, 0x8

    if-lez v1, :cond_10

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/qq/e/comm/plugin/util/be;->a(Lcom/qq/e/comm/plugin/e/b;Z)V

    goto :goto_10

    :cond_38
    and-int/lit8 v2, p1, 0x1

    if-lez v2, :cond_23

    invoke-virtual {v1}, Landroid/app/ActionBar;->show()V

    goto :goto_23

    :cond_40
    and-int/lit8 v1, p1, 0x20

    if-lez v1, :cond_2e

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/Window;->addFlags(I)V

    goto :goto_2e
.end method

.method private static a(Lcom/qq/e/comm/plugin/e/b;Z)V
    .registers 4

    invoke-virtual {p0}, Lcom/qq/e/comm/plugin/e/b;->a()Lcom/qq/e/comm/plugin/e/a;

    move-result-object v0

    if-nez v0, :cond_7

    :goto_6
    return-void

    :cond_7
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/qq/e/comm/plugin/e/a;->a(Z)V

    if-eqz p1, :cond_11

    invoke-virtual {v0}, Lcom/qq/e/comm/plugin/e/a;->b()V

    goto :goto_6

    :cond_11
    invoke-virtual {v0}, Lcom/qq/e/comm/plugin/e/a;->c()V

    goto :goto_6
.end method

.method public static a()Z
    .registers 3

    const/4 v0, 0x0

    :try_start_1
    const-string v1, "com.qq.e.ads.cfg.VideoOption"

    invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
    :try_end_8
    .catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_8} :catch_e

    const/16 v2, 0xe

    if-lt v1, v2, :cond_d

    const/4 v0, 0x1

    :cond_d
    :goto_d
    return v0

    :catch_e
    move-exception v1

    goto :goto_d
.end method

.method private static a(Lcom/qq/e/comm/plugin/e/b;)Z
    .registers 2

    invoke-virtual {p0}, Lcom/qq/e/comm/plugin/e/b;->a()Lcom/qq/e/comm/plugin/e/a;

    move-result-object v0

    if-nez v0, :cond_8

    const/4 v0, 0x0

    :goto_7
    return v0

    :cond_8
    invoke-virtual {v0}, Lcom/qq/e/comm/plugin/e/a;->a()Z

    move-result v0

    goto :goto_7
.end method

.method public static b(Landroid/content/Context;)V
    .registers 4
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    const/16 v2, 0x400

    invoke-static {p0}, Lcom/qq/e/comm/plugin/e/b;->a(Landroid/content/Context;)Lcom/qq/e/comm/plugin/e/b;

    move-result-object v0

    if-eqz v0, :cond_c

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/qq/e/comm/plugin/util/be;->a(Lcom/qq/e/comm/plugin/e/b;Z)V

    :cond_c
    invoke-static {p0}, Lcom/qq/e/comm/plugin/util/be;->a(Landroid/content/Context;)Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_22

    invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;

    move-result-object v1

    if-eqz v1, :cond_1b

    invoke-virtual {v1}, Landroid/app/ActionBar;->hide()V

    :cond_1b
    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V

    :cond_22
    return-void
.end method

.method public static b()Z
    .registers 2

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xe

    if-lt v0, v1, :cond_8

    const/4 v0, 0x1

    :goto_7
    return v0

    :cond_8
    const/4 v0, 0x0

    goto :goto_7
.end method

.method public static c(Landroid/content/Context;)I
    .registers 4
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    invoke-static {p0}, Lcom/qq/e/comm/plugin/e/b;->a(Landroid/content/Context;)Lcom/qq/e/comm/plugin/e/b;

    move-result-object v0

    if-eqz v0, :cond_3e

    invoke-static {v0}, Lcom/qq/e/comm/plugin/util/be;->a(Lcom/qq/e/comm/plugin/e/b;)Z

    move-result v0

    if-eqz v0, :cond_36

    const/4 v0, 0x4

    :goto_d
    or-int/lit8 v0, v0, 0x0

    :goto_f
    invoke-static {p0}, Lcom/qq/e/comm/plugin/util/be;->a(Landroid/content/Context;)Landroid/app/Activity;

    move-result-object v2

    if-eqz v2, :cond_35

    invoke-virtual {v2}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;

    move-result-object v1

    if-eqz v1, :cond_23

    invoke-virtual {v1}, Landroid/app/ActionBar;->isShowing()Z

    move-result v1

    if-eqz v1, :cond_39

    const/4 v1, 0x1

    :goto_22
    or-int/2addr v0, v1

    :cond_23
    invoke-virtual {v2}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v1

    if-eqz v1, :cond_35

    iget v1, v1, Landroid/view/WindowManager$LayoutParams;->flags:I

    and-int/lit16 v1, v1, 0x400

    if-lez v1, :cond_3b

    or-int/lit8 v0, v0, 0x20

    :cond_35
    :goto_35
    return v0

    :cond_36
    const/16 v0, 0x8

    goto :goto_d

    :cond_39
    const/4 v1, 0x2

    goto :goto_22

    :cond_3b
    or-int/lit8 v0, v0, 0x10

    goto :goto_35

    :cond_3e
    const/4 v0, 0x0

    goto :goto_f
.end method

.method public static c()Z
    .registers 3

    const/4 v0, 0x0

    :try_start_1
    const-string v1, "com.qq.e.ads.interstitial2.UnifiedInterstitialMediaListener"

    invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
    :try_end_8
    .catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_8} :catch_e

    const/16 v2, 0xe

    if-lt v1, v2, :cond_d

    const/4 v0, 0x1

    :cond_d
    :goto_d
    return v0

    :catch_e
    move-exception v1

    goto :goto_d
.end method