鑫垚影视 v20.42版本的 MD5 值为:e3822d25ef47121f1770bb4806abacfe

以下内容为反编译后的 PlayListDetailActivity.java 源代码,内容仅作参考


package com.movie.heaven.ui.index_daily_play_list;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import butterknife.BindView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.movie.heaven.base.page.BasePageActivity;
import com.movie.heaven.base.page.GlideRecyclerView;
import com.movie.heaven.base.page.MyLinearLayoutManager;
import com.movie.heaven.been.index_daily_play_list.IndexPlayListDetailBeen;
import com.movie.heaven.ui.search.SearchCmsListActivity;
import com.movie.heaven.widget.expandable.ExpandableTextView;
import com.yinghua.mediavideo.app.R;
import e.d.a.c.a.t.g;
import e.l.a.b;
import e.l.a.f.c.d;
import e.l.a.j.k;

public class PlayListDetailActivity extends BasePageActivity {
    public static final String EXTRA_ID = "EXTRA_ID";

    private String f5075a;

    private PlayListDetailAdapter f5076b;

    @BindView(R.id.iv_back)
    public ImageView ivBack;

    @BindView(b.h.jb)
    public GlideRecyclerView mRecycler;

    @BindView(b.h.rd)
    public SwipeRefreshLayout mSwipe;

    public class a implements View.OnClickListener {
        public a() {
        }

        @Override
        public void onClick(View view) {
            PlayListDetailActivity.this.finish();
        }
    }

    public class b implements g {
        public b() {
        }

        @Override
        public void onItemClick(BaseQuickAdapter baseQuickAdapter, View view, int i2) {
            SearchCmsListActivity.invoke(PlayListDetailActivity.this, ((IndexPlayListDetailBeen.DataBean.ListBean) baseQuickAdapter.getItem(i2)).getName(), false);
        }
    }

    public class c extends e.l.a.d.h.c<String> {
        public c(d dVar) {
            super(dVar);
        }

        @Override
        public void onNext(String str) {
            super.onNext(str);
            try {
                IndexPlayListDetailBeen indexPlayListDetailBeen = (IndexPlayListDetailBeen) k.b(str, IndexPlayListDetailBeen.class);
                IndexPlayListDetailBeen.DataBean.InfoBean info = indexPlayListDetailBeen.getData().getInfo();
                View inflate = LayoutInflater.from(PlayListDetailActivity.this).inflate(R.layout.header_play_detail, (ViewGroup) null, false);
                ((TextView) inflate.findViewById(R.id.tv_title)).setText(info.getName());
                ((ExpandableTextView) inflate.findViewById(R.id.tv_intro)).setContent(info.getDescription());
                if (PlayListDetailActivity.this.f5076b != null && PlayListDetailActivity.this.f5076b.getHeaderLayoutCount() == 0) {
                    PlayListDetailActivity.this.f5076b.addHeaderView(inflate);
                }
                PlayListDetailActivity.this.D(indexPlayListDetailBeen.getData().getList());
            } catch (Exception e2) {
                e2.printStackTrace();
                PlayListDetailActivity.this.J();
            }
        }

        @Override
        public void onError(Throwable th) {
            super.onError(th);
            PlayListDetailActivity.this.J();
        }
    }

    private void Q(int i2) {
        e.l.a.d.b.K().y("http://api-xl9-ssl.xunlei.com:80/sl/xlppc.playlist.api/v2/playlist/list", e.l.a.d.h.d.a("{\n\t\"id\": \"" + this.f5075a + "\",\n\t\"offset\": " + i2 + ",\n\t\"limit\": 20,\n\t\"type\": 0,\n\t\"passwd\": \"\"\n}")).j6(new c(null));
    }

    private void initExtra() {
        this.f5075a = getIntent().getStringExtra("EXTRA_ID");
    }

    private void initListener() {
        this.ivBack.setOnClickListener(new a());
        this.f5076b.setOnItemClickListener(new b());
    }

    public static void invoke(Context context, String str) {
        Intent intent = new Intent(context, (Class<?>) PlayListDetailActivity.class);
        intent.putExtra("EXTRA_ID", str);
        context.startActivity(intent);
    }

    @Override
    public void C() {
        e.l.a.f.d.g gVar = this.helper;
        int i2 = gVar.f13968c + 20;
        gVar.f13968c = i2;
        Q(i2);
    }

    @Override
    public void L() {
        Q(this.helper.f13968c);
    }

    @Override
    public BaseQuickAdapter a() {
        if (this.f5076b == null) {
            this.f5076b = new PlayListDetailAdapter(null);
        }
        return this.f5076b;
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_play_list_detail;
    }

    @Override
    public int h() {
        return 0;
    }

    @Override
    public void initView(@Nullable Bundle bundle) {
        initExtra();
        s(new MyLinearLayoutManager(this, 1, false));
        initListener();
        this.helper.p();
    }

    @Override
    public RecyclerView j() {
        return this.mRecycler;
    }

    @Override
    public SwipeRefreshLayout l() {
        return this.mSwipe;
    }
}