TestCenterFragment.smali

.class public final Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;
.super Lcom/sandboxol/common/base/app/TemplateFragment;
.source "TestCenterFragment.kt"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/app/TemplateFragment<",
        "Lcom/sandboxol/editor/c/a;",
        "Lcom/sandboxol/editor/a/c;",
        ">;"
    }
.end annotation


# instance fields
.field public a:Lcom/sandboxol/editor/c/a/a;

.field private b:Ljava/util/HashMap;


# 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

.method public static final synthetic a(Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;)V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->g()V

    return-void
.end method

.method public static final synthetic b(Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;)Landroid/content/Context;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/sandboxol/common/base/app/BaseFragment;->context:Landroid/content/Context;

    return-object p0
.end method

.method private final g()V
    .registers 5

    .line 1
    sget-object v0, Lcom/sandboxol/editor/domain/d;->a:Lcom/sandboxol/editor/domain/d;

    iget-object v1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a:Lcom/sandboxol/editor/c/a/a;

    if-eqz v1, :cond_11

    iget-object v2, p0, Lcom/sandboxol/common/base/app/BaseFragment;->context:Landroid/content/Context;

    const-string v3, "context"

    invoke-static {v2, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Lcom/sandboxol/editor/domain/d;->a(Lcom/sandboxol/editor/c/a/a;Landroid/content/Context;)V

    return-void

    :cond_11
    const-string v0, "model"

    invoke-static {v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method private final h()V
    .registers 5

    .line 1
    sget-object v0, Lcom/sandboxol/editor/domain/d;->a:Lcom/sandboxol/editor/domain/d;

    iget-object v1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a:Lcom/sandboxol/editor/c/a/a;

    if-eqz v1, :cond_11

    iget-object v2, p0, Lcom/sandboxol/common/base/app/BaseFragment;->context:Landroid/content/Context;

    const-string v3, "context"

    invoke-static {v2, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Lcom/sandboxol/editor/domain/d;->b(Lcom/sandboxol/editor/c/a/a;Landroid/content/Context;)V

    return-void

    :cond_11
    const-string v0, "model"

    invoke-static {v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method


# virtual methods
.method public _$_clearFindViewByIdCache()V
    .registers 2

    iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->b:Ljava/util/HashMap;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_7
    return-void
.end method

.method protected a(Lcom/sandboxol/editor/a/c;Lcom/sandboxol/editor/c/a;)V
    .registers 3

    return-void
.end method

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

    .line 1
    check-cast p1, Lcom/sandboxol/editor/a/c;

    check-cast p2, Lcom/sandboxol/editor/c/a;

    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a(Lcom/sandboxol/editor/a/c;Lcom/sandboxol/editor/c/a;)V

    return-void
.end method

.method protected getLayoutId()I
    .registers 2

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

    return v0
.end method

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

    .line 1
    invoke-virtual {p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->getViewModel()Lcom/sandboxol/editor/c/a;

    move-result-object v0

    return-object v0
.end method

.method protected getViewModel()Lcom/sandboxol/editor/c/a;
    .registers 2

    .line 2
    new-instance v0, Lcom/sandboxol/editor/c/a;

    invoke-direct {v0}, Lcom/sandboxol/editor/c/a;-><init>()V

    return-object v0
.end method

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

    .line 1
    invoke-super {p0, p1}, Lcom/trello/rxlifecycle/components/support/a;->onCreate(Landroid/os/Bundle;)V

    .line 2
    new-instance p1, Landroidx/lifecycle/y;

    invoke-direct {p1, p0}, Landroidx/lifecycle/y;-><init>(Landroidx/lifecycle/A;)V

    const-class v0, Lcom/sandboxol/editor/c/a/a;

    invoke-virtual {p1, v0}, Landroidx/lifecycle/y;->a(Ljava/lang/Class;)Landroidx/lifecycle/w;

    move-result-object p1

    const-string v0, "ViewModelProvider(this).\u2026torViewModel::class.java)"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Lcom/sandboxol/editor/c/a/a;

    iput-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a:Lcom/sandboxol/editor/c/a/a;

    return-void
.end method

.method public synthetic onDestroyView()V
    .registers 1

    invoke-super {p0}, Lcom/trello/rxlifecycle/components/support/a;->onDestroyView()V

    invoke-virtual {p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->_$_clearFindViewByIdCache()V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .registers 11

    const-string v0, "view"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    invoke-super {p0, p1, p2}, Lcom/trello/rxlifecycle/components/support/a;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 2
    new-instance v6, Lcom/sandboxol/editor/view/fragment/testcenter/b;

    iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a:Lcom/sandboxol/editor/c/a/a;

    const/4 p2, 0x0

    const-string v0, "model"

    if-eqz p1, :cond_9f

    invoke-static {p1}, Landroidx/lifecycle/x;->a(Landroidx/lifecycle/w;)Lkotlinx/coroutines/F;

    move-result-object p1

    iget-object v1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->context:Landroid/content/Context;

    const-string v2, "context"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

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

    move-result-object v2

    invoke-static {v2}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;)V

    const-string v3, "fragmentManager!!"

    invoke-static {v2, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v3, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a:Lcom/sandboxol/editor/c/a/a;

    if-eqz v3, :cond_9b

    invoke-virtual {v3}, Lcom/sandboxol/editor/c/a/a;->d()Landroidx/lifecycle/p;

    move-result-object v3

    invoke-direct {v6, p1, v1, v2, v3}, Lcom/sandboxol/editor/view/fragment/testcenter/b;-><init>(Lkotlinx/coroutines/F;Landroid/content/Context;Landroidx/fragment/app/FragmentManager;Landroidx/lifecycle/LiveData;)V

    .line 3
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object p1, p1, Lcom/sandboxol/editor/a/c;->b:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;

    invoke-virtual {p1}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;

    move-result-object p1

    invoke-virtual {p1, v6}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$a;)V

    .line 4
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object p1, p1, Lcom/sandboxol/editor/a/c;->b:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;

    invoke-virtual {p1}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;

    move-result-object p1

    invoke-static {p1}, Lcom/sandboxol/editor/b/a;->a(Landroidx/recyclerview/widget/RecyclerView;)V

    .line 5
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object v1, p1, Lcom/sandboxol/editor/a/c;->b:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;

    iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->a:Lcom/sandboxol/editor/c/a/a;

    if-eqz p1, :cond_97

    invoke-virtual {p1}, Lcom/sandboxol/editor/c/a/a;->c()Landroidx/lifecycle/p;

    move-result-object v2

    .line 6
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object v4, p1, Lcom/sandboxol/editor/a/c;->c:Lcom/sandboxol/editor/view/widget/TestCenterLoadingView;

    const-string p1, "binding.loadingView"

    invoke-static {v4, p1}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 7
    new-instance v5, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment$onViewCreated$1;

    invoke-direct {v5, p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment$onViewCreated$1;-><init>(Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;)V

    .line 8
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object p1, p1, Lcom/sandboxol/editor/a/c;->a:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;

    invoke-static {p1}, Lkotlin/collections/l;->a(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v7

    move-object v3, p0

    .line 9
    invoke-virtual/range {v1 .. v7}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->set(Landroidx/lifecycle/p;Landroidx/fragment/app/Fragment;Lcom/sandboxol/common/widget/ILoadingView;Lkotlin/jvm/a/a;Lcom/sandboxol/editor/view/fragment/testcenter/a;Ljava/util/List;)V

    .line 10
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object p1, p1, Lcom/sandboxol/editor/a/c;->c:Lcom/sandboxol/editor/view/widget/TestCenterLoadingView;

    invoke-virtual {p1}, Lcom/sandboxol/editor/view/widget/TestCenterLoadingView;->startLoading()V

    .line 11
    iget-object p1, p0, Lcom/sandboxol/common/base/app/BaseFragment;->binding:Landroidx/databinding/ViewDataBinding;

    check-cast p1, Lcom/sandboxol/editor/a/c;

    iget-object p1, p1, Lcom/sandboxol/editor/a/c;->a:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;

    new-instance p2, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment$onViewCreated$2;

    invoke-direct {p2, p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment$onViewCreated$2;-><init>(Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;)V

    invoke-virtual {p1, p2}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    invoke-direct {p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->g()V

    .line 13
    invoke-direct {p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterFragment;->h()V

    return-void

    .line 14
    :cond_97
    invoke-static {v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/String;)V

    throw p2

    .line 15
    :cond_9b
    invoke-static {v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/String;)V

    throw p2

    :cond_9f
    invoke-static {v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/String;)V

    throw p2
.end method