导航菜单

页面标题

页面副标题

MedEd v5.3.6 - AppNavigationContainerActivity.java 源代码

正在查看: MedEd v5.3.6 应用的 AppNavigationContainerActivity.java JAVA 源代码文件

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


package com.penpencil.physicswallah.feature.home.presentation.ui;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.view.LayoutInflater;
import android.view.View;
import androidx.databinding.DataBinderMapperImpl;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.lifecycle.H;
import androidx.navigation.e;
import androidx.navigation.k;
import androidx.navigation.l;
import androidx.navigation.o;
import defpackage.C0124Oz2;
import defpackage.C0751wn1;
import defpackage.C0755wv2;
import defpackage.C10;
import defpackage.C8;
import defpackage.D8;
import defpackage.Dh;
import defpackage.EnumC0438kJ1;
import defpackage.Fh;
import defpackage.Gh;
import defpackage.Hh;
import defpackage.Ho2;
import defpackage.Hs3;
import defpackage.II;
import defpackage.InterfaceC0165Xc1;
import defpackage.InterfaceC0390iT;
import defpackage.Jh;
import defpackage.KZ2;
import defpackage.Kh;
import defpackage.PV1;
import defpackage.RE0;
import defpackage.Rg;
import defpackage.UW2;
import defpackage.ZD0;
import defpackage.a00;
import defpackage.bp1;
import defpackage.hI;
import defpackage.jV;
import defpackage.kV;
import defpackage.le1;
import defpackage.mV;
import defpackage.nR;
import defpackage.s40;
import defpackage.t40;
import defpackage.t5;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONException;

@Metadata
public final class AppNavigationContainerActivity extends vP0<t5> {
    public static final int X0 = 0;
    public t40 L0;
    public hI M0;
    public v0 N0;
    public Uri O0;
    public boolean P0;
    public boolean Q0;
    public boolean R0;
    public final H S0;
    public final H T0;
    public final InterfaceC0165Xc1 U0;
    public final InterfaceC0165Xc1 V0;
    public final InterfaceC0165Xc1 W0;

    public class a extends RE0 implements Function1<LayoutInflater, t5> {
        public static final a i = new a();

        public a() {
            super(1, t5.class, "inflate", "inflate(Landroid/view/LayoutInflater;)Lcom/penpencil/physicswallah/databinding/ActivityAppNavigationContainerBinding;", 0);
        }

        public static t5 h(LayoutInflater p0) {
            Intrinsics.checkNotNullParameter(p0, "p0");
            int i2 = t5.u;
            DataBinderMapperImpl dataBinderMapperImpl = a00.a;
            return (t5) Hs3.p(p0, 2131558432, null, null);
        }

        @Override
        public final t5 invoke(LayoutInflater layoutInflater) {
            return h(layoutInflater);
        }
    }

    @A30(c = "com.penpencil.physicswallah.feature.home.presentation.ui.AppNavigationContainerActivity$redirectToMainFlow$2", f = "AppNavigationContainerActivity.kt", l = {}, m = "invokeSuspend")
    public static final class b extends KZ2 implements Function2<jV, InterfaceC0390iT<? super Unit>, Object> {
        public b(InterfaceC0390iT<? super b> interfaceC0390iT) {
            super(2, interfaceC0390iT);
        }

        @Override
        public final Object u(jV jVVar, InterfaceC0390iT<? super Unit> interfaceC0390iT) {
            return ((b) create(jVVar, interfaceC0390iT)).invokeSuspend(Unit.a);
        }

        @Override
        public final InterfaceC0390iT<Unit> create(Object obj, InterfaceC0390iT<?> interfaceC0390iT) {
            return AppNavigationContainerActivity.this.new b(interfaceC0390iT);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Uri uri;
            l c1;
            kV kVVar = kV.a;
            C0124Oz2.b(obj);
            ?? r7 = AppNavigationContainerActivity.this;
            if (AppNavigationContainerActivity.b1(r7) == null || AppNavigationContainerActivity.c1(r7) == null) {
                rm2.b("Navigation setup failed: NavController or NavGraph null", (Throwable) null);
                return Unit.a;
            }
            e b1 = AppNavigationContainerActivity.b1(r7);
            if (b1 != null && (c1 = AppNavigationContainerActivity.c1(r7)) != null) {
                c1.K(r7.r1().d());
                Intent intent = r7.getIntent();
                String b = s40.d.b();
                Uri uri2 = r7.O0;
                intent.putExtra(b, uri2 != null ? uri2.toString() : null);
                b1.H(c1, r7.getIntent().getExtras());
            }
            View view = AppNavigationContainerActivity.Z0(r7).t.e;
            Intrinsics.checkNotNullExpressionValue(view, "getRoot(...)");
            ct3.f(view, false);
            if (!AppNavigationContainerActivity.f1(r7) && (uri = r7.O0) != null) {
                t40 p1 = r7.p1();
                String uri3 = uri.toString();
                Intrinsics.checkNotNullExpressionValue(uri3, "toString(...)");
                p1.a(uri3);
            }
            return Unit.a;
        }
    }

    @A30(c = "com.penpencil.physicswallah.feature.home.presentation.ui.AppNavigationContainerActivity$setViewBindingData$1", f = "AppNavigationContainerActivity.kt", l = {}, m = "invokeSuspend")
    public static final class c extends KZ2 implements Function2<jV, InterfaceC0390iT<? super Unit>, Object> {
        public Object b;

        public c(InterfaceC0390iT<? super c> interfaceC0390iT) {
            super(2, interfaceC0390iT);
        }

        @Override
        public final Object u(jV jVVar, InterfaceC0390iT<? super Unit> interfaceC0390iT) {
            return ((c) create(jVVar, interfaceC0390iT)).invokeSuspend(Unit.a);
        }

        @Override
        public final InterfaceC0390iT<Unit> create(Object obj, InterfaceC0390iT<?> interfaceC0390iT) {
            c cVar = AppNavigationContainerActivity.this.new c(interfaceC0390iT);
            cVar.b = obj;
            return cVar;
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kV kVVar = kV.a;
            C0124Oz2.b(obj);
            jV jVVar = (jV) this.b;
            AppNavigationContainerActivity appNavigationContainerActivity = AppNavigationContainerActivity.this;
            if (iu0.d(appNavigationContainerActivity)) {
                aV.a(jVVar, new a(appNavigationContainerActivity, (InterfaceC0390iT) null));
            }
            return Unit.a;
        }
    }

    public AppNavigationContainerActivity() {
        a aVar = a.i;
        this.S0 = new H(C0755wv2.a(Rg.class), new e(this), new d(this), new f(this));
        this.T0 = new H(C0755wv2.a(ZD0.class), new h(this), new g(this), new i(this));
        this.U0 = le1.b(new C8(this, 5));
        this.V0 = le1.b(new D8(this, 3));
        this.W0 = le1.b(new C0751wn1(this, 2));
    }

    public static final Boolean X0(AppNavigationContainerActivity appNavigationContainerActivity) {
        return appNavigationContainerActivity.C0.c().a();
    }

    public static final void Y0(AppNavigationContainerActivity appNavigationContainerActivity) {
        appNavigationContainerActivity.overridePendingTransition(2130772020, 2130772021);
        View view = ((t5) appNavigationContainerActivity.U0()).t.e;
        Intrinsics.checkNotNullExpressionValue(view, "getRoot(...)");
        ct3.f(view, false);
        appNavigationContainerActivity.finish();
    }

    public static final t5 Z0(AppNavigationContainerActivity appNavigationContainerActivity) {
        return (t5) appNavigationContainerActivity.U0();
    }

    public static final e b1(AppNavigationContainerActivity appNavigationContainerActivity) {
        return (e) appNavigationContainerActivity.U0.getValue();
    }

    public static final l c1(AppNavigationContainerActivity appNavigationContainerActivity) {
        return (l) appNavigationContainerActivity.V0.getValue();
    }

    public static final boolean d1(AppNavigationContainerActivity appNavigationContainerActivity) {
        bp1 c2 = appNavigationContainerActivity.C0.c();
        c2.getClass();
        return (appNavigationContainerActivity.t1() ^ true) && c2.a.f(a.C, false);
    }

    public static final boolean e1(AppNavigationContainerActivity appNavigationContainerActivity) {
        appNavigationContainerActivity.getClass();
        String str = PV1.b;
        Context applicationContext = appNavigationContainerActivity.getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
        return PV1.a.e(applicationContext);
    }

    public static final boolean f1(AppNavigationContainerActivity appNavigationContainerActivity) {
        Uri uri = appNavigationContainerActivity.O0;
        if (uri == null) {
            return false;
        }
        String uri2 = uri.toString();
        Intrinsics.checkNotNullExpressionValue(uri2, "toString(...)");
        String c2 = w40.c(uri2);
        if (c2 != null) {
            return u1(c2);
        }
        return false;
    }

    public static final boolean g1(AppNavigationContainerActivity appNavigationContainerActivity) {
        return !appNavigationContainerActivity.t1();
    }

    public static final boolean h1(AppNavigationContainerActivity appNavigationContainerActivity) {
        bp1 c2 = appNavigationContainerActivity.C0.c();
        c2.getClass();
        return c2.a.f(a.B, false);
    }

    public static final boolean i1(AppNavigationContainerActivity appNavigationContainerActivity) {
        bp1 c2 = appNavigationContainerActivity.C0.c();
        c2.getClass();
        return c2.a.f(a.E, false);
    }

    public static final boolean j1(AppNavigationContainerActivity appNavigationContainerActivity) {
        String z = appNavigationContainerActivity.C0.c().z();
        Intrinsics.checkNotNullExpressionValue(z, "getToken(...)");
        return z.length() == 0;
    }

    public static final void k1(AppNavigationContainerActivity appNavigationContainerActivity) {
        if (appNavigationContainerActivity.R0) {
            return;
        }
        v0.c(appNavigationContainerActivity.n1(), a.b.a());
        appNavigationContainerActivity.R0 = true;
    }

    public static final Object l1(AppNavigationContainerActivity appNavigationContainerActivity, InterfaceC0390iT interfaceC0390iT) {
        appNavigationContainerActivity.getClass();
        Object b2 = aV.b(new Dh(appNavigationContainerActivity, null), interfaceC0390iT);
        p31.d();
        return b2 == kV.a ? b2 : Unit.a;
    }

    public static final Object m1(AppNavigationContainerActivity appNavigationContainerActivity, InterfaceC0390iT interfaceC0390iT) {
        appNavigationContainerActivity.getClass();
        Object b2 = aV.b(new Eh(appNavigationContainerActivity, (InterfaceC0390iT) null), interfaceC0390iT);
        p31.d();
        return b2 == kV.a ? b2 : Unit.a;
    }

    public static boolean u1(String str) {
        a aVar = u40.b;
        if (!Intrinsics.b(str, "home-screen")) {
            a aVar2 = u40.b;
            if (!Intrinsics.b(str, "library-videos")) {
                a aVar3 = u40.b;
                if (!Intrinsics.b(str, "qbank_landing")) {
                    a aVar4 = u40.b;
                    if (!Intrinsics.b(str, "test-screen")) {
                        a aVar5 = u40.b;
                        if (!Intrinsics.b(str, "batch-list")) {
                            a aVar6 = u40.b;
                            if (!Intrinsics.b(str, "free-trial")) {
                                return false;
                            }
                        }
                    }
                }
            }
        }
        return true;
    }

    public final v0 n1() {
        v0 v0Var = this.N0;
        if (v0Var != null) {
            return v0Var;
        }
        Intrinsics.n("aiGuruDraggableFABManager");
        throw null;
    }

    public final String o1() {
        bp1 c2 = this.C0.c();
        String n = c2.a.n(a.J0);
        if (n != null && n.length() != 0) {
            return n;
        }
        hI hIVar = this.M0;
        if (hIVar != null) {
            return hIVar.a().getCohortId();
        }
        Intrinsics.n("cohortCurrentSessionManager");
        throw null;
    }

    public final void onCreate(Bundle bundle) {
        MT2 a2 = a.a(this);
        super/*T62*/.onCreate(bundle);
        a2.a(new C10());
    }

    public final void onNewIntent(Intent intent) {
        k l;
        Intrinsics.checkNotNullParameter(intent, "intent");
        ZD0 zd0 = (ZD0) this.T0.getValue();
        zd0.p();
        zd0.u();
        zd0.q();
        this.O0 = null;
        w1(intent);
        Uri uri = this.O0;
        if (uri != null) {
            String uri2 = uri.toString();
            Intrinsics.checkNotNullExpressionValue(uri2, "toString(...)");
            String c2 = w40.c(uri2);
            if (c2 != null && u1(c2)) {
                AppMainContainerFragment q1 = q1();
                if (q1 != null) {
                    s40 s40Var = s40.b;
                    q1.x1(UW2.f(intent.getStringExtra("deepLink")));
                }
                super/*OL*/.onNewIntent(intent);
            }
        }
        AppMainContainerFragment q12 = q1();
        if (q12 != null) {
            e r1 = q12.r1();
            Integer valueOf = (r1 == null || (l = r1.l()) == null) ? null : Integer.valueOf(l.h);
            if (valueOf != null) {
                int intValue = valueOf.intValue();
                e r12 = q12.r1();
                if (r12 != null) {
                    r12.s(valueOf.intValue(), null, new o(false, false, intValue, true, false, -1, -1, -1, -1));
                }
            }
        }
        super/*OL*/.onNewIntent(intent);
    }

    public final t40 p1() {
        t40 t40Var = this.L0;
        if (t40Var != null) {
            return t40Var;
        }
        Intrinsics.n("deepLinkProcessor");
        throw null;
    }

    public final AppMainContainerFragment q1() {
        FragmentManager childFragmentManager;
        List<Fragment> m;
        Fragment fragment = getSupportFragmentManager().z;
        Fragment fragment2 = (fragment == null || (childFragmentManager = fragment.getChildFragmentManager()) == null || (m = childFragmentManager.c.m()) == null) ? null : (Fragment) II.P(m);
        if (fragment2 instanceof AppMainContainerFragment) {
            return (AppMainContainerFragment) fragment2;
        }
        return null;
    }

    public final EnumC0438kJ1 r1() {
        return (EnumC0438kJ1) this.W0.getValue();
    }

    public final Rg s1() {
        return (Rg) this.S0.getValue();
    }

    public final boolean t1() {
        bp1 c2 = this.C0.c();
        String l = c2.a.l(a.j);
        if (l == null || l.length() == 0) {
            Object systemService = getApplicationContext().getSystemService("phone");
            Intrinsics.e(systemService, "null cannot be cast to non-null type android.telephony.TelephonyManager");
            l = ((TelephonyManager) systemService).getSimCountryIso();
        }
        return UW2.d(l, "IN");
    }

    public final Object v1(InterfaceC0390iT<? super Unit> interfaceC0390iT) {
        Object b2 = aV.b(new b(null), interfaceC0390iT);
        p31.d();
        return b2 == kV.a ? b2 : Unit.a;
    }

    public final void w1(Intent intent) {
        Bundle extras = intent.getExtras();
        if (extras != null) {
            s40 s40Var = s40.d;
            String string = extras.getString(s40Var.b());
            if (string == null || string.length() == 0) {
                s40 s40Var2 = s40.b;
                String string2 = extras.getString(s40Var2.b());
                if (string2 != null && string2.length() != 0) {
                    try {
                        String string3 = extras.getString(s40Var2.b());
                        if (string3 != null) {
                            this.O0 = w40.a(string3, extras.getString(s40.c.b()));
                        }
                    } catch (JSONException unused) {
                        rm2.b("Error while extracting data from deeplink", (Throwable) null);
                    }
                }
            } else {
                this.O0 = Uri.parse(extras.getString(s40Var.b()));
            }
        }
        Uri data = intent.getData();
        if (data != null) {
            this.O0 = data;
        }
    }

    public final void V0(t5 t5Var) {
        Intrinsics.checkNotNullParameter(t5Var, "<this>");
        View view = ((t5) U0()).t.e;
        Intrinsics.checkNotNullExpressionValue(view, "getRoot(...)");
        ct3.f(view, true);
        Gh1 lifecycleScope = this.F0;
        Intrinsics.checkNotNullExpressionValue(lifecycleScope, "lifecycleScope");
        aV.d(lifecycleScope, new c(null));
        Jv0.c(this);
        Gh1 lifecycleScope2 = this.F0;
        Intrinsics.checkNotNullExpressionValue(lifecycleScope2, "lifecycleScope");
        aV.d(lifecycleScope2, new Jh(this, null));
        Intent intent = getIntent();
        Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
        w1(intent);
        Gh1 lifecycleScope3 = this.F0;
        Intrinsics.checkNotNullExpressionValue(lifecycleScope3, "lifecycleScope");
        Lx.q(lifecycleScope3, (CoroutineContext) null, (mV) null, new Fh(this, null), 3);
        Gh1 lifecycleScope4 = this.F0;
        Intrinsics.checkNotNullExpressionValue(lifecycleScope4, "lifecycleScope");
        Lx.q(lifecycleScope4, (CoroutineContext) null, (mV) null, new Gh(this, null), 3);
        Gh1 lifecycleScope5 = this.F0;
        Intrinsics.checkNotNullExpressionValue(lifecycleScope5, "lifecycleScope");
        Lx.q(lifecycleScope5, (CoroutineContext) null, (mV) null, new Hh(this, null), 3);
        Gh1 lifecycleScope6 = this.F0;
        Intrinsics.checkNotNullExpressionValue(lifecycleScope6, "lifecycleScope");
        aV.d(lifecycleScope6, new Kh(this, null));
    }

    public final void W0(t5 t5Var) {
        Intrinsics.checkNotNullParameter(t5Var, "<this>");
        nR.a = Boolean.valueOf(getResources().getBoolean(Ho2.isTablet));
    }
}