CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 GospelTrueListActivity$initData$1.java 源代码,内容仅作参考
package org.godfootsteps.home;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager3.widget.ViewPager3;
import carbon.custom.LoadingLayout;
import com.flyco.tablayout.SlidingTabLayout;
import d.c.a.j.v;
import d.c.i.f;
import i.c.a.c.n0;
import i.j.a.e.t.d;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import kotlin.Metadata;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.internal.Lambda;
import n.e;
import n.f.g;
import n.g.f.a.c;
import n.i.a.a;
import n.i.a.l;
import n.i.a.p;
import n.i.b.h;
import org.commons.screenadapt.recyclerview.FastScreenListAdapter;
import org.commons.screenadapt.recyclerview.ScreenViewHolder;
import org.godfootsteps.arch.api.AppClient;
import org.godfootsteps.arch.api.model.BaseModel;
import org.godfootsteps.arch.api.model.GospelTruthDetailResult;
import org.godfootsteps.arch.api.util.Request;
import org.godfootsteps.arch.customSystemViews.CustomThumbnailView;
import org.godfootsteps.arch.util.GAEventSendUtil;
import org.godfootsteps.arch.videoApi.VideoClient;
import org.godfootsteps.home.GospelTrueListActivity;
import org.godfootsteps.router.model.Video;
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u0014\u0012\u0004\u0012\u00020\u0003\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00030\u00040\u0002H\n"}, d2 = {"<anonymous>", "", "Lorg/godfootsteps/arch/api/util/Request;", "Lorg/godfootsteps/arch/api/model/GospelTruthDetailResult;", "Lorg/godfootsteps/arch/api/model/BaseModel;"}, k = 3, mv = {1, 5, 1}, xi = 48)
public final class GospelTrueListActivity$initData$1 extends Lambda implements l<Request<GospelTruthDetailResult, BaseModel<GospelTruthDetailResult>>, e> {
public final GospelTrueListActivity this$0;
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001H\u008a@"}, d2 = {"<anonymous>", "Lorg/godfootsteps/arch/api/model/BaseModel;", "Lorg/godfootsteps/arch/api/model/GospelTruthDetailResult;"}, k = 3, mv = {1, 5, 1}, xi = 48)
@c(c = "org.godfootsteps.home.GospelTrueListActivity$initData$1$2", f = "GospelTrueListActivity.kt", l = {72}, m = "invokeSuspend")
public static final class AnonymousClass2 extends SuspendLambda implements l<n.g.c<? super BaseModel<GospelTruthDetailResult>>, Object> {
public int label;
public final GospelTrueListActivity this$0;
public AnonymousClass2(GospelTrueListActivity gospelTrueListActivity, n.g.c<? super AnonymousClass2> cVar) {
super(1, cVar);
this.this$0 = gospelTrueListActivity;
}
@Override
public final n.g.c<e> create(n.g.c<?> cVar) {
return new AnonymousClass2(this.this$0, cVar);
}
@Override
public final Object invoke(n.g.c<? super BaseModel<GospelTruthDetailResult>> cVar) {
return ((AnonymousClass2) create(cVar)).invokeSuspend(e.a);
}
@Override
public final Object invokeSuspend(Object obj) {
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
int i2 = this.label;
if (i2 == 0) {
d.Q4(obj);
Objects.requireNonNull(AppClient.a);
AppClient appClient = AppClient.Companion.f15176d;
String valueOf = String.valueOf(((Number) this.this$0.f15801k.getValue()).intValue());
this.label = 1;
obj = appClient.G(valueOf, this);
if (obj == coroutineSingletons) {
return coroutineSingletons;
}
} else if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
d.Q4(obj);
}
return obj;
}
}
public GospelTrueListActivity$initData$1(GospelTrueListActivity gospelTrueListActivity) {
super(1);
this.this$0 = gospelTrueListActivity;
}
@Override
public e invoke(Request<GospelTruthDetailResult, BaseModel<GospelTruthDetailResult>> request) {
invoke2(request);
return e.a;
}
public final void invoke2(Request<GospelTruthDetailResult, BaseModel<GospelTruthDetailResult>> request) {
h.e(request, "$this$request");
final GospelTrueListActivity gospelTrueListActivity = this.this$0;
request.f15179k = new a<e>() {
{
super(0);
}
@Override
public e invoke() {
invoke2();
return e.a;
}
public final void invoke2() {
((LoadingLayout) GospelTrueListActivity.this.findViewById(R$id.loading_layout)).k();
}
};
request.f(new AnonymousClass2(this.this$0, null));
final GospelTrueListActivity gospelTrueListActivity2 = this.this$0;
request.f15180l = new l<GospelTruthDetailResult, e>() {
@Metadata(d1 = {"\u00005\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001J\b\u0010\u0003\u001a\u00020\u0004H\u0016J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0004H\u0016J\u0018\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0004H\u0016J\u0018\u0010\n\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u0004H\u0016J\u001e\u0010\u000e\u001a\u00020\b2\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0004¨\u0006\u0014"}, d2 = {"org/godfootsteps/home/GospelTrueListActivity$initData$1$3$3", "Landroidx/recyclerview/widget/RecyclerView$Adapter;", "Lorg/commons/screenadapt/recyclerview/ScreenViewHolder;", "getItemCount", "", "getItemViewType", "position", "onBindViewHolder", "", "holder", "onCreateViewHolder", "parent", "Landroid/view/ViewGroup;", "viewType", "setRV", "recyclerView", "Landroidx/recyclerview/widget/RecyclerView;", "item", "Lorg/godfootsteps/arch/api/model/GospelTruthDetailResult$ListBeanX;", "pos", "home_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public static final class C02653 extends RecyclerView.Adapter<ScreenViewHolder> {
public final GospelTruthDetailResult a;
public final GospelTrueListActivity b;
public C02653(GospelTruthDetailResult gospelTruthDetailResult, GospelTrueListActivity gospelTrueListActivity) {
this.a = gospelTruthDetailResult;
this.b = gospelTrueListActivity;
}
public final void f(RecyclerView recyclerView, final GospelTruthDetailResult.ListBeanX listBeanX, final int i2) {
h.e(recyclerView, "recyclerView");
h.e(listBeanX, "item");
if (recyclerView.getAdapter() == null) {
final GospelTrueListActivity gospelTrueListActivity = this.b;
Integer[] numArr = gospelTrueListActivity.f15808r.get(Integer.valueOf(i2));
if (numArr != null) {
LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();
h.c(linearLayoutManager);
linearLayoutManager.scrollToPositionWithOffset(numArr[0].intValue(), numArr[1].intValue());
}
recyclerView.setOnScrollListener(new RecyclerView.s() {
@Override
public void onScrollStateChanged(RecyclerView recyclerView2, int i3) {
h.e(recyclerView2, "recyclerView");
super.onScrollStateChanged(recyclerView2, i3);
GospelTrueListActivity.this.f15808r.put(Integer.valueOf(i2), n.m.t.a.p.m.e1.a.C0(recyclerView2));
}
});
final ArrayList arrayList = new ArrayList();
List<GospelTruthDetailResult.ListBeanX.ListBeen> list = listBeanX.list;
h.d(list, "item.list");
GospelTrueListActivity gospelTrueListActivity2 = this.b;
for (GospelTruthDetailResult.ListBeanX.ListBeen listBeen : list) {
Video video = gospelTrueListActivity2.f15805o.get(listBeen.getVideoId());
if (video != null) {
arrayList.add(video);
}
}
final GospelTrueListActivity gospelTrueListActivity3 = this.b;
recyclerView.setAdapter(new FastScreenListAdapter<Video>(gospelTrueListActivity3, arrayList) {
public final GospelTrueListActivity c;
public final List<Video> f15809d;
{
super(arrayList);
this.f15809d = arrayList;
}
@Override
public int g() {
return R$layout.item_video_tb;
}
@Override
public void i(ScreenViewHolder screenViewHolder, Video video2) {
final Video video3 = video2;
h.e(video3, "video");
if (screenViewHolder == null) {
return;
}
final GospelTruthDetailResult.ListBeanX listBeanX2 = GospelTruthDetailResult.ListBeanX.this;
final GospelTrueListActivity gospelTrueListActivity4 = this.c;
View view = screenViewHolder.f15173i;
View findViewById = view == null ? null : view.findViewById(R$id.iv_thumbnail);
h.d(findViewById, "iv_thumbnail");
((CustomThumbnailView) findViewById).e(v.i() ? video3.getThumbnailURL() : video3.getHqThumbnailURL(), R$drawable.ic_video_default, (r14 & 4) != 0 ? -1 : 0, (r14 & 8) != 0 ? -1 : 0, (r14 & 16) != 0 ? false : true);
View view2 = screenViewHolder.f15173i;
((CustomThumbnailView) (view2 != null ? view2.findViewById(R$id.iv_thumbnail) : null)).setDuration(video3.getDuration());
((TextView) screenViewHolder.itemView.findViewById(R$id.tv_title)).setText(video3.getTitle());
screenViewHolder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view3) {
String title;
GospelTruthDetailResult.ListBeanX listBeanX3 = GospelTruthDetailResult.ListBeanX.this;
Video video4 = video3;
GospelTrueListActivity gospelTrueListActivity5 = gospelTrueListActivity4;
n.i.b.h.e(listBeanX3, "$item");
n.i.b.h.e(video4, "$video");
n.i.b.h.e(gospelTrueListActivity5, "this$0");
List<GospelTruthDetailResult.ListBeanX.ListBeen> list2 = listBeanX3.list;
n.i.b.h.d(list2, "item.list");
GospelTruthDetailResult.ListBeanX.ListBeen listBeen2 = null;
for (GospelTruthDetailResult.ListBeanX.ListBeen listBeen3 : list2) {
if (n.i.b.h.a(listBeen3.getVideoId(), video4.getId())) {
listBeen2 = listBeen3;
}
}
d.c.i.f fVar = (d.c.i.f) k.a.a.a.a.b(d.c.i.f.class);
String str = "";
if (fVar != null) {
String id = video4.getId();
if (id == null) {
id = "";
}
String str2 = (listBeen2 == null || (str2 = listBeen2.getId()) == null) ? "" : "";
String stringExtra = gospelTrueListActivity5.getIntent().getStringExtra("mode");
if (stringExtra == null) {
stringExtra = "";
}
fVar.m(id, str2, stringExtra);
}
GAEventSendUtil.Companion companion = GAEventSendUtil.a;
String str3 = gospelTrueListActivity5.f15803m;
if (listBeen2 != null && (title = listBeen2.getTitle()) != null) {
str = title;
}
companion.o(str3, str);
}
});
}
});
}
}
@Override
public int getItemCount() {
return this.a.list.size();
}
@Override
public int getItemViewType(int i2) {
return i2;
}
@Override
public void onBindViewHolder(ScreenViewHolder screenViewHolder, int i2) {
String y;
final ScreenViewHolder screenViewHolder2 = screenViewHolder;
h.e(screenViewHolder2, "holder");
final GospelTruthDetailResult.ListBeanX listBeanX = this.a.list.get(i2);
if (screenViewHolder2.itemView instanceof RecyclerView) {
if (h.a(listBeanX.getType(), "video")) {
screenViewHolder2.itemView.setTag("video");
GospelTrueListActivity gospelTrueListActivity = this.b;
if (gospelTrueListActivity.f15807q) {
RecyclerView.n layoutManager = ((RecyclerView) screenViewHolder2.itemView).getLayoutManager();
Objects.requireNonNull(layoutManager, "null cannot be cast to non-null type androidx.recyclerview.widget.GridLayoutManager");
((GridLayoutManager) layoutManager).s(this.b.getResources().getInteger(R$integer.integer1_3_4));
h.d(listBeanX, "item");
f((RecyclerView) screenViewHolder2.itemView, listBeanX, screenViewHolder2.getLayoutPosition());
return;
}
RecyclerView recyclerView = (RecyclerView) screenViewHolder2.itemView;
recyclerView.setLayoutManager(new GridLayoutManager(gospelTrueListActivity, gospelTrueListActivity.getResources().getInteger(R$integer.integer1_3_4)));
n0.q(recyclerView, (int) gospelTrueListActivity.getResources().getDimension(R$dimen.dp0_36_x));
GospelTrueListActivity gospelTrueListActivity2 = this.b;
List<GospelTruthDetailResult.ListBeanX.ListBeen> list = listBeanX.list;
h.d(list, "item.list");
ArrayList arrayList = new ArrayList(d.S(list, 10));
for (GospelTruthDetailResult.ListBeanX.ListBeen listBeen : list) {
arrayList.add(listBeen.getVideoId());
}
Objects.requireNonNull(gospelTrueListActivity2);
int size = arrayList.size() / 48;
if (size * 48 != arrayList.size()) {
size++;
}
String[] strArr = new String[size];
for (int i3 = 0; i3 < size; i3++) {
strArr[i3] = "";
}
if (size > 0) {
int i4 = 0;
while (true) {
int i5 = i4 + 1;
if (i4 == size - 1) {
y = g.y(arrayList.subList(i4 * 48, arrayList.size()), ",", null, null, 0, null, null, 62);
} else {
int i6 = i4 * 48;
y = g.y(arrayList.subList(i6, i6 + 47), ",", null, null, 0, null, null, 62);
}
strArr[i4] = y;
if (i5 >= size) {
break;
}
i4 = i5;
}
}
gospelTrueListActivity2.f15804n = strArr;
final GospelTrueListActivity gospelTrueListActivity3 = this.b;
gospelTrueListActivity3.f15806p = 0;
gospelTrueListActivity3.f15807q = false;
String[] strArr2 = gospelTrueListActivity3.f15804n;
if (strArr2 == null) {
return;
}
for (String str : strArr2) {
f fVar = (f) k.a.a.a.a.b(f.class);
if (fVar != null) {
fVar.h(str, new l<List<? extends Video>, e>() {
{
super(1);
}
@Override
public e invoke(List<? extends Video> list2) {
invoke2(list2);
return e.a;
}
public final void invoke2(List<? extends Video> list2) {
h.e(list2, "videos");
GospelTrueListActivity gospelTrueListActivity4 = GospelTrueListActivity.this;
gospelTrueListActivity4.f15806p++;
for (Video video : list2) {
Map<String, Video> map = gospelTrueListActivity4.f15805o;
String id = video.getId();
h.d(id, "video.id");
map.put(id, video);
}
GospelTrueListActivity gospelTrueListActivity5 = GospelTrueListActivity.this;
int i7 = gospelTrueListActivity5.f15806p;
String[] strArr3 = gospelTrueListActivity5.f15804n;
if (i7 == (strArr3 == null ? 0 : strArr3.length)) {
gospelTrueListActivity5.f15807q = true;
GospelTruthDetailResult.ListBeanX listBeanX2 = listBeanX;
h.d(listBeanX2, "item");
this.f((RecyclerView) screenViewHolder2.itemView, listBeanX2, screenViewHolder2.getLayoutPosition());
}
}
}, new l<Integer, e>() {
{
super(1);
}
@Override
public e invoke(Integer num) {
invoke(num.intValue());
return e.a;
}
public final void invoke(int i7) {
GospelTrueListActivity gospelTrueListActivity4 = GospelTrueListActivity.this;
int i8 = gospelTrueListActivity4.f15806p + 1;
gospelTrueListActivity4.f15806p = i8;
String[] strArr3 = gospelTrueListActivity4.f15804n;
if (i8 == (strArr3 == null ? 0 : strArr3.length)) {
gospelTrueListActivity4.f15807q = true;
GospelTruthDetailResult.ListBeanX listBeanX2 = listBeanX;
h.d(listBeanX2, "item");
this.f((RecyclerView) screenViewHolder2.itemView, listBeanX2, screenViewHolder2.getLayoutPosition());
}
}
});
}
}
return;
}
RecyclerView recyclerView2 = (RecyclerView) screenViewHolder2.itemView;
final GospelTrueListActivity gospelTrueListActivity4 = this.b;
recyclerView2.setLayoutManager(new GridLayoutManager(gospelTrueListActivity4, gospelTrueListActivity4.getResources().getInteger(R$integer.integer1_2_x)));
n0.q(recyclerView2, (int) gospelTrueListActivity4.getResources().getDimension(R$dimen.dp0_36_x));
Integer[] numArr = gospelTrueListActivity4.f15808r.get(Integer.valueOf(screenViewHolder2.getLayoutPosition()));
if (numArr != null) {
LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerView2.getLayoutManager();
h.c(linearLayoutManager);
linearLayoutManager.scrollToPositionWithOffset(numArr[0].intValue(), numArr[1].intValue());
}
final int layoutPosition = screenViewHolder2.getLayoutPosition();
recyclerView2.setOnScrollListener(new RecyclerView.s() {
@Override
public void onScrollStateChanged(RecyclerView recyclerView3, int i7) {
h.e(recyclerView3, "recyclerView");
super.onScrollStateChanged(recyclerView3, i7);
GospelTrueListActivity.this.f15808r.put(Integer.valueOf(layoutPosition), n.m.t.a.p.m.e1.a.C0(recyclerView3));
}
});
screenViewHolder2.itemView.setTag("article");
if (((RecyclerView) screenViewHolder2.itemView).getAdapter() == null) {
final List<GospelTruthDetailResult.ListBeanX.ListBeen> list2 = listBeanX.list;
final GospelTrueListActivity gospelTrueListActivity5 = this.b;
((RecyclerView) screenViewHolder2.itemView).setAdapter(new FastScreenListAdapter<GospelTruthDetailResult.ListBeanX.ListBeen>(list2) {
@Override
public int g() {
return R$layout.item_thumbnail_title;
}
@Override
public void i(ScreenViewHolder screenViewHolder3, GospelTruthDetailResult.ListBeanX.ListBeen listBeen2) {
final GospelTruthDetailResult.ListBeanX.ListBeen listBeen3 = listBeen2;
h.e(listBeen3, "item");
if (screenViewHolder3 == null) {
return;
}
final GospelTrueListActivity gospelTrueListActivity6 = GospelTrueListActivity.this;
View view = screenViewHolder3.f15173i;
((TextView) (view == null ? null : view.findViewById(R$id.tv_title))).setText(listBeen3.getTitle());
View view2 = screenViewHolder3.f15173i;
View findViewById = view2 == null ? null : view2.findViewById(R$id.iv_thumbnail);
h.d(findViewById, "iv_thumbnail");
StringBuilder sb = new StringBuilder();
Objects.requireNonNull(AppClient.a);
sb.append("https://appservercn.kingdomsalvation.org");
sb.append(gospelTrueListActivity6.f15802l);
sb.append("ld/");
sb.append((Object) listBeen3.getImage());
((CustomThumbnailView) findViewById).e(sb.toString(), R$drawable.ic_placeholder_16_9, (r14 & 4) != 0 ? -1 : 0, (r14 & 8) != 0 ? -1 : 0, (r14 & 16) != 0 ? false : true);
View view3 = screenViewHolder3.f15173i;
((CustomThumbnailView) (view3 != null ? view3.findViewById(R$id.iv_thumbnail) : null)).setDuration("");
screenViewHolder3.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view4) {
GospelTruthDetailResult.ListBeanX.ListBeen listBeen4 = GospelTruthDetailResult.ListBeanX.ListBeen.this;
GospelTrueListActivity gospelTrueListActivity7 = gospelTrueListActivity6;
n.i.b.h.e(listBeen4, "$item");
n.i.b.h.e(gospelTrueListActivity7, "this$0");
d.c.i.c cVar = (d.c.i.c) k.a.a.a.a.b(d.c.i.c.class);
if (cVar != null) {
String bookId = listBeen4.getBookId();
n.i.b.h.d(bookId, "item.bookId");
String chapterId = listBeen4.getChapterId();
n.i.b.h.d(chapterId, "item.chapterId");
cVar.e(bookId, chapterId, listBeen4.getShare());
}
GAEventSendUtil.a.l(gospelTrueListActivity7.f15803m, listBeen4.getTitle());
}
});
}
});
return;
}
RecyclerView.Adapter adapter = ((RecyclerView) screenViewHolder2.itemView).getAdapter();
if (adapter == null) {
return;
}
adapter.notifyDataSetChanged();
}
}
@Override
public ScreenViewHolder onCreateViewHolder(ViewGroup viewGroup, int i2) {
h.e(viewGroup, "parent");
return new ScreenViewHolder(n0.f(viewGroup, R$layout.item_gospel_qa_page, false, 2));
}
}
{
super(1);
}
@Override
public e invoke(GospelTruthDetailResult gospelTruthDetailResult) {
invoke2(gospelTruthDetailResult);
return e.a;
}
public final void invoke2(GospelTruthDetailResult gospelTruthDetailResult) {
h.e(gospelTruthDetailResult, "model");
((LoadingLayout) GospelTrueListActivity.this.findViewById(R$id.loading_layout)).i();
GospelTrueListActivity gospelTrueListActivity3 = GospelTrueListActivity.this;
String imageUrl = gospelTruthDetailResult.getImageUrl();
if (imageUrl == null) {
imageUrl = "";
}
gospelTrueListActivity3.f15802l = imageUrl;
GospelTrueListActivity gospelTrueListActivity4 = GospelTrueListActivity.this;
gospelTruthDetailResult.getBookUrl();
Objects.requireNonNull(gospelTrueListActivity4);
String stringExtra = GospelTrueListActivity.this.getIntent().getStringExtra("platform");
boolean f2 = n.o.a.f(stringExtra != null ? stringExtra : "", "vimeo", true);
VideoClient.b = !f2;
List<GospelTruthDetailResult.ListBeanX> list = gospelTruthDetailResult.list;
h.d(list, "model.list");
for (GospelTruthDetailResult.ListBeanX listBeanX : list) {
if (h.a("video", listBeanX.getType()) && f2) {
listBeanX.list = listBeanX.listOther;
}
}
List<GospelTruthDetailResult.ListBeanX> list2 = gospelTruthDetailResult.list;
ArrayList R = i.a.b.a.a.R(list2, "model.list");
Iterator<T> it = list2.iterator();
while (true) {
boolean z = false;
if (!it.hasNext()) {
break;
}
Object next = it.next();
List<GospelTruthDetailResult.ListBeanX.ListBeen> list3 = ((GospelTruthDetailResult.ListBeanX) next).list;
if (!((list3 == null || list3.isEmpty()) ? true : true)) {
R.add(next);
}
}
gospelTruthDetailResult.list = R;
GospelTrueListActivity gospelTrueListActivity5 = GospelTrueListActivity.this;
int i2 = R$id.view_pager;
((ViewPager3) gospelTrueListActivity5.findViewById(i2)).setOffscreenPageLimit(gospelTruthDetailResult.list.size());
((ViewPager3) GospelTrueListActivity.this.findViewById(i2)).setAdapter(new C02653(gospelTruthDetailResult, GospelTrueListActivity.this));
if (gospelTruthDetailResult.list.size() <= 1) {
SlidingTabLayout slidingTabLayout = (SlidingTabLayout) GospelTrueListActivity.this.findViewById(R$id.tab_layout);
h.d(slidingTabLayout, "tab_layout");
n0.c(slidingTabLayout, false, 1);
return;
}
GospelTrueListActivity gospelTrueListActivity6 = GospelTrueListActivity.this;
int i3 = R$id.tab_layout;
SlidingTabLayout slidingTabLayout2 = (SlidingTabLayout) gospelTrueListActivity6.findViewById(i3);
h.d(slidingTabLayout2, "tab_layout");
n0.t(slidingTabLayout2);
String string = GospelTrueListActivity.this.getResources().getString(R$string.home_related_truth);
h.d(string, "resources.getString(resId)");
String string2 = GospelTrueListActivity.this.getResources().getString(R$string.about_us_related_videos);
h.d(string2, "resources.getString(resId)");
((SlidingTabLayout) GospelTrueListActivity.this.findViewById(i3)).x((ViewPager3) GospelTrueListActivity.this.findViewById(i2), g.C(string, string2));
}
};
final GospelTrueListActivity gospelTrueListActivity3 = this.this$0;
request.f15181m = new p<Integer, String, e>() {
{
super(2);
}
@Override
public e invoke(Integer num, String str) {
invoke(num.intValue(), str);
return e.a;
}
public final void invoke(int i2, String str) {
h.e(str, "$noName_1");
SlidingTabLayout slidingTabLayout = (SlidingTabLayout) GospelTrueListActivity.this.findViewById(R$id.tab_layout);
h.d(slidingTabLayout, "tab_layout");
n0.c(slidingTabLayout, false, 1);
LoadingLayout loadingLayout = (LoadingLayout) GospelTrueListActivity.this.findViewById(R$id.loading_layout);
h.d(loadingLayout, "loading_layout");
n.m.t.a.p.m.e1.a.v2(loadingLayout);
}
};
}
}