91快播 v3.3.0版本的 MD5 值为:094b9519ad2388a8147509cb8a126145
以下内容为反编译后的 C4204.java 源代码,内容仅作参考
package anta.ᘔ;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import anta.Ⴑ.ActivityC2430;
import anta.ᓝ.InterfaceC3606;
import anta.ᘔ.C4204;
import anta.ᣀ.C4654;
import anta.ⶖ.C6466;
import anta.ⷚ.EnumC6526;
import anta.ㆇ.C6889;
import anta.㒘.AbstractC7185;
import anta.㕕.C7315;
import anta.㘥.C7435;
import anta.㟣.C7840;
import anta.㟣.C7848;
import anta.㩥.InterfaceC8706;
import anta.㩥.InterfaceC8709;
import anta.㮌.C9125;
import anta.㰇.C9326;
import anta.㵽.AbstractC9713;
import anta.㾓.InterfaceC10534;
import anta.㾓.InterfaceC10536;
import anta.䀛.C10606;
import com.fanchen.imovie.entity.Video;
import com.kb91.app65.R;
import com.scwang.smart.refresh.header.MaterialHeader;
import com.scwang.smart.refresh.layout.SmartRefreshLayout;
import com.theway.abc.v2.analytics.Report;
import com.theway.abc.v2.nidongde.mt.api.model.response.MTV2Video;
import com.theway.abc.v2.nidongde.mt.api.model.response.MTV2VideoListResponse;
import com.theway.abc.v2.nidongde.mt.search.MTSearchActivity;
import com.theway.abc.v2.nidongde.videoplay.VideoDetailsActivityV2;
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 C4204 extends AbstractC7185 {
public static final C4205 f10559 = new C4205(null);
public C4202 f10560;
public int f10561;
public int f10563;
public Map<Integer, View> f10562 = new LinkedHashMap();
public String f10564 = "";
public static final class C4205 {
public C4205(C7848 c7848) {
}
public final C4204 m4396(int i, String str) {
C7840.m6785(str, "extraParam");
C4204 c4204 = new C4204();
Bundle bundle = new Bundle();
bundle.putInt("LT_VIDEOS_PATH_KEY", i);
bundle.putString("key_activity_param_2", str);
c4204.m2384(bundle);
return c4204;
}
}
@Override
public boolean mo983() {
return true;
}
@Override
public void mo984() {
C4202 c4202 = new C4202(this, R.layout.lt_av_video_item);
this.f10560 = c4202;
c4202.m8519().m5840(true);
C4202 c42022 = this.f10560;
if (c42022 != null) {
C6466 m8519 = c42022.m8519();
m8519.f14819 = new InterfaceC10536() {
@Override
public final void mo642() {
C4204 c4204 = C4204.this;
C4204.C4205 c4205 = C4204.f10559;
C7840.m6785(c4204, "this$0");
c4204.m4395();
}
};
m8519.m5840(true);
C4202 c42023 = this.f10560;
if (c42023 != null) {
c42023.f21817 = new InterfaceC10534() {
@Override
public final void mo651(AbstractC9713 abstractC9713, View view, int i) {
C4204 c4204 = C4204.this;
C4204.C4205 c4205 = C4204.f10559;
C7840.m6785(c4204, "this$0");
C7840.m6785(abstractC9713, "adapter");
C7840.m6785(view, "view");
Object obj = abstractC9713.f21815.get(i);
MTV2Video mTV2Video = obj instanceof MTV2Video ? (MTV2Video) obj : null;
if (mTV2Video == null) {
return;
}
EnumC6526 enumC6526 = EnumC6526.MT_AV;
VideoDetailsActivityV2.m11223(c4204.m2329(), new Video(String.valueOf(mTV2Video.getVoid_id()), mTV2Video.getVod_name(), mTV2Video.getVod_pic(), mTV2Video.getVod_play_url(), enumC6526.serviceName, mTV2Video.getKw()), Boolean.FALSE, new Report.VideoTrackingModel(enumC6526.type, mTV2Video.getVod_name(), mTV2Video.getVod_pic(), String.valueOf(mTV2Video.getVoid_id()), mTV2Video.getVod_play_url(), ""));
}
};
return;
} else {
C7840.m6788("adapter");
throw null;
}
}
C7840.m6788("adapter");
throw null;
}
@Override
public void mo583() {
super.mo583();
this.f10562.clear();
}
public final void m4395() {
String sb;
InterfaceC3606.C3607 c3607 = InterfaceC3606.f8954;
Objects.requireNonNull(c3607);
if (InterfaceC3606.C3607.f8957 == null) {
return;
}
final int i = this.f10563 + 1;
if (this.f10561 == -901) {
StringBuilder m8071 = C9125.m8071("/api.php//provide/vod/?ac=detail&st=");
m8071.append(this.f10564);
m8071.append("&pg=");
m8071.append(i);
sb = m8071.toString();
} else {
StringBuilder m80712 = C9125.m8071("/api.php/provide/vod/?ac=detail&t=");
m80712.append(this.f10561);
m80712.append("&pg=");
m80712.append(i);
sb = m80712.toString();
}
String m6784 = C7840.m6784("https://51smt3.xyz", sb);
C6889 c6889 = this.f16211;
Objects.requireNonNull(c3607);
InterfaceC3606 interfaceC3606 = InterfaceC3606.C3607.f8957;
C7840.m6783(interfaceC3606);
c6889.mo2616(interfaceC3606.m3721(m6784).m7610(new InterfaceC8709() {
@Override
public final Object apply(Object obj) {
MTV2VideoListResponse mTV2VideoListResponse = (MTV2VideoListResponse) obj;
C4204.C4205 c4205 = C4204.f10559;
C7840.m6785(mTV2VideoListResponse, "it");
return mTV2VideoListResponse.getList();
}
}).m7609(C10606.f23730).m7612(C4654.m4701()).m7607(new InterfaceC8706() {
@Override
public final void accept(Object obj) {
C4204 c4204 = C4204.this;
int i2 = i;
List list = (List) obj;
C4204.C4205 c4205 = C4204.f10559;
C7840.m6785(c4204, "this$0");
((SmartRefreshLayout) c4204.mo985(R.id.refreshLayout)).m9808();
C4202 c4202 = c4204.f10560;
if (c4202 != null) {
c4202.m8519().m5845();
C7840.m6789(list, "it");
if (list.isEmpty()) {
C4202 c42022 = c4204.f10560;
if (c42022 != null) {
C6466.m5837(c42022.m8519(), false, 1, null);
return;
} else {
C7840.m6788("adapter");
throw null;
}
}
if (i2 == 1) {
C4202 c42023 = c4204.f10560;
if (c42023 == null) {
C7840.m6788("adapter");
throw null;
}
c42023.m8527(list);
} else {
C4202 c42024 = c4204.f10560;
if (c42024 == null) {
C7840.m6788("adapter");
throw null;
}
c42024.m8523(list);
}
c4204.f10563 = i2;
return;
}
C7840.m6788("adapter");
throw null;
}
}, new InterfaceC8706() {
@Override
public final void accept(Object obj) {
C4204 c4204 = C4204.this;
Throwable th = (Throwable) obj;
C4204.C4205 c4205 = C4204.f10559;
C7840.m6785(c4204, "this$0");
((SmartRefreshLayout) c4204.mo985(R.id.refreshLayout)).m9808();
C4202 c4202 = c4204.f10560;
if (c4202 != null) {
c4202.m8519().m5845();
C4202 c42022 = c4204.f10560;
if (c42022 != null) {
C6466.m5837(c42022.m8519(), false, 1, null);
C7435.m6455("无更多更数据");
return;
}
C7840.m6788("adapter");
throw null;
}
C7840.m6788("adapter");
throw null;
}
}));
}
@Override
public void mo1762() {
if (this.f10561 != -901) {
C4202 c4202 = this.f10560;
if (c4202 != null) {
View inflate = m2393().inflate(R.layout.lt_search_input_layout, (ViewGroup) ((RecyclerView) mo985(R.id.rv_content)), false);
View findViewById = inflate.findViewById(R.id.lt_search_cover_view);
findViewById.setVisibility(0);
findViewById.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
C4204 c4204 = C4204.this;
C4204.C4205 c4205 = C4204.f10559;
C7840.m6785(c4204, "this$0");
ActivityC2430 m2395 = c4204.m2395();
C7840.m6789(m2395, "requireActivity()");
C7840.m6785(m2395, "activity");
c4204.m2333(new Intent(m2395, MTSearchActivity.class));
}
});
C7840.m6789(inflate, "searchView");
AbstractC9713.m8517(c4202, inflate, 0, 0, 6, null);
return;
}
C7840.m6788("adapter");
throw null;
}
}
@Override
public View mo985(int i) {
View findViewById;
Map<Integer, View> map = this.f10562;
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.f10562.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() {
C4202 c4202 = this.f10560;
if (c4202 != null) {
return c4202;
}
C7840.m6788("adapter");
throw null;
}
@Override
public void mo720() {
this.f10561 = m2397().getInt("LT_VIDEOS_PATH_KEY");
String string = m2397().getString("key_activity_param_2", "");
C7840.m6789(string, "requireArguments().getSt…KEY_ACTIVITY_PARAM_2, \"\")");
this.f10564 = string;
}
@Override
public RecyclerView.AbstractC0159 mo989() {
return new C9326((int) C7315.m6342(8), 0, 0, 6);
}
@Override
public RecyclerView.AbstractC0150 mo990() {
return new LinearLayoutManager(m2329());
}
@Override
public void mo991(boolean z) {
if (z) {
((SmartRefreshLayout) mo985(R.id.refreshLayout)).m9800(0, IjkMediaCodecInfo.RANK_SECURE, 2.0f, true);
}
this.f10563 = 0;
m4395();
}
@Override
public int mo585() {
return R.layout.fragment_lt_videos_list;
}
}