91快播 v3.3.0版本的 MD5 值为:094b9519ad2388a8147509cb8a126145

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


package anta.ㄧ;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import anta.ᓝ.InterfaceC3606;
import anta.ᣀ.C4654;
import anta.ⶖ.C6466;
import anta.ㆇ.C6889;
import anta.㒘.AbstractC7185;
import anta.㕕.C7315;
import anta.㘥.C7435;
import anta.㟣.C7840;
import anta.㩥.InterfaceC8706;
import anta.㩥.InterfaceC8709;
import anta.㰇.C9328;
import anta.㵽.AbstractC9713;
import anta.㾓.InterfaceC10534;
import anta.㾓.InterfaceC10536;
import anta.䀛.C10606;
import com.kb91.app65.R;
import com.scwang.smart.refresh.header.MaterialHeader;
import com.scwang.smart.refresh.layout.SmartRefreshLayout;
import com.theway.abc.v2.nidongde.mt.api.model.response.MTV2Actor;
import com.theway.abc.v2.nidongde.mt.api.model.response.MTV2ActorResponse;
import com.theway.abc.v2.nidongde.mt.video.MTVideoActivity;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import tv.danmaku.ijk.media.player.IjkMediaCodecInfo;
public final class C6814 extends AbstractC7185 {
    public static final int f15594 = 0;
    public C6813 f15595;
    public Map<Integer, View> f15596 = new LinkedHashMap();
    public int f15597;

    @Override
    public void mo984() {
        C6813 c6813 = new C6813(this, R.layout.mm_dashboard_item);
        this.f15595 = c6813;
        if (c6813 != null) {
            c6813.m8519().m5840(true);
            C6813 c68132 = this.f15595;
            if (c68132 != null) {
                C6466 m8519 = c68132.m8519();
                m8519.f14819 = new InterfaceC10536() {
                    @Override
                    public final void mo642() {
                        C6814 c6814 = C6814.this;
                        int i = C6814.f15594;
                        C7840.m6785(c6814, "this$0");
                        c6814.m6029();
                    }
                };
                m8519.m5840(true);
                C6813 c68133 = this.f15595;
                if (c68133 != null) {
                    c68133.f21817 = new InterfaceC10534() {
                        @Override
                        public final void mo651(AbstractC9713 abstractC9713, View view, int i) {
                            C6814 c6814 = C6814.this;
                            int i2 = C6814.f15594;
                            C7840.m6785(c6814, "this$0");
                            C7840.m6785(abstractC9713, "adapter");
                            C7840.m6785(view, "view");
                            Object obj = abstractC9713.f21815.get(i);
                            MTV2Actor mTV2Actor = obj instanceof MTV2Actor ? (MTV2Actor) obj : null;
                            if (mTV2Actor == null) {
                                return;
                            }
                            Context m2329 = c6814.m2329();
                            C7840.m6789(m2329, "requireContext()");
                            String actor_name = mTV2Actor.getActor_name();
                            C7840.m6785(m2329, "context");
                            C7840.m6785(actor_name, "param");
                            Intent intent = new Intent(m2329, MTVideoActivity.class);
                            intent.putExtra("key_activity_param_1", actor_name);
                            c6814.m2333(intent);
                        }
                    };
                    return;
                } else {
                    C7840.m6788("adapter");
                    throw null;
                }
            }
            C7840.m6788("adapter");
            throw null;
        }
        C7840.m6788("adapter");
        throw null;
    }

    @Override
    public void mo583() {
        super.mo583();
        this.f15596.clear();
    }

    public final void m6029() {
        InterfaceC3606.C3607 c3607 = InterfaceC3606.f8954;
        Objects.requireNonNull(c3607);
        if (InterfaceC3606.C3607.f8957 == null) {
            return;
        }
        final int i = this.f15597 + 1;
        C6889 c6889 = this.f16211;
        Objects.requireNonNull(c3607);
        InterfaceC3606 interfaceC3606 = InterfaceC3606.C3607.f8957;
        C7840.m6783(interfaceC3606);
        c6889.mo2616(interfaceC3606.m3720("https://51smt3.xyz/api.php/provide/actor/?ac=detail&pg=" + i).m7610(new InterfaceC8709() {
            @Override
            public final Object apply(Object obj) {
                MTV2ActorResponse mTV2ActorResponse = (MTV2ActorResponse) obj;
                int i2 = C6814.f15594;
                C7840.m6785(mTV2ActorResponse, "it");
                return mTV2ActorResponse.getList();
            }
        }).m7609(C10606.f23730).m7612(C4654.m4701()).m7607(new InterfaceC8706() {
            @Override
            public final void accept(Object obj) {
                C6814 c6814 = C6814.this;
                int i2 = i;
                List list = (List) obj;
                int i3 = C6814.f15594;
                C7840.m6785(c6814, "this$0");
                ((SmartRefreshLayout) c6814.mo985(R.id.refreshLayout)).m9808();
                C6813 c6813 = c6814.f15595;
                if (c6813 != null) {
                    c6813.m8519().m5845();
                    C7840.m6789(list, "it");
                    if (list.isEmpty()) {
                        C6813 c68132 = c6814.f15595;
                        if (c68132 != null) {
                            c68132.m8519().m5845();
                            C6813 c68133 = c6814.f15595;
                            if (c68133 != null) {
                                C6466.m5837(c68133.m8519(), false, 1, null);
                                return;
                            } else {
                                C7840.m6788("adapter");
                                throw null;
                            }
                        }
                        C7840.m6788("adapter");
                        throw null;
                    }
                    if (i2 == 1) {
                        C6813 c68134 = c6814.f15595;
                        if (c68134 == null) {
                            C7840.m6788("adapter");
                            throw null;
                        }
                        c68134.m8527(list);
                    } else {
                        C6813 c68135 = c6814.f15595;
                        if (c68135 == null) {
                            C7840.m6788("adapter");
                            throw null;
                        }
                        c68135.m8523(list);
                    }
                    c6814.f15597 = i2;
                    return;
                }
                C7840.m6788("adapter");
                throw null;
            }
        }, new InterfaceC8706() {
            @Override
            public final void accept(Object obj) {
                C6814 c6814 = C6814.this;
                Throwable th = (Throwable) obj;
                int i2 = C6814.f15594;
                C7840.m6785(c6814, "this$0");
                ((SmartRefreshLayout) c6814.mo985(R.id.refreshLayout)).m9808();
                C6813 c6813 = c6814.f15595;
                if (c6813 != null) {
                    c6813.m8519().m5845();
                    C6813 c68132 = c6814.f15595;
                    if (c68132 != null) {
                        C6466.m5837(c68132.m8519(), false, 1, null);
                        C7435.m6455("无更多更数据");
                        return;
                    }
                    C7840.m6788("adapter");
                    throw null;
                }
                C7840.m6788("adapter");
                throw null;
            }
        }));
    }

    @Override
    public View mo985(int i) {
        View findViewById;
        Map<Integer, View> map = this.f15596;
        View view = map.get(Integer.valueOf(i));
        if (view == null) {
            View view2 = this.f5802;
            if (view2 == null || (findViewById = view2.findViewById(i)) == null) {
                return null;
            }
            map.put(Integer.valueOf(i), findViewById);
            return findViewById;
        }
        return view;
    }

    @Override
    public void mo645() {
        this.f15596.clear();
    }

    @Override
    public void mo987(SmartRefreshLayout smartRefreshLayout) {
        C7840.m6785(smartRefreshLayout, "refreshLayout");
        MaterialHeader materialHeader = new MaterialHeader(m2329());
        materialHeader.m9784(R.color.mm_primary_color);
        smartRefreshLayout.m9810(materialHeader);
        smartRefreshLayout.setBackgroundColor(m2352().getColor(R.color.mm_default_bg_color));
    }

    @Override
    public Object mo988() {
        C6813 c6813 = this.f15595;
        if (c6813 != null) {
            return c6813;
        }
        C7840.m6788("adapter");
        throw null;
    }

    @Override
    public RecyclerView.AbstractC0159 mo989() {
        return new C9328((int) C7315.m6362(8.0f), true, 0, 0, 12);
    }

    @Override
    public RecyclerView.AbstractC0150 mo990() {
        return new GridLayoutManager(m2329(), 4);
    }

    @Override
    public void mo991(boolean z) {
        if (z) {
            ((SmartRefreshLayout) mo985(R.id.refreshLayout)).m9800(0, IjkMediaCodecInfo.RANK_SECURE, 2.0f, true);
        }
        this.f15597 = 0;
        m6029();
    }

    @Override
    public int mo585() {
        return R.layout.fragment_lt_videos_list;
    }
}