正在查看: Aisle v12.32 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aisle v12.32 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package f4;
import Q2.a;
import R2.C0664z1;
import S1.H;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import com.aisle.app.data.response.home.SuccessStories;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import me.relex.circleindicator.CircleIndicator;
import w9.n;
@Metadata
public final class f extends Fragment {
private C0664z1 f23423a;
private SuccessStories f23424b;
private boolean f23425c;
private h f23426d;
public H f23427e;
public f() {
super(2131558649);
this.f23424b = new SuccessStories(null, null, null, 7, null);
}
private final void K() {
final com.google.firebase.remoteconfig.a k5 = com.google.firebase.remoteconfig.a.k();
Intrinsics.checkNotNullExpressionValue(k5, "getInstance(...)");
n c5 = new n.b().e(0L).c();
Intrinsics.checkNotNullExpressionValue(c5, "build(...)");
k5.q(c5);
k5.h().addOnCompleteListener(new OnCompleteListener() {
public final void onComplete(Task task) {
f.L(f.this, k5, task);
}
});
}
public static final void L(f fVar, com.google.firebase.remoteconfig.a aVar, Task task) {
Intrinsics.checkNotNullParameter(task, "task");
if (!task.isSuccessful()) {
fVar.S("https://blog.aisle.co/");
return;
}
String n5 = aVar.n("blog_link");
Intrinsics.checkNotNullExpressionValue(n5, "getString(...)");
fVar.S(n5);
}
private final void N() {
K();
}
public static final void O(f fVar, View view) {
fVar.N();
}
public static final void P(f fVar, View view) {
fVar.N();
}
private final void S(String str) {
M().K(a.C0568b.a0(Q2.a.f5075a, str, false, 2, null));
}
public final H M() {
H h5 = this.f23427e;
if (h5 != null) {
return h5;
}
Intrinsics.throwUninitializedPropertyAccessException("navController");
return null;
}
public final void Q(H h5) {
Intrinsics.checkNotNullParameter(h5, "<set-?>");
this.f23427e = h5;
}
public final void R(SuccessStories successStories, boolean z4) {
Intrinsics.checkNotNullParameter(successStories, "storyItem");
this.f23424b = successStories;
this.f23425c = z4;
}
@Override
public void onViewCreated(View view, Bundle bundle) {
Intrinsics.checkNotNullParameter(view, "view");
super.onViewCreated(view, bundle);
this.f23423a = C0664z1.a(view);
Q(androidx.navigation.fragment.b.a(this));
Context requireContext = requireContext();
Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
this.f23426d = new h(requireContext, this.f23424b.getPhotos());
C0664z1 c0664z1 = this.f23423a;
C0664z1 c0664z12 = null;
if (c0664z1 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z1 = null;
}
ViewPager viewPager = c0664z1.f7363j;
h hVar = this.f23426d;
if (hVar == null) {
Intrinsics.throwUninitializedPropertyAccessException("loveStoryImageViewPager");
hVar = null;
}
viewPager.setAdapter(hVar);
C0664z1 c0664z13 = this.f23423a;
if (c0664z13 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z13 = null;
}
CircleIndicator circleIndicator = c0664z13.f7355b;
C0664z1 c0664z14 = this.f23423a;
if (c0664z14 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z14 = null;
}
circleIndicator.setViewPager(c0664z14.f7363j);
C0664z1 c0664z15 = this.f23423a;
if (c0664z15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z15 = null;
}
c0664z15.f7355b.setVisibility((this.f23424b.getPhotos() == null || this.f23424b.getPhotos().size() <= 1) ? 8 : 0);
if (this.f23424b.getDate_text() != null) {
C0664z1 c0664z16 = this.f23423a;
if (c0664z16 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z16 = null;
}
c0664z16.f7365l.setVisibility(0);
C0664z1 c0664z17 = this.f23423a;
if (c0664z17 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z17 = null;
}
c0664z17.f7366m.setVisibility(8);
C0664z1 c0664z18 = this.f23423a;
if (c0664z18 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z18 = null;
}
c0664z18.f7356c.setText(this.f23424b.getDate_text());
C0664z1 c0664z19 = this.f23423a;
if (c0664z19 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z19 = null;
}
c0664z19.f7357d.setText(this.f23425c ? "For more stories " : "Swipe up or ");
C0664z1 c0664z110 = this.f23423a;
if (c0664z110 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z110 = null;
}
c0664z110.f7362i.setText(this.f23424b.getTop_message() != null ? this.f23424b.getTop_message() : "");
} else {
C0664z1 c0664z111 = this.f23423a;
if (c0664z111 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z111 = null;
}
c0664z111.f7361h.setText(this.f23424b.getTop_message() != null ? this.f23424b.getTop_message() : "");
C0664z1 c0664z112 = this.f23423a;
if (c0664z112 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z112 = null;
}
c0664z112.f7365l.setVisibility(8);
C0664z1 c0664z113 = this.f23423a;
if (c0664z113 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z113 = null;
}
c0664z113.f7366m.setVisibility(0);
}
C0664z1 c0664z114 = this.f23423a;
if (c0664z114 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c0664z114 = null;
}
c0664z114.f7359f.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
f.O(f.this, view2);
}
});
C0664z1 c0664z115 = this.f23423a;
if (c0664z115 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
c0664z12 = c0664z115;
}
c0664z12.f7360g.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
f.P(f.this, view2);
}
});
}
}