SearchResultFragment.smali

.class public final Lcom/singbox/party/search/SearchResultFragment;
.super Lcom/singbox/base/BaseFragment;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/singbox/party/search/SearchResultFragment$a;
    }
.end annotation


# static fields
.field static final synthetic a:[Lkotlin/k/g;

.field public static final b:Lcom/singbox/party/search/SearchResultFragment$a;


# instance fields
.field private c:Lcom/singbox/party/databinding/PartyFragmentSongBinding;

.field private d:Lcom/singbox/component/stat/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/singbox/component/stat/h<",
            "Lcom/singbox/component/backend/model/c/g;",
            ">;"
        }
    .end annotation
.end field

.field private e:Lcom/singbox/component/stat/i;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/singbox/component/stat/i<",
            "Lcom/singbox/component/backend/model/c/g;",
            ">;"
        }
    .end annotation
.end field

.field private final f:Lkotlin/f;

.field private final g:Lkotlin/f;

.field private final h:Lkotlin/f;

.field private i:Lcom/singbox/ui/widget/a/b;

.field private final j:Lcom/singbox/ui/viewholder/a/a;

.field private k:Z

.field private l:Z

.field private final m:Lcom/singbox/party/search/SearchResultFragment$differ$1;

.field private n:Lsg/bigo/arch/adapter/MultiTypeListAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lsg/bigo/arch/adapter/MultiTypeListAdapter<",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .registers 6

    const-class v0, Lcom/singbox/party/search/SearchResultFragment;

    const/4 v1, 0x3

    new-array v1, v1, [Lkotlin/k/g;

    new-instance v2, Lkotlin/f/b/z;

    invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v3

    const-string v4, "touchSlop"

    const-string v5, "getTouchSlop()I"

    invoke-direct {v2, v3, v4, v5}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v2

    check-cast v2, Lkotlin/k/g;

    const/4 v3, 0x0

    aput-object v2, v1, v3

    new-instance v2, Lkotlin/f/b/z;

    invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v3

    const-string v4, "viewModel"

    const-string v5, "getViewModel()Lcom/singbox/party/songtab/viewmodels/SongViewModel;"

    invoke-direct {v2, v3, v4, v5}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v2

    check-cast v2, Lkotlin/k/g;

    const/4 v3, 0x1

    aput-object v2, v1, v3

    new-instance v2, Lkotlin/f/b/z;

    invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v0

    const-string v3, "searchViewModel"

    const-string v4, "getSearchViewModel()Lcom/singbox/party/search/SearchViewModel;"

    invoke-direct {v2, v0, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v0

    check-cast v0, Lkotlin/k/g;

    const/4 v2, 0x2

    aput-object v0, v1, v2

    sput-object v1, Lcom/singbox/party/search/SearchResultFragment;->a:[Lkotlin/k/g;

    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/singbox/party/search/SearchResultFragment$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/singbox/party/search/SearchResultFragment;->b:Lcom/singbox/party/search/SearchResultFragment$a;

    return-void
.end method

.method public constructor <init>()V
    .registers 6

    .line 53
    invoke-direct {p0}, Lcom/singbox/base/BaseFragment;-><init>()V

    .line 57
    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$l;

    invoke-direct {v0, p0}, Lcom/singbox/party/search/SearchResultFragment$l;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    iput-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->f:Lkotlin/f;

    .line 61
    sget-object v0, Lcom/singbox/party/search/SearchResultFragment$m;->a:Lcom/singbox/party/search/SearchResultFragment$m;

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    iput-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->g:Lkotlin/f;

    .line 65
    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$k;

    invoke-direct {v0, p0}, Lcom/singbox/party/search/SearchResultFragment$k;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    iput-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->h:Lkotlin/f;

    .line 70
    new-instance v0, Lcom/singbox/ui/viewholder/a/a;

    invoke-direct {v0}, Lcom/singbox/ui/viewholder/a/a;-><init>()V

    iput-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->j:Lcom/singbox/ui/viewholder/a/a;

    .line 73
    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$differ$1;

    invoke-direct {v0}, Lcom/singbox/party/search/SearchResultFragment$differ$1;-><init>()V

    iput-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->m:Lcom/singbox/party/search/SearchResultFragment$differ$1;

    .line 94
    new-instance v1, Lsg/bigo/arch/adapter/MultiTypeListAdapter;

    check-cast v0, Landroidx/recyclerview/widget/DiffUtil$ItemCallback;

    const/4 v2, 0x0

    const/4 v3, 0x2

    const/4 v4, 0x0

    invoke-direct {v1, v0, v2, v3, v4}, Lsg/bigo/arch/adapter/MultiTypeListAdapter;-><init>(Landroidx/recyclerview/widget/DiffUtil$ItemCallback;ZILkotlin/f/b/j;)V

    iput-object v1, p0, Lcom/singbox/party/search/SearchResultFragment;->n:Lsg/bigo/arch/adapter/MultiTypeListAdapter;

    return-void
.end method

.method public static final synthetic a(I)I
    .registers 1

    if-lez p0, :cond_4

    const/4 p0, 0x1

    return p0

    :cond_4
    const/4 p0, 0x2

    return p0
.end method

.method public static final synthetic a(Lcom/singbox/party/search/SearchResultFragment;)Lcom/singbox/ui/widget/a/b;
    .registers 1

    .line 53
    iget-object p0, p0, Lcom/singbox/party/search/SearchResultFragment;->i:Lcom/singbox/ui/widget/a/b;

    return-object p0
.end method

.method public static final synthetic b(Lcom/singbox/party/search/SearchResultFragment;)Lcom/singbox/party/songtab/viewmodels/SongViewModel;
    .registers 1

    .line 53
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    move-result-object p0

    return-object p0
.end method

.method private final c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;
    .registers 2

    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->g:Lkotlin/f;

    invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    return-object v0
.end method

.method public static final synthetic c(Lcom/singbox/party/search/SearchResultFragment;)Z
    .registers 1

    .line 53
    iget-boolean p0, p0, Lcom/singbox/party/search/SearchResultFragment;->k:Z

    return p0
.end method

.method private final d()Lcom/singbox/party/search/SearchViewModel;
    .registers 2

    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->h:Lkotlin/f;

    invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/singbox/party/search/SearchViewModel;

    return-object v0
.end method

.method public static final synthetic d(Lcom/singbox/party/search/SearchResultFragment;)V
    .registers 2

    const/4 v0, 0x1

    .line 53
    iput-boolean v0, p0, Lcom/singbox/party/search/SearchResultFragment;->k:Z

    return-void
.end method

.method public static final synthetic e(Lcom/singbox/party/search/SearchResultFragment;)Lcom/singbox/party/search/SearchViewModel;
    .registers 1

    .line 53
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->d()Lcom/singbox/party/search/SearchViewModel;

    move-result-object p0

    return-object p0
.end method

.method public static final synthetic f(Lcom/singbox/party/search/SearchResultFragment;)Lsg/bigo/arch/adapter/MultiTypeListAdapter;
    .registers 1

    .line 53
    iget-object p0, p0, Lcom/singbox/party/search/SearchResultFragment;->n:Lsg/bigo/arch/adapter/MultiTypeListAdapter;

    return-object p0
.end method

.method public static final synthetic g(Lcom/singbox/party/search/SearchResultFragment;)I
    .registers 1

    .line 7000
    iget-object p0, p0, Lcom/singbox/party/search/SearchResultFragment;->f:Lkotlin/f;

    invoke-interface {p0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Number;

    invoke-virtual {p0}, Ljava/lang/Number;->intValue()I

    move-result p0

    return p0
.end method

.method public static final synthetic h(Lcom/singbox/party/search/SearchResultFragment;)Z
    .registers 1

    .line 53
    iget-boolean p0, p0, Lcom/singbox/party/search/SearchResultFragment;->l:Z

    return p0
.end method

.method public static final synthetic i(Lcom/singbox/party/search/SearchResultFragment;)V
    .registers 2

    const/4 v0, 0x1

    .line 53
    iput-boolean v0, p0, Lcom/singbox/party/search/SearchResultFragment;->l:Z

    return-void
.end method

.method public static final synthetic j(Lcom/singbox/party/search/SearchResultFragment;)Lcom/singbox/component/stat/h;
    .registers 1

    .line 53
    iget-object p0, p0, Lcom/singbox/party/search/SearchResultFragment;->d:Lcom/singbox/component/stat/h;

    return-object p0
.end method

.method public static final synthetic k(Lcom/singbox/party/search/SearchResultFragment;)Lcom/singbox/component/stat/i;
    .registers 1

    .line 53
    iget-object p0, p0, Lcom/singbox/party/search/SearchResultFragment;->e:Lcom/singbox/component/stat/i;

    return-object p0
.end method

.method public static final synthetic l(Lcom/singbox/party/search/SearchResultFragment;)Lcom/singbox/party/databinding/PartyFragmentSongBinding;
    .registers 1

    .line 53
    iget-object p0, p0, Lcom/singbox/party/search/SearchResultFragment;->c:Lcom/singbox/party/databinding/PartyFragmentSongBinding;

    return-object p0
.end method


# virtual methods
.method public final onCreate(Landroid/os/Bundle;)V
    .registers 2

    .line 97
    invoke-super {p0, p1}, Lcom/singbox/base/BaseFragment;->onCreate(Landroid/os/Bundle;)V

    return-void
.end method

.method public final onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .registers 13

    const-string p3, "inflater"

    invoke-static {p1, p3}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 101
    invoke-static {p1, p2}, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Lcom/singbox/party/databinding/PartyFragmentSongBinding;

    move-result-object p1

    const-string p2, "PartyFragmentSongBinding\u2026flater, container, false)"

    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 102
    iput-object p1, p0, Lcom/singbox/party/search/SearchResultFragment;->c:Lcom/singbox/party/databinding/PartyFragmentSongBinding;

    .line 1201
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    move-result-object p2

    .line 2054
    iget-object p2, p2, Lcom/singbox/party/songtab/viewmodels/SongViewModel;->c:Landroidx/lifecycle/LiveData;

    .line 1201
    invoke-virtual {p0}, Lcom/singbox/party/search/SearchResultFragment;->getViewLifecycleOwner()Landroidx/lifecycle/LifecycleOwner;

    move-result-object p3

    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$d;

    invoke-direct {v0, p0}, Lcom/singbox/party/search/SearchResultFragment$d;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v0, Landroidx/lifecycle/Observer;

    invoke-virtual {p2, p3, v0}, Landroidx/lifecycle/LiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V

    .line 1235
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    move-result-object p2

    new-instance p3, Lcom/singbox/party/search/SearchResultFragment$e;

    invoke-direct {p3, p0}, Lcom/singbox/party/search/SearchResultFragment$e;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast p3, Lkotlin/f/a/a;

    .line 2055
    iput-object p3, p2, Lcom/singbox/party/songtab/viewmodels/SongViewModel;->d:Lkotlin/f/a/a;

    .line 1240
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->d()Lcom/singbox/party/search/SearchViewModel;

    move-result-object p2

    .line 3037
    iget-object p2, p2, Lcom/singbox/party/search/SearchViewModel;->h:Landroidx/lifecycle/LiveData;

    .line 1240
    invoke-virtual {p0}, Lcom/singbox/party/search/SearchResultFragment;->getViewLifecycleOwner()Landroidx/lifecycle/LifecycleOwner;

    move-result-object p3

    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$f;

    invoke-direct {v0, p0}, Lcom/singbox/party/search/SearchResultFragment$f;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v0, Landroidx/lifecycle/Observer;

    invoke-virtual {p2, p3, v0}, Landroidx/lifecycle/LiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V

    .line 3110
    iget-object p2, p0, Lcom/singbox/party/search/SearchResultFragment;->c:Lcom/singbox/party/databinding/PartyFragmentSongBinding;

    const/4 p3, 0x0

    if-eqz p2, :cond_9c

    .line 3111
    new-instance v0, Lcom/singbox/ui/widget/a/b$a;

    invoke-direct {v0}, Lcom/singbox/ui/widget/a/b$a;-><init>()V

    .line 3112
    new-instance v1, Lcom/singbox/party/search/SearchResultFragment$b;

    invoke-direct {v1, p0}, Lcom/singbox/party/search/SearchResultFragment$b;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v1, Lcom/singbox/ui/widget/a/a;

    invoke-virtual {v0, v1}, Lcom/singbox/ui/widget/a/b$a;->a(Lcom/singbox/ui/widget/a/a;)Lcom/singbox/ui/widget/a/b$a;

    move-result-object v0

    .line 3118
    new-instance v1, Lcom/singbox/party/search/SearchResultFragment$c;

    sget v2, Lcom/singbox/party/c$e;->party_layout_loading_state:I

    invoke-direct {v1, v2}, Lcom/singbox/party/search/SearchResultFragment$c;-><init>(I)V

    check-cast v1, Lcom/singbox/ui/widget/a/a;

    invoke-virtual {v0, v1}, Lcom/singbox/ui/widget/a/b$a;->a(Lcom/singbox/ui/widget/a/a;)Lcom/singbox/ui/widget/a/b$a;

    move-result-object v0

    .line 3127
    new-instance v8, Lcom/singbox/ui/widget/a/c;

    const/4 v2, 0x0

    .line 3129
    sget v1, Lcom/singbox/party/c$f;->home_str_search_no_result:I

    new-array v3, p3, [Ljava/lang/Object;

    invoke-static {v1, v3}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    const-string v1, "NewResourceUtils.getStri\u2026ome_str_search_no_result)"

    invoke-static {v3, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 3130
    sget v1, Lcom/singbox/party/c$c;->ic_song_search_empty:I

    invoke-static {v1}, Lsg/bigo/mobile/android/aab/c/b;->a(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    const-string v1, "NewResourceUtils.getDraw\u2026ble.ic_song_search_empty)"

    invoke-static {v4, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 v5, 0x0

    const/16 v6, 0x8

    const/4 v7, 0x0

    move-object v1, v8

    .line 3127
    invoke-direct/range {v1 .. v7}, Lcom/singbox/ui/widget/a/c;-><init>(ZLjava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/String;ILkotlin/f/b/j;)V

    check-cast v8, Lcom/singbox/ui/widget/a/a;

    invoke-virtual {v0, v8}, Lcom/singbox/ui/widget/a/b$a;->a(Lcom/singbox/ui/widget/a/a;)Lcom/singbox/ui/widget/a/b$a;

    move-result-object v0

    .line 3132
    iget-object p2, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->c:Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;

    check-cast p2, Landroid/view/View;

    .line 3185
    iput-object p2, v0, Lcom/singbox/ui/widget/a/b$a;->b:Landroid/view/View;

    .line 3133
    invoke-virtual {v0}, Lcom/singbox/ui/widget/a/b$a;->a()Lcom/singbox/ui/widget/a/b;

    move-result-object p2

    iput-object p2, p0, Lcom/singbox/party/search/SearchResultFragment;->i:Lcom/singbox/ui/widget/a/b;

    .line 4138
    :cond_9c
    iget-object p2, p0, Lcom/singbox/party/search/SearchResultFragment;->c:Lcom/singbox/party/databinding/PartyFragmentSongBinding;

    if-eqz p2, :cond_160

    .line 4139
    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->n:Lsg/bigo/arch/adapter/MultiTypeListAdapter;

    new-instance v1, Lcom/singbox/ui/viewholder/a;

    const/4 v2, 0x0

    const/4 v3, 0x1

    invoke-direct {v1, v2, v3, v2}, Lcom/singbox/ui/viewholder/a;-><init>(Ljava/lang/String;ILkotlin/f/b/j;)V

    check-cast v1, Lcom/drakeet/multitype/c;

    .line 4317
    check-cast v1, Lcom/drakeet/multitype/d;

    .line 4318
    const-class v2, Lcom/singbox/ui/viewholder/a/a;

    invoke-virtual {v0, v2, v1}, Lcom/drakeet/multitype/MultiTypeAdapter;->a(Ljava/lang/Class;Lcom/drakeet/multitype/d;)V

    .line 4140
    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->n:Lsg/bigo/arch/adapter/MultiTypeListAdapter;

    new-instance v1, Lcom/singbox/party/songtab/viewholder/a;

    const/high16 v2, -0x80000000

    sget-object v4, Lcom/singbox/component/stat/k$a;->SEARCH:Lcom/singbox/component/stat/k$a;

    invoke-virtual {v4}, Lcom/singbox/component/stat/k$a;->name()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Lcom/singbox/party/search/SearchResultFragment$g;

    invoke-direct {v5, p0}, Lcom/singbox/party/search/SearchResultFragment$g;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v5, Lkotlin/f/a/m;

    invoke-direct {v1, v2, v4, v5}, Lcom/singbox/party/songtab/viewholder/a;-><init>(ILjava/lang/String;Lkotlin/f/a/m;)V

    check-cast v1, Lcom/drakeet/multitype/c;

    .line 4321
    check-cast v1, Lcom/drakeet/multitype/d;

    .line 4322
    const-class v2, Lcom/singbox/component/backend/model/c/g;

    invoke-virtual {v0, v2, v1}, Lcom/drakeet/multitype/MultiTypeAdapter;->a(Ljava/lang/Class;Lcom/drakeet/multitype/d;)V

    .line 4156
    iget-object v0, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingStart()I

    move-result v1

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingTop()I

    move-result v2

    const/high16 v4, 0x41800000    # 16.0f

    invoke-static {v4}, Lsg/bigo/common/k;->a(F)I

    move-result v4

    add-int/2addr v2, v4

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingEnd()I

    move-result v4

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingBottom()I

    move-result v5

    invoke-virtual {v0, v1, v2, v4, v5}, Landroidx/recyclerview/widget/RecyclerView;->setPadding(IIII)V

    .line 4157
    iget-object v0, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->d:Landroidx/recyclerview/widget/RecyclerView;

    const-string v1, "songList"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v2, p0, Lcom/singbox/party/search/SearchResultFragment;->n:Lsg/bigo/arch/adapter/MultiTypeListAdapter;

    check-cast v2, Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 4158
    iget-object v0, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v2, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lcom/singbox/party/search/SearchResultFragment;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v2, v4, v3, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    check-cast v2, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    invoke-virtual {v0, v2}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 4159
    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$h;

    invoke-direct {v0, p0}, Lcom/singbox/party/search/SearchResultFragment$h;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    .line 4171
    new-instance v2, Lcom/singbox/component/stat/i;

    sget-object v4, Lcom/singbox/component/stat/k$a;->SEARCH:Lcom/singbox/component/stat/k$a;

    invoke-virtual {v4}, Lcom/singbox/component/stat/k$a;->name()Ljava/lang/String;

    move-result-object v4

    .line 4172
    iget-object v5, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-static {v5, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Lcom/singbox/component/stat/f;

    .line 4171
    invoke-direct {v2, v4, v5, p3, v0}, Lcom/singbox/component/stat/i;-><init>(Ljava/lang/String;Landroidx/recyclerview/widget/RecyclerView;ILcom/singbox/component/stat/f;)V

    iput-object v2, p0, Lcom/singbox/party/search/SearchResultFragment;->e:Lcom/singbox/component/stat/i;

    .line 4173
    new-instance v2, Lcom/singbox/component/stat/h;

    sget-object v4, Lcom/singbox/component/stat/k$a;->SEARCH:Lcom/singbox/component/stat/k$a;

    invoke-virtual {v4}, Lcom/singbox/component/stat/k$a;->name()Ljava/lang/String;

    move-result-object v4

    iget-object v5, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-static {v5, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {v2, v4, v5, p3, v0}, Lcom/singbox/component/stat/h;-><init>(Ljava/lang/String;Landroidx/recyclerview/widget/RecyclerView;ILcom/singbox/component/stat/f;)V

    iput-object v2, p0, Lcom/singbox/party/search/SearchResultFragment;->d:Lcom/singbox/component/stat/h;

    .line 4174
    iget-object v0, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->c:Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;

    invoke-virtual {v0, p3}, Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;->setRefreshEnable(Z)V

    .line 4175
    iget-object v0, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->c:Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;

    invoke-virtual {v0, v3}, Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;->setLoadMore(Z)V

    .line 4176
    iget-object v0, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->c:Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;

    invoke-virtual {v0, p3}, Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;->setLoadMoreRepeatMode(Z)V

    .line 4177
    iget-object p3, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->c:Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;

    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$i;

    invoke-direct {v0, p0}, Lcom/singbox/party/search/SearchResultFragment$i;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v0, Lcom/singbox/ui/widget/refresh/c;

    invoke-virtual {p3, v0}, Lcom/singbox/ui/widget/refresh/MaterialRefreshLayout;->setMaterialRefreshListener(Lcom/singbox/ui/widget/refresh/c;)V

    .line 4189
    iget-object p3, p2, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->d:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v0, Lcom/singbox/party/search/SearchResultFragment$initRecyclerView$$inlined$apply$lambda$4;

    invoke-direct {v0, p2, p0}, Lcom/singbox/party/search/SearchResultFragment$initRecyclerView$$inlined$apply$lambda$4;-><init>(Lcom/singbox/party/databinding/PartyFragmentSongBinding;Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    invoke-virtual {p3, v0}, Landroidx/recyclerview/widget/RecyclerView;->addOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V

    .line 5043
    :cond_160
    iget-object p1, p1, Lcom/singbox/party/databinding/PartyFragmentSongBinding;->a:Landroidx/constraintlayout/widget/ConstraintLayout;

    .line 106
    check-cast p1, Landroid/view/View;

    return-object p1
.end method

.method public final onDestroy()V
    .registers 1

    .line 290
    invoke-super {p0}, Lcom/singbox/base/BaseFragment;->onDestroy()V

    .line 291
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    invoke-static {}, Lcom/singbox/party/songtab/viewmodels/SongViewModel;->d()V

    return-void
.end method

.method public final onDestroyView()V
    .registers 3

    .line 281
    invoke-super {p0}, Lcom/singbox/base/BaseFragment;->onDestroyView()V

    .line 282
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    move-result-object v0

    const-string v1, ""

    invoke-static {v0, v1}, Lcom/singbox/party/songtab/viewmodels/SongViewModel;->a(Lcom/singbox/party/songtab/viewmodels/SongViewModel;Ljava/lang/String;)V

    .line 283
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    move-result-object v0

    const/4 v1, 0x0

    .line 6055
    iput-object v1, v0, Lcom/singbox/party/songtab/viewmodels/SongViewModel;->d:Lkotlin/f/a/a;

    .line 284
    iput-object v1, p0, Lcom/singbox/party/search/SearchResultFragment;->c:Lcom/singbox/party/databinding/PartyFragmentSongBinding;

    const/4 v0, 0x0

    .line 285
    iput-boolean v0, p0, Lcom/singbox/party/search/SearchResultFragment;->l:Z

    .line 286
    iput-boolean v0, p0, Lcom/singbox/party/search/SearchResultFragment;->k:Z

    return-void
.end method

.method public final onPause()V
    .registers 3

    .line 295
    invoke-super {p0}, Lcom/singbox/base/BaseFragment;->onPause()V

    .line 296
    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->d:Lcom/singbox/component/stat/h;

    const/4 v1, 0x1

    if-eqz v0, :cond_b

    invoke-virtual {v0, v1}, Lcom/singbox/component/stat/h;->a(Z)V

    .line 297
    :cond_b
    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->e:Lcom/singbox/component/stat/i;

    if-eqz v0, :cond_12

    invoke-virtual {v0, v1}, Lcom/singbox/component/stat/i;->b(Z)V

    .line 298
    :cond_12
    sget-object v0, Lcom/singbox/component/player/b;->a:Lcom/singbox/component/player/b;

    invoke-static {}, Lcom/singbox/component/player/b;->a()Z

    move-result v0

    if-nez v0, :cond_23

    .line 299
    sget-object v0, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-static {v0}, Lcom/singbox/d/c;->b(Ljava/lang/Integer;)V

    :cond_23
    return-void
.end method

.method public final onResume()V
    .registers 6

    .line 263
    invoke-super {p0}, Lcom/singbox/base/BaseFragment;->onResume()V

    .line 264
    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->d:Lcom/singbox/component/stat/h;

    if-eqz v0, :cond_a

    invoke-virtual {v0}, Lcom/singbox/component/stat/h;->c()V

    .line 265
    :cond_a
    iget-object v0, p0, Lcom/singbox/party/search/SearchResultFragment;->e:Lcom/singbox/component/stat/i;

    if-eqz v0, :cond_14

    const-wide/16 v1, 0x0

    const/4 v3, 0x1

    invoke-static {v0, v1, v2, v3, v3}, Lcom/singbox/component/stat/i;->a(Lcom/singbox/component/stat/i;JZI)V

    .line 266
    :cond_14
    invoke-virtual {p0}, Lcom/singbox/party/search/SearchResultFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_47

    const/4 v1, 0x0

    const-string v2, "force_refresh"

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

    move-result v1

    if-eqz v1, :cond_44

    .line 268
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->d()Lcom/singbox/party/search/SearchViewModel;

    move-result-object v1

    .line 6029
    iget-object v1, v1, Lcom/singbox/party/search/SearchViewModel;->f:Landroidx/lifecycle/LiveData;

    .line 268
    invoke-virtual {v1}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-eqz v1, :cond_44

    .line 269
    invoke-direct {p0}, Lcom/singbox/party/search/SearchResultFragment;->c()Lcom/singbox/party/songtab/viewmodels/SongViewModel;

    move-result-object v3

    const-string v4, "key"

    invoke-static {v1, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v4, Lcom/singbox/party/search/SearchResultFragment$j;

    invoke-direct {v4, p0}, Lcom/singbox/party/search/SearchResultFragment$j;-><init>(Lcom/singbox/party/search/SearchResultFragment;)V

    check-cast v4, Lkotlin/f/a/a;

    invoke-virtual {v3, v1, v4}, Lcom/singbox/party/songtab/viewmodels/SongViewModel;->a(Ljava/lang/String;Lkotlin/f/a/a;)V

    .line 276
    :cond_44
    invoke-virtual {v0, v2}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V

    :cond_47
    return-void
.end method