导航菜单

页面标题

页面副标题

MedEd v5.3.6 - NeetPGQuizSolutionsActivity.java 源代码

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

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


package com.penpencil.physicswallah.feature.quiz.presentation.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Parcelable;
import androidx.lifecycle.H;
import androidx.lifecycle.n;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.penpencil.network.response.Details;
import com.penpencil.network.response.PreviewQuestions;
import com.penpencil.network.response.PreviewSection;
import com.penpencil.ts.data.local.relations.JGO.FxCWWBPbQpvibz;
import defpackage.CN1;
import defpackage.yI1;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class NeetPGQuizSolutionsActivity extends ZQ0<oT1, yI1> implements b {
    public static final int e1 = 0;
    public jV1 N0;
    public nN1 O0;
    public String P0;
    public List<PreviewSection> Q0;
    public Details R0;
    public List<PreviewQuestions> S0;
    public String T0;
    public F83 U0;
    public final ArrayList<String> V0;
    public String W0;
    public String X0;
    public String Y0;
    public uF0<PreviewQuestions> Z0;
    public boolean a1;
    public String b1;
    public final H c1;
    public String d1;

    public NeetPGQuizSolutionsActivity() {
        super(a.i, new Oa2(3));
        ((ZQ0) this).M0 = false;
        addOnContextAvailableListener(new YQ0(this));
        this.V0 = new ArrayList<>();
        this.W0 = "";
        this.X0 = "";
        this.Y0 = "";
        QW2 qw2 = QW2.a;
        this.b1 = UW2.e(qw2);
        this.c1 = new H(wv2.a(CN1.class), new d(this), new c(this), new e(this));
        this.d1 = UW2.e(qw2);
    }

    public static void Z0(NeetPGQuizSolutionsActivity neetPGQuizSolutionsActivity) {
        Intrinsics.checkNotNullParameter(neetPGQuizSolutionsActivity, "this$0");
        super/*OL*/.onBackPressed();
    }

    public final void V0(Ur3 ur3) {
        PreviewSection previewSection;
        List<PreviewQuestions> questions;
        Intrinsics.checkNotNullParameter((oT1) ur3, "<this>");
        getIntent().getStringExtra("Test Name");
        getIntent().getStringExtra("Test Series Name");
        this.P0 = getIntent().getStringExtra("testId");
        getIntent().getIntExtra("currSecNo", 1);
        this.T0 = getIntent().getStringExtra("Current Category Name");
        getIntent().getIntExtra("currQuestNo", 1);
        this.R0 = getIntent().getParcelableExtra("TEST_DETAIL_DATA");
        this.X0 = getIntent().getStringExtra("subjectName");
        this.a1 = getIntent().getBooleanExtra("isTestSeries", false);
        this.W0 = getIntent().getStringExtra("chapterName");
        this.d1 = a1().c().v();
        String stringExtra = getIntent().getStringExtra("subjectId");
        if (stringExtra == null) {
            stringExtra = UW2.e(QW2.a);
        }
        this.b1 = stringExtra;
        if (pK0.a(PreviewSection.class, a1().c().a.m(this.P0)) == null) {
            super/*OL*/.onBackPressed();
        } else {
            this.Q0 = pK0.a(PreviewSection.class, a1().c().a.m(this.P0));
        }
        ArrayList<String> arrayList = this.V0;
        arrayList.add("  All  ");
        arrayList.add("Correct");
        arrayList.add("Incorrect");
        arrayList.add("Skipped");
        U0().w.setVisibility(8);
        List<PreviewSection> list = this.Q0;
        ArrayList arrayList2 = (list == null || (previewSection = (PreviewSection) II.Q(0, list)) == null || (questions = previewSection.getQuestions()) == null) ? new ArrayList() : II.s0(questions);
        UW2.e(QW2.a);
        this.S0 = arrayList2;
        this.T0 = "  All  ";
        U0().t.setLayoutManager(new LinearLayoutManager(0));
        this.U0 = new F83(this, this.T0, arrayList, arrayList2, this);
        U0().t.setAdapter(this.U0);
        U0().s.setOnClickListener(new YX2(this, 7));
        this.c1.b().L.f(this, new b(new E71(this, 7)));
    }

    public final void W0(Ur3 ur3) {
        oT1 ot1 = (oT1) ur3;
        Intrinsics.checkNotNullParameter(ot1, "<this>");
        ot1.x(this);
        X0();
    }

    public final jV1 a1() {
        jV1 jv1 = this.N0;
        if (jv1 != null) {
            return jv1;
        }
        Intrinsics.n("networkManager");
        throw null;
    }

    public final void b1(int i, int i2) {
        Intent intent = new Intent((Context) this, (Class<?>) NeetPGQuizSolutionsQuestionActivity.class);
        intent.putExtra("testId", this.P0);
        intent.putExtra("TEST_DETAIL_DATA", (Parcelable) this.R0);
        intent.putExtra("currQuestNo", i);
        intent.putExtra("displayQuestNo", i2);
        intent.putExtra("Current Category Name", this.Y0);
        intent.putExtra("isTestSeries", this.a1);
        intent.putExtra("subjectId", this.b1);
        a1().c().K(this.P0, this.S0);
        startActivity(intent);
    }

    public final void l(String str, List list) {
        Intrinsics.checkNotNullParameter(str, "categoryName");
        this.S0 = list;
        this.Y0 = str;
        n nVar = ((rp) this).F0;
        Intrinsics.checkNotNullExpressionValue(nVar, "lifecycleScope");
        Lx.q(nVar, (CoroutineContext) null, (mV) null, new NR1(this, (iT) null), 3);
    }

    public final void onDestroy() {
        HashMap hashMap = uu.a;
        uu.a = new HashMap();
        super/*xP0*/.onDestroy();
    }

    public final void onResume() {
        uF0<PreviewQuestions> uf0 = this.Z0;
        if (uf0 != null) {
            uf0.notifyDataSetChanged();
        }
        super/*androidx.fragment.app.e*/.onResume();
    }

    public final void Y0(Ur3 ur3, Et3 et3) {
        Intrinsics.checkNotNullParameter((oT1) ur3, "<this>");
        Intrinsics.checkNotNullParameter((yI1) et3, FxCWWBPbQpvibz.HZrZghxS);
    }
}