导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - IntroActivity.java 源代码

正在查看: BetterTogether v3.0.0 应用的 IntroActivity.java JAVA 源代码文件

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


package com.bettertogether.screens.intro;

import android.os.Bundle;
import android.support.v4.app.hwJQ.rnaioAkxVmZTT;
import android.text.Html;
import android.text.Spanned;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.bettertogether.base.BaseActivity;
import com.bettertogether.screens.main.MainActivity;
import com.google.firebase.messaging.e;
import dd.s;
import er.k;
import g9.c;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.e0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.g0;
import lq.m;
import lq.n;
import lq.o;
import lq.x;
import md.l;
import s6.t;
import we.b;
import we.d;
import we.f;
import we.g;
import ys.a;
import z2.h;

@Metadata
public final class IntroActivity extends BaseActivity implements g {
    public static final t Q;
    public static final k[] R;
    public final List M;
    public final List N;
    public final int O;
    public b P;

    public final x f209e = n.b(new d(this, 0));
    public final m i;

    public final m f210v;
    public final m w;
    public final c x;
    public final List y;

    static {
        kotlin.jvm.internal.t tVar = new kotlin.jvm.internal.t(IntroActivity.class, "currentStep", "getCurrentStep()I", 0);
        g0.a.getClass();
        R = new k[]{tVar};
        Q = new t(27, 0);
    }

    public IntroActivity() {
        o oVar = o.d;
        this.i = n.a(oVar, new s(this, 19));
        this.f210v = n.a(oVar, new s(this, 20));
        this.w = n.a(oVar, new l(((a) e.s(this).a).a(e.o(), new xs.c(g0.a(IntroActivity.class))), new d(this, 1), 15));
        this.x = new c(20, 0, this);
        List g = e0.g(new Integer[]{2131231428, 2131231429, 2131231430, 2131231431, 2131231432, 2131231433, 2131231434, 2131231435});
        this.y = g;
        this.M = e0.g(new Integer[]{-1, 2131952080, 2131952084, 2131952083, 2131952079, 2131952078, 2131952082, 2131952081});
        this.N = e0.g(new Integer[]{null, 2131231436, 2131231436, 2131231436, 2131231437, 2131231437, 2131231437, 2131231438});
        this.O = g.size();
    }

    public final void a() {
        Bundle extras = getIntent().getExtras();
        String string = extras != null ? extras.getString("open_story_for_new_user") : null;
        MainActivity.Companion.getClass();
        startActivity(ye.a.a(this, string));
        finish();
    }

    public final View getView() {
        ConstraintLayout constraintLayout = s().a;
        Intrinsics.checkNotNullExpressionValue(constraintLayout, "binding.root");
        return constraintLayout;
    }

    public final void hideLoadingDialog() {
    }

    public final void initViews() {
        s().h.setOnTouchListener(new we.e(this));
        s().c.setText(getString(2131952075));
        b serializableExtra = getIntent().getSerializableExtra("param_flow");
        Intrinsics.f(serializableExtra, "null cannot be cast to non-null type com.bettertogether.screens.intro.IntroActivity.LaunchedFrom");
        this.P = serializableExtra;
        w(0);
        v(0);
        s().d.setOnClickListener(new we.a(this, 0));
        s().c.setOnClickListener(new we.a(this, 1));
        b serializableExtra2 = getIntent().getSerializableExtra("param_flow");
        Intrinsics.f(serializableExtra2, "null cannot be cast to non-null type com.bettertogether.screens.intro.IntroActivity.LaunchedFrom");
        int ordinal = serializableExtra2.ordinal();
        if (ordinal == 0) {
            ImageView imageView = s().b;
            Intrinsics.checkNotNullExpressionValue(imageView, "binding.btnIntroClose");
            fs.d.t(imageView);
        } else {
            if (ordinal != 1) {
                return;
            }
            ImageView imageView2 = s().b;
            Intrinsics.checkNotNullExpressionValue(imageView2, "initViews$lambda$4");
            fs.d.x(imageView2);
            imageView2.setOnClickListener(new we.a(this, 2));
        }
    }

    public final ad.a providePresenter() {
        return (f) this.w.getValue();
    }

    public final cd.o s() {
        return (cd.o) this.f209e.getValue();
    }

    public final void showLoadingDialog() {
    }

    public final int t() {
        return ((Number) this.x.c(R[0])).intValue();
    }

    public final void u(int i) {
        this.x.d(R[0], Integer.valueOf(i));
    }

    public final void v(int i) {
        Unit unit;
        int intValue = ((Number) this.M.get(i)).intValue();
        s().i.setText(intValue == -1 ? "" : getString(intValue));
        com.bumptech.glide.a aVar = new com.bumptech.glide.a();
        c3.f fVar = new c3.f(5, 0);
        ((com.bumptech.glide.o) aVar).d = new dh.a(fVar.e, fVar.d);
        Intrinsics.checkNotNullExpressionValue(aVar, "DrawableTransitionOptions().crossFade()");
        m mVar = this.i;
        bg.b bVar = (bg.b) mVar.getValue();
        int intValue2 = ((Number) this.y.get(i)).intValue();
        ImageView imageView = s().f;
        Intrinsics.checkNotNullExpressionValue(imageView, "binding.ivIntroStepImage");
        bVar.getClass();
        bg.b.d(this, intValue2, imageView, aVar);
        Integer num = (Integer) this.N.get(i);
        String str = rnaioAkxVmZTT.RDSgXjJXgqk;
        if (num != null) {
            int intValue3 = num.intValue();
            ImageView imageView2 = s().e;
            Intrinsics.checkNotNullExpressionValue(imageView2, str);
            fs.d.x(imageView2);
            bg.b bVar2 = (bg.b) mVar.getValue();
            ImageView imageView3 = s().e;
            Intrinsics.checkNotNullExpressionValue(imageView3, str);
            bVar2.getClass();
            bg.b.d(this, intValue3, imageView3, aVar);
            unit = Unit.a;
        } else {
            unit = null;
        }
        if (unit == null) {
            ImageView imageView4 = s().e;
            Intrinsics.checkNotNullExpressionValue(imageView4, str);
            Intrinsics.checkNotNullParameter(imageView4, "<this>");
            imageView4.setVisibility(4);
        }
    }

    public final void w(int i) {
        ArrayList arrayList = new ArrayList();
        int i2 = 0;
        if (arrayList.isEmpty()) {
            float dimension = getResources().getDimension(2131166140);
            for (int i3 = 0; i3 < this.O; i3++) {
                TextView textView = new TextView(this);
                Intrinsics.checkNotNullParameter("&#9679;", "<this>");
                Spanned fromHtml = Html.fromHtml("&#9679;", 0);
                Intrinsics.checkNotNullExpressionValue(fromHtml, "fromHtml(this, Html.FROM_HTML_MODE_LEGACY)");
                textView.setText(fromHtml);
                textView.setTextSize(0, dimension);
                arrayList.add(textView);
            }
        }
        s().g.removeAllViews();
        Iterator it = arrayList.iterator();
        while (it.hasNext()) {
            int i4 = i2 + 1;
            TextView textView2 = (TextView) it.next();
            textView2.setTextColor(h.getColor(this, i2 == i ? 2131099836 : 2131100262));
            s().g.addView(textView2);
            i2 = i4;
        }
    }
}