导航菜单

页面标题

页面副标题

Aisle v12.32 - C2739f.java 源代码

正在查看: Aisle v12.32 应用的 C2739f.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package f4;

import Q2.a;
import R2.C1034z1;
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.R;
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 C2739f extends Fragment {

    private C1034z1 f36276a;

    private SuccessStories f36277b;

    private boolean f36278c;

    private C2741h f36279d;

    public H f36280e;

    public C2739f() {
        super(R.layout.love_stories_item_fragment);
        this.f36277b = new SuccessStories(null, null, null, 7, null);
    }

    private final void K() {
        final com.google.firebase.remoteconfig.a k10 = com.google.firebase.remoteconfig.a.k();
        Intrinsics.checkNotNullExpressionValue(k10, "getInstance(...)");
        n c10 = new n.b().e(0L).c();
        Intrinsics.checkNotNullExpressionValue(c10, "build(...)");
        k10.q(c10);
        k10.h().addOnCompleteListener(new OnCompleteListener() {
            @Override
            public final void onComplete(Task task) {
                C2739f.L(C2739f.this, k10, task);
            }
        });
    }

    public static final void L(C2739f c2739f, com.google.firebase.remoteconfig.a aVar, Task task) {
        Intrinsics.checkNotNullParameter(task, "task");
        if (!task.isSuccessful()) {
            c2739f.S("https://blog.aisle.co/");
            return;
        }
        String n10 = aVar.n("blog_link");
        Intrinsics.checkNotNullExpressionValue(n10, "getString(...)");
        c2739f.S(n10);
    }

    private final void N() {
        K();
    }

    public static final void O(C2739f c2739f, View view) {
        c2739f.N();
    }

    public static final void P(C2739f c2739f, View view) {
        c2739f.N();
    }

    private final void S(String str) {
        M().K(a.C0930b.a0(Q2.a.f8656a, str, false, 2, null));
    }

    public final H M() {
        H h10 = this.f36280e;
        if (h10 != null) {
            return h10;
        }
        Intrinsics.throwUninitializedPropertyAccessException("navController");
        return null;
    }

    public final void Q(H h10) {
        Intrinsics.checkNotNullParameter(h10, "<set-?>");
        this.f36280e = h10;
    }

    public final void R(SuccessStories storyItem, boolean z10) {
        Intrinsics.checkNotNullParameter(storyItem, "storyItem");
        this.f36277b = storyItem;
        this.f36278c = z10;
    }

    @Override
    public void onViewCreated(View view, Bundle bundle) {
        Intrinsics.checkNotNullParameter(view, "view");
        super.onViewCreated(view, bundle);
        this.f36276a = C1034z1.a(view);
        Q(androidx.navigation.fragment.b.a(this));
        Context requireContext = requireContext();
        Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
        this.f36279d = new C2741h(requireContext, this.f36277b.getPhotos());
        C1034z1 c1034z1 = this.f36276a;
        C1034z1 c1034z12 = null;
        if (c1034z1 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            c1034z1 = null;
        }
        ViewPager viewPager = c1034z1.f11107j;
        C2741h c2741h = this.f36279d;
        if (c2741h == null) {
            Intrinsics.throwUninitializedPropertyAccessException("loveStoryImageViewPager");
            c2741h = null;
        }
        viewPager.setAdapter(c2741h);
        C1034z1 c1034z13 = this.f36276a;
        if (c1034z13 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            c1034z13 = null;
        }
        CircleIndicator circleIndicator = c1034z13.f11099b;
        C1034z1 c1034z14 = this.f36276a;
        if (c1034z14 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            c1034z14 = null;
        }
        circleIndicator.setViewPager(c1034z14.f11107j);
        C1034z1 c1034z15 = this.f36276a;
        if (c1034z15 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            c1034z15 = null;
        }
        c1034z15.f11099b.setVisibility((this.f36277b.getPhotos() == null || this.f36277b.getPhotos().size() <= 1) ? 8 : 0);
        if (this.f36277b.getDate_text() != null) {
            C1034z1 c1034z16 = this.f36276a;
            if (c1034z16 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z16 = null;
            }
            c1034z16.f11109l.setVisibility(0);
            C1034z1 c1034z17 = this.f36276a;
            if (c1034z17 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z17 = null;
            }
            c1034z17.f11110m.setVisibility(8);
            C1034z1 c1034z18 = this.f36276a;
            if (c1034z18 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z18 = null;
            }
            c1034z18.f11100c.setText(this.f36277b.getDate_text());
            C1034z1 c1034z19 = this.f36276a;
            if (c1034z19 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z19 = null;
            }
            c1034z19.f11101d.setText(this.f36278c ? "For more stories " : "Swipe up or ");
            C1034z1 c1034z110 = this.f36276a;
            if (c1034z110 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z110 = null;
            }
            c1034z110.f11106i.setText(this.f36277b.getTop_message() != null ? this.f36277b.getTop_message() : "");
        } else {
            C1034z1 c1034z111 = this.f36276a;
            if (c1034z111 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z111 = null;
            }
            c1034z111.f11105h.setText(this.f36277b.getTop_message() != null ? this.f36277b.getTop_message() : "");
            C1034z1 c1034z112 = this.f36276a;
            if (c1034z112 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z112 = null;
            }
            c1034z112.f11109l.setVisibility(8);
            C1034z1 c1034z113 = this.f36276a;
            if (c1034z113 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c1034z113 = null;
            }
            c1034z113.f11110m.setVisibility(0);
        }
        C1034z1 c1034z114 = this.f36276a;
        if (c1034z114 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            c1034z114 = null;
        }
        c1034z114.f11103f.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view2) {
                C2739f.O(C2739f.this, view2);
            }
        });
        C1034z1 c1034z115 = this.f36276a;
        if (c1034z115 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            c1034z12 = c1034z115;
        }
        c1034z12.f11104g.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view2) {
                C2739f.P(C2739f.this, view2);
            }
        });
    }
}