导航菜单

页面标题

页面副标题

Atlys v4.8.7 - PaymentFlowActivity.java 源代码

正在查看: Atlys v4.8.7 应用的 PaymentFlowActivity.java JAVA 源代码文件

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


package com.stripe.android.view;

import Bi.C0025e;
import Bi.C0028h;
import Gh.C0194t1;
import android.content.Intent;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import ch.C0613D;
import ch.C0614E;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/stripe/android/view/PaymentFlowActivity;", "Lcom/stripe/android/view/r1;", "<init>", "()V", "payments-core_release"}, k = 1, mv = {1, 8, 0})
public final class PaymentFlowActivity extends r1 {
    public static final int q1 = 0;
    public final wl.n i1 = di.z.c0(new E0(this, 5));
    public final wl.n j1 = di.z.c0(new E0(this, 7));
    public final wl.n k1 = di.z.c0(D.k);
    public final wl.n l1 = di.z.c0(new E0(this, 0));
    public final wl.n m1 = di.z.c0(new E0(this, 4));
    public final E.j n1 = new E.j(kotlin.jvm.internal.z.a.b(Q0.class), new C0028h(this, 23), new E0(this, 6), new C0028h(this, 24));
    public final wl.n o1 = di.z.c0(new E0(this, 3));
    public final wl.n p1 = di.z.c0(new E0(this, 1));

    @Override
    public final void j0() {
        if (I0.ShippingInfo != ((I0) xl.n.c1(q0().getCurrentItem(), n0().e()))) {
            setResult(-1, new Intent().putExtra("extra_payment_session_data", C0614E.a(p0().s, null, ((SelectShippingMethodWidget) q0().findViewById(2131363042)).getSelectedShippingMethod(), 223)));
            finish();
            return;
        }
        C0760v0 c0760v0 = (C0760v0) this.p1.getValue();
        InputMethodManager inputMethodManager = c0760v0.b;
        if (inputMethodManager.isAcceptingText()) {
            View currentFocus = c0760v0.a.getCurrentFocus();
            inputMethodManager.hideSoftInputFromWindow(currentFocus != null ? currentFocus.getWindowToken() : null, 0);
        }
        C0194t1 shippingInformation = ((ShippingInfoWidget) q0().findViewById(2131363053)).getShippingInformation();
        if (shippingInformation != null) {
            p0().s = C0614E.a(p0().s, shippingInformation, null, 239);
            l0(true);
            o0().getClass();
            o0().getClass();
            Q0 p0 = p0();
            kotlin.jvm.internal.l.h(null, "shippingInfoValidator");
            androidx.lifecycle.r0.m(new P0(p0, shippingInformation, null)).observe(this, new C0722c(new G0(this, 2), 1));
        }
    }

    public final N0 n0() {
        return (N0) this.o1.getValue();
    }

    public final C0613D o0() {
        return (C0613D) this.m1.getValue();
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (dj.h.p(this, new E0(this, 2))) {
            return;
        }
        Intent intent = getIntent();
        kotlin.jvm.internal.l.g(intent, "intent");
        Parcelable parcelableExtra = intent.getParcelableExtra("extra_activity_args");
        if (parcelableExtra == null) {
            throw new IllegalArgumentException("Required value was null.".toString());
        }
        Integer num = ((H0) parcelableExtra).d;
        if (num != null) {
            getWindow().addFlags(num.intValue());
        }
        C0194t1 c0194t1 = p0().w;
        if (c0194t1 == null) {
            c0194t1 = o0().c;
        }
        N0 n0 = n0();
        List list = p0().t;
        n0.getClass();
        kotlin.jvm.internal.l.h(list, "<set-?>");
        Rl.w[] wVarArr = N0.l;
        n0.j.d(n0, wVarArr[0], list);
        N0 n02 = n0();
        n02.h = p0().u;
        synchronized (n02) {
            try {
                DataSetObserver dataSetObserver = ((G4.a) n02).b;
                if (dataSetObserver != null) {
                    dataSetObserver.onChanged();
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
        ((G4.a) n02).a.notifyChanged();
        N0 n03 = n0();
        n03.g = c0194t1;
        n03.c();
        N0 n04 = n0();
        n04.k.d(n04, wVarArr[1], p0().v);
        e.J onBackPressedDispatcher = getOnBackPressedDispatcher();
        kotlin.jvm.internal.l.g(onBackPressedDispatcher, "onBackPressedDispatcher");
        C0025e C = d4.e.C(onBackPressedDispatcher, (androidx.lifecycle.G) null, new G0(this, 0), 3);
        q0().setAdapter(n0());
        PaymentFlowViewPager q0 = q0();
        F0 f0 = new F0(this, C);
        if (((G4.j) q0).R == null) {
            ((G4.j) q0).R = new ArrayList();
        }
        ((G4.j) q0).R.add(f0);
        q0().setCurrentItem(p0().x);
        C.setEnabled(q0().getCurrentItem() != 0);
        N0 n05 = n0();
        setTitle(n05.c.getString(((I0) n05.e().get(q0().getCurrentItem())).a));
    }

    public final Q0 p0() {
        return (Q0) this.n1.getValue();
    }

    public final PaymentFlowViewPager q0() {
        return (PaymentFlowViewPager) this.j1.getValue();
    }
}