VideoDetailFragment.smali

.class public Lcom/sandboxol/blockymods/view/activity/videodetail/VideoDetailFragment;
.super Lcom/sandboxol/common/base/app/TemplateFragment;
.source "VideoDetailFragment.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/app/TemplateFragment<",
        "Lcom/sandboxol/blockymods/view/activity/videodetail/x;",
        "Lcom/sandboxol/blockymods/databinding/Rc;",
        ">;"
    }
.end annotation


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

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

    return-void
.end method


# virtual methods
.method protected a(Lcom/sandboxol/blockymods/databinding/Rc;Lcom/sandboxol/blockymods/view/activity/videodetail/x;)V
    .registers 3

    .line 1
    invoke-virtual {p1, p2}, Lcom/sandboxol/blockymods/databinding/Rc;->a(Lcom/sandboxol/blockymods/view/activity/videodetail/x;)V

    .line 2
    invoke-virtual {p2, p1}, Lcom/sandboxol/blockymods/view/activity/videodetail/x;->a(Lcom/sandboxol/blockymods/databinding/Rc;)V

    return-void
.end method

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

    .line 1
    check-cast p1, Lcom/sandboxol/blockymods/databinding/Rc;

    check-cast p2, Lcom/sandboxol/blockymods/view/activity/videodetail/x;

    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/blockymods/view/activity/videodetail/VideoDetailFragment;->a(Lcom/sandboxol/blockymods/databinding/Rc;Lcom/sandboxol/blockymods/view/activity/videodetail/x;)V

    return-void
.end method

.method protected getLayoutId()I
    .registers 2

    const v0, 0x7f0d0145

    return v0
.end method

.method protected getViewModel()Lcom/sandboxol/blockymods/view/activity/videodetail/x;
    .registers 5

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const/4 v1, 0x1

    if-eqz v0, :cond_1e

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const-string v2, "youtube_video_detail_info"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/greendao/entity/VideoDetailInfo;

    .line 4
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "youtube_video_detail_is_need_refresh"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    goto :goto_1f

    :cond_1e
    const/4 v0, 0x0

    .line 5
    :goto_1f
    new-instance v2, Lcom/sandboxol/blockymods/view/activity/videodetail/x;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v3

    if-nez v0, :cond_2c

    new-instance v0, Lcom/sandboxol/greendao/entity/VideoDetailInfo;

    invoke-direct {v0}, Lcom/sandboxol/greendao/entity/VideoDetailInfo;-><init>()V

    :cond_2c
    invoke-direct {v2, v3, v0, v1}, Lcom/sandboxol/blockymods/view/activity/videodetail/x;-><init>(Landroid/app/Activity;Lcom/sandboxol/greendao/entity/VideoDetailInfo;Z)V

    return-object v2
.end method

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

    .line 1
    invoke-virtual {p0}, Lcom/sandboxol/blockymods/view/activity/videodetail/VideoDetailFragment;->getViewModel()Lcom/sandboxol/blockymods/view/activity/videodetail/x;

    move-result-object v0

    return-object v0
.end method