WebVideoActivity.smali

.class public Lcom/sandboxol/blockmango/webvideo/WebVideoActivity;
.super Lcom/sandboxol/common/base/app/BaseActivity;
.source "WebVideoActivity.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/app/BaseActivity<",
        "Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;",
        "Lcom/sandboxol/game/a/e;",
        ">;"
    }
.end annotation


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

    .line 1
    invoke-direct {p0}, Lcom/sandboxol/common/base/app/BaseActivity;-><init>()V

    return-void
.end method


# virtual methods
.method protected bridge synthetic bindViewModel(Landroidx/databinding/ViewDataBinding;Lcom/sandboxol/common/base/viewmodel/ViewModel;)V
    .registers 3

    .line 1
    check-cast p1, Lcom/sandboxol/game/a/e;

    check-cast p2, Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;

    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/blockmango/webvideo/WebVideoActivity;->bindViewModel(Lcom/sandboxol/game/a/e;Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;)V

    return-void
.end method

.method protected bindViewModel(Lcom/sandboxol/game/a/e;Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;)V
    .registers 3

    .line 2
    invoke-virtual {p1, p2}, Lcom/sandboxol/game/a/e;->a(Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;)V

    return-void
.end method

.method protected getLayoutId()I
    .registers 2

    .line 1
    sget v0, Lcom/sandboxol/game/R$layout;->activity_web_video:I

    return v0
.end method

.method protected getViewModel()Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;
    .registers 4

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_d

    const-string v1, "web.video"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_e

    :cond_d
    const/4 v0, 0x0

    .line 4
    :goto_e
    new-instance v1, Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;

    iget-object v2, p0, Lcom/sandboxol/common/base/app/BaseActivity;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast v2, Lcom/sandboxol/game/a/e;

    invoke-direct {v1, p0, v2, v0}, Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;-><init>(Landroid/app/Activity;Lcom/sandboxol/game/a/e;Ljava/lang/String;)V

    return-object v1
.end method

.method protected bridge synthetic getViewModel()Lcom/sandboxol/common/base/viewmodel/ViewModel;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lcom/sandboxol/blockmango/webvideo/WebVideoActivity;->getViewModel()Lcom/sandboxol/blockmango/webvideo/WebVideoViewModel;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3

    .line 1
    invoke-super {p0, p1}, Lcom/sandboxol/common/base/app/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x400

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

    return-void
.end method