导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - EmailConfirmationActivity.java 源代码

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

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


package com.bettertogether.screens.confirmation.email;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.view.View;
import androidx.constraintlayout.widget.ConstraintLayout;
import bc.j;
import cd.i;
import com.adapty.internal.utils.BackendInternalErrorDeserializer;
import com.bettertogether.base.BaseActivity;
import com.bettertogether.screens.confirmation.email.EmailConfirmationActivity;
import com.google.firebase.messaging.e;
import ke.b;
import ke.f;
import ke.g;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.g0;
import kotlin.text.Regex;
import lq.m;
import lq.n;
import lq.o;
import lq.x;
import md.l;
import s6.t;
import s8.h;
import xs.c;
import ys.a;

@Metadata
public final class EmailConfirmationActivity extends BaseActivity implements g {

    public static final t f4987v = new t(24, 0);

    public final m f4988e;

    public final x f4989i;

    public EmailConfirmationActivity() {
        h s10 = e.s(this);
        this.f4988e = n.a(o.f13215d, new l(((a) s10.a).a(e.o(), new c(g0.a(EmailConfirmationActivity.class))), new b(this, 1), 6));
        this.f4989i = n.b(new b(this, 0));
    }

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

    @Override
    public final void hideLoadingDialog() {
        enableViews();
        s().f4269d.a();
    }

    @Override
    public final void initViews() {
        Intent intent = getIntent();
        String stringExtra = intent != null ? intent.getStringExtra("confirmation_code") : null;
        if (!(stringExtra == null || stringExtra.length() == 0)) {
            t(stringExtra);
        }
        i s10 = s();
        s10.f4268c.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public final boolean onLongClick(View view) {
                ClipData.Item itemAt;
                t tVar = EmailConfirmationActivity.f4987v;
                ?? r32 = EmailConfirmationActivity.this;
                Intrinsics.checkNotNullParameter((Object) r32, "this$0");
                Intrinsics.checkNotNullParameter((Object) r32, "<this>");
                Intrinsics.checkNotNullParameter((Object) r32, "<this>");
                Object systemService = r32.getSystemService("clipboard");
                Intrinsics.f(systemService, "null cannot be cast to non-null type android.content.ClipboardManager");
                ClipData primaryClip = ((ClipboardManager) systemService).getPrimaryClip();
                r32.t(String.valueOf((primaryClip == null || (itemAt = primaryClip.getItemAt(0)) == null) ? null : itemAt.getText()));
                return true;
            }
        });
        s10.f4267b.setOnClickListener(new fc.a(10, this, s10));
        s10.f4270e.setOnClickListener(new j(this, 17));
    }

    @Override
    public final ad.a providePresenter() {
        return (f) this.f4988e.getValue();
    }

    public final i s() {
        return (i) this.f4989i.getValue();
    }

    @Override
    public final void showLoadingDialog() {
        disableViews();
        s().f4269d.b();
    }

    public final void t(String str) {
        ((f) this.f4988e.getValue()).getClass();
        Intrinsics.checkNotNullParameter(str, BackendInternalErrorDeserializer.CODE);
        if (new Regex("^[0-9]{6}$").d(str)) {
            s().f4268c.setText(str);
        }
    }
}