导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - a.java 源代码

正在查看: Hopscotch v9.7.2 应用的 a.java JAVA 源代码文件

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


package in.hopscotch.android.fragment;

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.IntentSenderRequest;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import in.hopscotch.android.activity.CreditDetailsActivity;
import in.hopscotch.android.activity.FavouriteBrandsActivity;
import in.hopscotch.android.activity.MyKidsActivity;
import in.hopscotch.android.activity.MyMomentActivity;
import in.hopscotch.android.activity.NudgeActivity;
import in.hopscotch.android.activity.ProfileDetailsActivity;
import in.hopscotch.android.activity.StoredCardsActivity;
import in.hopscotch.android.activity.customerinfo.AddressListingActivity;
import in.hopscotch.android.activity.customerinfo.LoginActivity;
import in.hopscotch.android.activity.parent.BottombarNavigationActivity;
import in.hopscotch.android.adapter.a;
import in.hopscotch.android.api.factory.AccountCardApiFactory;
import in.hopscotch.android.api.factory.CustomerInfoApiFactory;
import in.hopscotch.android.application.HsApplication;
import in.hopscotch.android.common.util.c;
import in.hopscotch.android.common.util.u;
import in.hopscotch.android.model.FromAccount;
import in.hopscotch.android.model.UserStatus;
import in.hopscotch.android.ui.legal.LegalPageActivity;
import in.hopscotch.android.ui.orders.OrdersMainActivity;
import in.hopscotch.android.viewholders.homepage.o;
import in.hopscotch.android.widget.ControllableAppBarLayout;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.FunctionAdapter;
import kotlin.jvm.internal.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class a extends Fragment implements o.a {

    @NotNull
    private static final String FROM_ACCOUNTS_SCREEN = "Account";

    @NotNull
    private static final String GO_TO_SIGN_IN = "signIn";

    @NotNull
    private static final String GO_TO_SIGN_UP = "signUp";

    @NotNull
    private static final String GUEST_ACTION = "guestAction";

    @NotNull
    private LinearLayoutManager accountLayoutManager;

    @NotNull
    private List<a.b> accountSectionRows;
    private in.hopscotch.android.appupdate.b appUpdateHelper;

    @NotNull
    private final androidx.activity.result.b<IntentSenderRequest> appUpdateLauncher;
    private in.hopscotch.android.databinding.i binding;
    private double credit;
    private boolean helpSectionButton;

    @NotNull
    private in.hopscotch.android.cache.sharedpreferences.inappupdate.a inAppUpdatePreferences;
    private boolean isLoggedIn;
    public in.hopscotch.android.adapter.a p1;

    @NotNull
    public static final C0023a s1 = new C0023a(null);

    @NotNull
    private static String FROM_SCREEN = "fromScreen";

    public static final class C0023a {
        public C0023a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public static void a(@NotNull String fromScreenName) {
            Intrinsics.checkNotNullParameter(fromScreenName, "fromScreenName");
            a.FROM_SCREEN = fromScreenName;
        }

        private C0023a() {
        }
    }

    public class b implements androidx.activity.result.a, FunctionAdapter {
        public b() {
        }

        public final void a(Object obj) {
            ActivityResult p0 = (ActivityResult) obj;
            Intrinsics.checkNotNullParameter(p0, "p0");
            C0023a c0023a = a.s1;
            a.this.getClass();
            if (p0.c() == 0) {
                a.D0("in_app_update_user_cancel");
            } else if (p0.c() == 1) {
                a.D0("in_app_update_installed_failed");
            }
        }

        public final boolean equals(Object obj) {
            if ((obj instanceof androidx.activity.result.a) && (obj instanceof FunctionAdapter)) {
                return Intrinsics.areEqual(getFunctionDelegate(), ((FunctionAdapter) obj).getFunctionDelegate());
            }
            return false;
        }

        @Override
        @NotNull
        public final kotlin.h<?> getFunctionDelegate() {
            return new FunctionReferenceImpl(1, a.this, a.class, "onAppUpdateResult", "onAppUpdateResult(Landroidx/activity/result/ActivityResult;)V", 0);
        }

        public final int hashCode() {
            return getFunctionDelegate().hashCode();
        }
    }

    public static final class c implements Observer, FunctionAdapter {
        private final Function1 function;

        public c(Function1 function) {
            Intrinsics.checkNotNullParameter(function, "function");
            this.function = function;
        }

        public final boolean equals(Object obj) {
            if ((obj instanceof Observer) && (obj instanceof FunctionAdapter)) {
                return Intrinsics.areEqual(this.function, ((FunctionAdapter) obj).getFunctionDelegate());
            }
            return false;
        }

        @Override
        @NotNull
        public final kotlin.h<?> getFunctionDelegate() {
            return this.function;
        }

        public final int hashCode() {
            return this.function.hashCode();
        }

        public final void onChanged(Object obj) {
            this.function.invoke(obj);
        }
    }

    public a() {
        HsApplication b2 = HsApplication.b();
        Intrinsics.checkNotNullExpressionValue(b2, "getHsApplication(...)");
        this.inAppUpdatePreferences = new in.hopscotch.android.cache.sharedpreferences.inappupdate.a(new in.hopscotch.android.cache.sharedpreferences.a(b2));
        this.helpSectionButton = true;
        this.isLoggedIn = UserStatus.getInstance().getLoginStatus();
        this.accountLayoutManager = new LinearLayoutManager(getActivity());
        this.accountSectionRows = new ArrayList();
        androidx.activity.result.b<IntentSenderRequest> registerForActivityResult = registerForActivityResult(new androidx.activity.result.contract.f(), new b());
        Intrinsics.checkNotNullExpressionValue(registerForActivityResult, "registerForActivityResult(...)");
        this.appUpdateLauncher = registerForActivityResult;
    }

    public static void A(a this$0, ControllableAppBarLayout.c cVar) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        if (cVar == ControllableAppBarLayout.c.EXPANDED) {
            in.hopscotch.android.databinding.i iVar = this$0.binding;
            if (iVar == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                iVar = null;
            }
            iVar.b.setVisibility(8);
        }
    }

    public static void B(a this$0) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        in.hopscotch.android.databinding.i iVar = this$0.binding;
        if (iVar == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            iVar = null;
        }
        iVar.d.z0(0);
    }

    public static final void D(a aVar, in.hopscotch.android.appupdate.d dVar) {
        aVar.getClass();
        if (dVar.d()) {
            if (dVar.e()) {
                aVar.inAppUpdatePreferences.d(2025072909);
                aVar.F0();
                return;
            }
            if (!dVar.e() && aVar.inAppUpdatePreferences.a() >= 3) {
                if (dVar.c()) {
                    D0("in_app_update_install_shown");
                } else if (dVar.e()) {
                    D0("in_app_update_installed_success");
                }
                if (aVar.A0().k() > 0) {
                    if (aVar.A0().O().get(0) instanceof a.j) {
                        a.j jVar = aVar.accountSectionRows.get(0);
                        Intrinsics.checkNotNull(jVar, "null cannot be cast to non-null type in.hopscotch.android.adapter.AccountAdapter.InAppUpdateItemRow");
                        jVar.b(dVar);
                        aVar.A0().q(0);
                    } else {
                        aVar.accountSectionRows.add(0, new a.j(dVar));
                        aVar.A0().s(0);
                    }
                }
            }
            LinearLayoutManager linearLayoutManager = aVar.accountLayoutManager;
            View k1 = linearLayoutManager.k1(0, linearLayoutManager.H(), true, false);
            if ((k1 == null ? -1 : RecyclerView.n.V(k1)) == 0) {
                in.hopscotch.android.databinding.i iVar = aVar.binding;
                in.hopscotch.android.databinding.i iVar2 = null;
                if (iVar == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    iVar = null;
                }
                iVar.d.w0(0);
                in.hopscotch.android.databinding.i iVar3 = aVar.binding;
                if (iVar3 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                } else {
                    iVar2 = iVar3;
                }
                iVar2.d.postDelayed(new androidx.activity.n(aVar, 23), 0L);
            }
        }
    }

    public static void D0(String str) {
        HashMap q = android.support.v4.media.c.q("from_screen", FROM_ACCOUNTS_SCREEN);
        if (!q.isEmpty()) {
            com.google.android.gms.internal.icing.v1.f(str, q, false, true);
        }
    }

    public static final void E(a aVar, int i, String fromLocation) {
        androidx.fragment.app.n activity;
        aVar.getClass();
        if (i == 1 && (UserStatus.getInstance().getLoginStatus() || in.hopscotch.android.db.a.A())) {
            Context context = aVar.getContext();
            if (context != null) {
                OrdersMainActivity.a aVar2 = OrdersMainActivity.j;
                OrdersMainActivity.b bVar = OrdersMainActivity.b.LISTING;
                aVar2.getClass();
                Intent a = OrdersMainActivity.a.a(context, FROM_ACCOUNTS_SCREEN, true, bVar);
                FromAccount.getInstance().setCameFromAccount(true);
                context.startActivity(a);
                return;
            }
            return;
        }
        if (!UserStatus.getInstance().getLoginStatus()) {
            LoginActivity.a aVar3 = LoginActivity.i;
            Context context2 = aVar.getContext();
            String B0 = aVar.B0(fromLocation);
            aVar3.getClass();
            LoginActivity.a.d(context2, FROM_ACCOUNTS_SCREEN, fromLocation, "MOBILE_LOGIN", B0, (Bundle) null);
            FromAccount.getInstance().setCameFromAccount(true);
        }
        switch (i) {
            case 1:
                Context context3 = aVar.getContext();
                if (context3 != null) {
                    OrdersMainActivity.a aVar4 = OrdersMainActivity.j;
                    OrdersMainActivity.b bVar2 = OrdersMainActivity.b.LISTING;
                    aVar4.getClass();
                    Intent a2 = OrdersMainActivity.a.a(context3, FROM_ACCOUNTS_SCREEN, true, bVar2);
                    FromAccount.getInstance().setCameFromAccount(true);
                    context3.startActivity(a2);
                    break;
                }
                break;
            case 2:
                androidx.fragment.app.n activity2 = aVar.getActivity();
                if (activity2 != null) {
                    in.hopscotch.android.helper.d.a.getClass();
                    in.hopscotch.android.helper.d.c(activity2, FROM_ACCOUNTS_SCREEN, "Wishlist option");
                    break;
                }
                break;
            case 3:
                ProfileDetailsActivity.a aVar5 = ProfileDetailsActivity.i;
                Context context4 = aVar.getContext();
                aVar5.getClass();
                ProfileDetailsActivity.a.a(context4, FROM_ACCOUNTS_SCREEN, "Profile details");
                break;
            case 4:
                AddressListingActivity.b bVar3 = AddressListingActivity.i;
                Context context5 = aVar.getContext();
                String redirectTo = aVar.B0(fromLocation);
                bVar3.getClass();
                Intrinsics.checkNotNullParameter("ACCOUNT_FLOW", "flow");
                Intrinsics.checkNotNullParameter(FROM_ACCOUNTS_SCREEN, "fromScreen");
                Intrinsics.checkNotNullParameter(fromLocation, "fromLocation");
                Intrinsics.checkNotNullParameter("ADDRESSES", "initialRouteName");
                Intrinsics.checkNotNullParameter(redirectTo, "redirectTo");
                if (context5 != null) {
                    context5.startActivity(AddressListingActivity.b.a(context5, FROM_ACCOUNTS_SCREEN, fromLocation, redirectTo, false));
                    in.hopscotch.android.util.j1.d(context5);
                    break;
                }
                break;
            case 5:
                androidx.fragment.app.n activity3 = aVar.getActivity();
                if (activity3 != null) {
                    activity3.startActivity(new Intent((Context) activity3, (Class<?>) StoredCardsActivity.class));
                    FromAccount.getInstance().setCameFromAccount(true);
                    break;
                }
                break;
            case 6:
                if (aVar.credit != 0.0d && (activity = aVar.getActivity()) != null) {
                    Intent intent = new Intent((Context) activity, (Class<?>) CreditDetailsActivity.class);
                    intent.putExtra("credit", aVar.credit);
                    activity.startActivity(intent);
                    FromAccount.getInstance().setCameFromAccount(true);
                    break;
                }
                break;
            case 7:
                androidx.fragment.app.n activity4 = aVar.getActivity();
                if (activity4 != null) {
                    activity4.startActivity(new Intent((Context) activity4, (Class<?>) MyKidsActivity.class));
                    FromAccount.getInstance().setCameFromAccount(true);
                    break;
                }
                break;
            case 8:
                androidx.fragment.app.n activity5 = aVar.getActivity();
                if (activity5 != null) {
                    Intent intent2 = new Intent((Context) activity5, (Class<?>) MyMomentActivity.class);
                    intent2.putExtra(aVar.getString(2132018051), true);
                    activity5.startActivity(intent2);
                    FromAccount.getInstance().setCameFromAccount(true);
                    break;
                }
                break;
            case 9:
                androidx.fragment.app.n activity6 = aVar.getActivity();
                if (activity6 != null) {
                    activity6.startActivity(new Intent((Context) activity6, (Class<?>) FavouriteBrandsActivity.class));
                    FromAccount.getInstance().setCameFromAccount(true);
                    break;
                }
                break;
        }
    }

    public static final void J(a aVar, String str) {
        PackageManager packageManager;
        if (Intrinsics.areEqual(str, aVar.getString(2132017215))) {
            if (aVar.helpSectionButton) {
                in.hopscotch.android.util.z.b().e(aVar.getActivity());
                aVar.helpSectionButton = false;
                return;
            }
            return;
        }
        if (Intrinsics.areEqual(str, aVar.getString(2132017214))) {
            if (aVar.helpSectionButton) {
                in.hopscotch.android.util.z b2 = in.hopscotch.android.util.z.b();
                androidx.fragment.app.n activity = aVar.getActivity();
                b2.getClass();
                if (UserStatus.getInstance().getLoginStatus()) {
                    AccountCardApiFactory.getInstance().generateLoginTicketCall(new in.hopscotch.android.util.x(b2, false, activity));
                } else {
                    in.hopscotch.android.util.z.f(activity, null);
                }
                aVar.helpSectionButton = false;
                return;
            }
            return;
        }
        if (Intrinsics.areEqual(str, aVar.getString(2132017217))) {
            if (aVar.helpSectionButton) {
                in.hopscotch.android.util.a1.G(aVar.getActivity(), aVar.getString(2132019114), aVar.getString(2132019115), null, null);
                in.hopscotch.android.analytics.c.m().getClass();
                HashMap hashMap = new HashMap();
                hashMap.put("from_screen", FROM_ACCOUNTS_SCREEN);
                in.hopscotch.android.analytics.c.I("app_share_clicked", hashMap, false, true);
                aVar.helpSectionButton = false;
                return;
            }
            return;
        }
        if (Intrinsics.areEqual(str, aVar.getString(2132017216))) {
            if (aVar.helpSectionButton) {
                androidx.fragment.app.n activity2 = aVar.getActivity();
                Uri parse = Uri.parse("market://details?id=" + (activity2 != null ? activity2.getPackageName() : null));
                androidx.fragment.app.n activity3 = aVar.getActivity();
                List<ResolveInfo> queryIntentActivities = (activity3 == null || (packageManager = activity3.getPackageManager()) == null) ? null : packageManager.queryIntentActivities(new Intent("android.intent.action.VIEW", parse), 65536);
                if (queryIntentActivities != null && queryIntentActivities.size() == 0) {
                    androidx.fragment.app.n activity4 = aVar.getActivity();
                    parse = Uri.parse("https://play.google.com/store/apps/details?id=" + (activity4 != null ? activity4.getPackageName() : null));
                }
                androidx.fragment.app.n activity5 = aVar.getActivity();
                if (activity5 != null) {
                    activity5.startActivity(new Intent("android.intent.action.VIEW", parse));
                }
                aVar.helpSectionButton = false;
                return;
            }
            return;
        }
        if (Intrinsics.areEqual(str, aVar.getString(2132018241))) {
            aVar.startActivity(new Intent((Context) aVar.getActivity(), (Class<?>) LegalPageActivity.class));
            return;
        }
        if (Intrinsics.areEqual(str, aVar.getString(2132018046))) {
            if (aVar.getActivity() != null) {
                BottombarNavigationActivity activity6 = aVar.getActivity();
                Intrinsics.checkNotNull(activity6, "null cannot be cast to non-null type in.hopscotch.android.activity.parent.BottombarNavigationActivity");
                BottombarNavigationActivity bottombarNavigationActivity = activity6;
                in.hopscotch.android.util.q.f(bottombarNavigationActivity, bottombarNavigationActivity.getString(2132017657), bottombarNavigationActivity.getString(2132017656), new in.hopscotch.android.activity.parent.a(0), bottombarNavigationActivity.getString(2132017370), new com.facebook.login.widget.b(bottombarNavigationActivity, 2), bottombarNavigationActivity.getString(2132018045), false);
                return;
            }
            return;
        }
        if (Intrinsics.areEqual(str, aVar.getString(2132019155))) {
            aVar.E0(GO_TO_SIGN_IN);
            return;
        }
        if (!Intrinsics.areEqual(str, aVar.getString(2132019159)) || aVar.getActivity() == null) {
            return;
        }
        BottombarNavigationActivity activity7 = aVar.getActivity();
        Intrinsics.checkNotNull(activity7, "null cannot be cast to non-null type in.hopscotch.android.activity.parent.BottombarNavigationActivity");
        BottombarNavigationActivity bottombarNavigationActivity2 = activity7;
        bottombarNavigationActivity2.Z0();
        CustomerInfoApiFactory.getInstance().logout(new in.hopscotch.android.activity.parent.d(bottombarNavigationActivity2));
    }

    @NotNull
    public final in.hopscotch.android.adapter.a A0() {
        in.hopscotch.android.adapter.a aVar = this.p1;
        if (aVar != null) {
            return aVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("accountAdapter");
        return null;
    }

    public final String B0(String str) {
        return Intrinsics.areEqual(str, getString(2132017206)) ? "REDIRECT_ORDERS" : Intrinsics.areEqual(str, getString(2132017210)) ? "REDIRECT_WISHLIST_SCREEN_FROM_ACCOUNT" : Intrinsics.areEqual(str, getString(2132017207)) ? "REDIRECT_ACCOUNT_SETTINGS" : Intrinsics.areEqual(str, getString(2132017208)) ? "REDIRECT_ADDRESSES" : Intrinsics.areEqual(str, getString(2132017209)) ? "REDIRECT_CARDS" : Intrinsics.areEqual(str, getString(2132017200)) ? "REDIRECT_CREDITS" : Intrinsics.areEqual(str, getString(2132017204)) ? "REDIRECT_KIDS" : Intrinsics.areEqual(str, getString(2132017205)) ? "REDIRECT_MOMENT_UPLOAD" : Intrinsics.areEqual(str, getString(2132017201)) ? "REDIRECT_FAV_BRANDS" : "REDIRECT_ACCOUNT";
    }

    public final void C0() {
        throw new UnsupportedOperationException("Method not decompiled: in.hopscotch.android.fragment.a.C0():void");
    }

    public final void E0(String str) {
        int hashCode = str.hashCode();
        if (hashCode == -902468670) {
            if (str.equals(GO_TO_SIGN_IN)) {
                LoginActivity.a aVar = LoginActivity.i;
                Context context = getContext();
                String str2 = FROM_SCREEN;
                aVar.getClass();
                LoginActivity.a.d(context, str2, "Sign in button", "MOBILE_LOGIN", "REDIRECT_ACCOUNT_CARDS", (Bundle) null);
                return;
            }
            return;
        }
        if (hashCode == -902468296) {
            if (str.equals(GO_TO_SIGN_UP)) {
                LoginActivity.a aVar2 = LoginActivity.i;
                Context context2 = getContext();
                String str3 = FROM_SCREEN;
                aVar2.getClass();
                LoginActivity.a.d(context2, str3, "Join button", "SIGN_UP", "REDIRECT_ACCOUNT_CARDS", (Bundle) null);
                return;
            }
            return;
        }
        if (hashCode == 597874222 && str.equals(GUEST_ACTION)) {
            String userAction = UserStatus.getInstance().getUserAction();
            in.hopscotch.android.common.util.u.a.getClass();
            if (u.a.a(userAction)) {
                androidx.fragment.app.n activity = getActivity();
                if (activity != null) {
                    startActivity(in.hopscotch.android.util.s0.a(activity, userAction, "", "", "", FROM_ACCOUNTS_SCREEN, null, android.support.v4.media.c.g("INTENT_FLAG_SIGN_ACTION", "REDIRECT_ACCOUNT_CARDS")));
                    return;
                }
                return;
            }
            LoginActivity.a aVar3 = LoginActivity.i;
            Context context3 = getContext();
            aVar3.getClass();
            LoginActivity.a.d(context3, FROM_ACCOUNTS_SCREEN, "", "MOBILE_LOGIN", "REDIRECT_ACCOUNT_CARDS", (Bundle) null);
        }
    }

    public final void F0() {
        if (this.p1 == null || A0().k() <= 0 || !(!A0().O().isEmpty()) || !(A0().O().get(0) instanceof a.j)) {
            return;
        }
        this.accountSectionRows.remove(0);
        A0().z(0);
    }

    @Override
    public final void e0() {
        D0("in_app_update_download_clicked");
        androidx.fragment.app.n activity = getActivity();
        if (activity == null || activity.isFinishing()) {
            return;
        }
        in.hopscotch.android.appupdate.b bVar = this.appUpdateHelper;
        if (bVar == null) {
            Intrinsics.throwUninitializedPropertyAccessException("appUpdateHelper");
            bVar = null;
        }
        androidx.activity.result.b<IntentSenderRequest> bVar2 = this.appUpdateLauncher;
        com.google.android.play.core.appupdate.y yVar = new com.google.android.play.core.appupdate.y();
        yVar.c(0);
        yVar.b();
        com.google.android.play.core.appupdate.a0 a = yVar.a();
        Intrinsics.checkNotNullExpressionValue(a, "build(...)");
        bVar.j(bVar2, a);
    }

    @Override
    public final void m0() {
        D0("in_app_update_install_clicked");
        in.hopscotch.android.appupdate.b bVar = this.appUpdateHelper;
        if (bVar == null) {
            Intrinsics.throwUninitializedPropertyAccessException("appUpdateHelper");
            bVar = null;
        }
        bVar.i();
    }

    @NotNull
    public final View onCreateView(@NotNull LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
        Intrinsics.checkNotNullParameter(inflater, "inflater");
        in.hopscotch.android.databinding.i b2 = in.hopscotch.android.databinding.i.b(inflater, viewGroup);
        Intrinsics.checkNotNullExpressionValue(b2, "inflate(...)");
        this.binding = b2;
        CoordinatorLayout a = b2.a();
        Intrinsics.checkNotNullExpressionValue(a, "getRoot(...)");
        return a;
    }

    public final void onResume() {
        super.onResume();
        this.helpSectionButton = true;
        if (UserStatus.getInstance().getLoginStatus() == this.isLoggedIn) {
            C0();
            this.isLoggedIn = UserStatus.getInstance().getLoginStatus();
        }
    }

    public final void onViewCreated(@NotNull View view, Bundle bundle) {
        Intrinsics.checkNotNullParameter(view, "view");
        super.onViewCreated(view, bundle);
        this.helpSectionButton = true;
        androidx.fragment.app.n requireActivity = requireActivity();
        Intrinsics.checkNotNullExpressionValue(requireActivity, "requireActivity(...)");
        this.appUpdateHelper = new in.hopscotch.android.appupdate.b(requireActivity);
        ArrayList arrayList = new ArrayList();
        String string = getString(2132017206);
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        arrayList.add(new a.d(1, string));
        String string2 = getString(2132017210);
        Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
        arrayList.add(new a.d(2, string2));
        String string3 = getString(2132017207);
        Intrinsics.checkNotNullExpressionValue(string3, "getString(...)");
        arrayList.add(new a.d(3, string3));
        String string4 = getString(2132017208);
        Intrinsics.checkNotNullExpressionValue(string4, "getString(...)");
        arrayList.add(new a.d(4, string4));
        String string5 = getString(2132017209);
        Intrinsics.checkNotNullExpressionValue(string5, "getString(...)");
        arrayList.add(new a.d(5, string5));
        String string6 = getString(2132017200);
        Intrinsics.checkNotNullExpressionValue(string6, "getString(...)");
        arrayList.add(new a.d(6, string6));
        String string7 = getString(2132017204);
        Intrinsics.checkNotNullExpressionValue(string7, "getString(...)");
        arrayList.add(new a.d(7, string7));
        String string8 = getString(2132017205);
        Intrinsics.checkNotNullExpressionValue(string8, "getString(...)");
        arrayList.add(new a.d(8, string8));
        String string9 = getString(2132017201);
        Intrinsics.checkNotNullExpressionValue(string9, "getString(...)");
        arrayList.add(new a.d(9, string9));
        String string10 = getString(2132017203);
        Intrinsics.checkNotNullExpressionValue(string10, "getString(...)");
        arrayList.add(new a.i(string10));
        String string11 = getString(2132017202);
        Intrinsics.checkNotNullExpressionValue(string11, "getString(...)");
        arrayList.add(new a.a(string11));
        this.accountSectionRows = arrayList;
        C0();
        androidx.fragment.app.n activity = getActivity();
        if (activity != null) {
            c.b.a.getClass();
            if (in.hopscotch.android.common.util.j.m() && !activity.isFinishing()) {
                in.hopscotch.android.appupdate.b bVar = this.appUpdateHelper;
                if (bVar == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("appUpdateHelper");
                    bVar = null;
                }
                bVar.k().observe(getViewLifecycleOwner(), new c(new in.hopscotch.android.fragment.b(this)));
                in.hopscotch.android.appupdate.b bVar2 = this.appUpdateHelper;
                if (bVar2 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("appUpdateHelper");
                    bVar2 = null;
                }
                bVar2.g();
            }
        }
        Serializable b2 = in.hopscotch.android.util.j0.a().b();
        if (b2 != null) {
            Bundle bundle2 = new Bundle();
            bundle2.putBoolean("nudgeData", true);
            bundle2.putSerializable("nudgeDetails", b2);
            in.hopscotch.android.util.j0.a().c(null);
            Context context = getContext();
            if (context != null) {
                context.startActivity(NudgeActivity.R0(context, FROM_SCREEN, bundle2));
            }
        }
        in.hopscotch.android.ui.util.d.a.getClass();
        in.hopscotch.android.ui.util.d.a().observe(getViewLifecycleOwner(), new c(new g(this)));
    }

    @Override
    public final void p0() {
        this.inAppUpdatePreferences.e();
        F0();
        D0("in_app_update_later_clicked");
    }
}