package com.ss.android.ugc.aweme.kids.choosemusic.fragment;

import X.0Gf;
import X.0Gp;
import X.2GO;
import X.4PU;
import X.C5418OUr;
import X.C5422OUv;
import X.OSO;
import X.OSY;
import X.OV0;
import X.OV8;
import X.OVA;
import X.OVG;
import X.OVR;
import X.OW1;
import android.os.Bundle;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.music.model.Music;

public class HotMusicListFragment extends BaseMusicListFragment implements 4PU, OVR<Music>, 2GO {
    static {
        Covode.recordClassIndex(89292);
    }

    public final String LIZIZ() {
        return "hot_music_list_data";
    }

    public final /* bridge */ /* synthetic */ void LIZIZ(Object obj) {
    }

    public final String LIZJ() {
        return "refresh_status_hot_music_list";
    }

    public final String LIZLLL() {
        return "loadmore_status_hot_music_list";
    }

    public final int LJIIJ() {
        return 0;
    }

    public final String LJIIL() {
        return "";
    }

    public final void LIZ() {
        super.LIZ();
        this.LIZLLL.LIZJ();
    }

    public final void LJIILJJIL() {
        if (this.LIZLLL != null) {
            this.LIZLLL.LIZJ();
        }
    }

    public final void LJIILL() {
        if (getActivity() != null) {
            getActivity().onBackPressed();
        }
    }

    /* renamed from: bc_ */
    public final void LJIIJJI() {
        if (this.LJIIIZ != null) {
            this.LJIIIZ.LIZ();
        }
        if (this.LIZLLL != null && this.LJ != null) {
            C5418OUr oUr = this.LIZLLL;
            int intValue = ((Integer) ((OV8) this.LJ.LIZ("hot_music_list_data")).LIZ("list_cursor")).intValue();
            if (!oUr.LJI) {
                oUr.LJI = true;
                oUr.LIZ.getHotMusicList(intValue, 20, false).LIZ(new OV0(oUr), 0Gp.LIZIZ, (0Gf) null);
            }
        }
    }

    public static Fragment LIZ(int i) {
        HotMusicListFragment hotMusicListFragment = new HotMusicListFragment();
        Bundle bundle = new Bundle();
        bundle.putInt("com.ss.android.ugc.aweme.intent.extra.EXTRA_MUSIC_TYPE", i);
        hotMusicListFragment.setArguments(bundle);
        return hotMusicListFragment;
    }

    public final OVA LIZIZ(View view) {
        View view2 = view;
        C5422OUv oUv = new C5422OUv(getContext(), view2, this, 2131827608, this, this, this.LJIIJ);
        oUv.LIZ.setTitle(2131831511);
        oUv.LIZ((OVG) this);
        if (getContext() != null) {
            OSY osy = new OSY("change_music_page_detail", getContext().getString(2131831511), "click_more", OSO.LIZ);
            osy.LIZ("recommend_mc_id");
            oUv.LIZ(osy);
        }
        oUv.LIZ(new OW1(this));
        return oUv;
    }
}
