导航菜单

页面标题

页面副标题

Atlys v4.8.7 - CFDropSeamlessActivity.java 源代码

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

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


package com.cashfree.pg.ui.hidden.seamless;

import Ob.f;
import Ob.g;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.os.Build;
import android.os.Bundle;
import android.widget.ProgressBar;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.cashfree.pg.core.R;
import com.cashfree.pg.core.api.CFCorePaymentGatewayService;
import com.cashfree.pg.core.api.CFTheme;
import com.cashfree.pg.core.api.base.CFPayment;
import com.cashfree.pg.core.api.utils.CFErrorResponse;
import com.cashfree.pg.core.api.utils.CFUtil;
import com.cashfree.pg.core.api.utils.ThreadUtil;
import com.cashfree.pg.core.hidden.network.response.models.config.MerchantInfo;
import com.cashfree.pg.core.hidden.network.response.models.config.OrderDetails;
import com.cashfree.pg.ui.hidden.viewModel.CFDropSeamlessViewModel$DropSeamlessCallbacks;
import com.google.android.material.bottomsheet.k;
import java.util.ArrayList;
import java.util.List;

public class CFDropSeamlessActivity extends Db.b implements f, Qb.b, CFDropSeamlessViewModel$DropSeamlessCallbacks {
    public static final int p1 = 0;
    public Qb.c I;
    public ArrayList f1;
    public g g1;
    public CoordinatorLayout h1;
    public OrderDetails k1;
    public MerchantInfo l1;
    public CFTheme m1;
    public List n1;
    public List o1;
    public boolean e1 = false;
    public boolean i1 = true;
    public final Nb.a j1 = new AnonymousClass1();

    public class AnonymousClass1 extends Nb.a {
        public AnonymousClass1() {
        }

        @Override
        public void onPaymentFailure(CFErrorResponse cFErrorResponse, String str) {
            ThreadUtil.runOnUIThread(new d(this, cFErrorResponse, 0));
        }

        @Override
        public void onPaymentVerify(String str) {
            int i = CFDropSeamlessActivity.p1;
            ?? r1 = CFDropSeamlessActivity.this;
            r1.finish();
            if (r1.e1) {
                return;
            }
            r1.e1 = true;
            if (str != null) {
                ThreadUtil.runOnUIThread(new com.cashfree.pg.ui.hidden.checkout.b(str, 1));
            }
        }

        @Override
        public final void onQRFetched(String str) {
        }
    }

    @Override
    public final android.support.v4.media.session.b j0() {
        return this.I;
    }

    public final void k0(CFErrorResponse cFErrorResponse) {
        finish();
        if (this.e1) {
            return;
        }
        this.e1 = true;
        String orderId = this.I.e.getCfSession().getOrderId();
        if (orderId != null) {
            ThreadUtil.runOnUIThread(new d(orderId, cFErrorResponse, 2));
        }
    }

    public final void l0() {
        if (isDestroyed()) {
            return;
        }
        runOnUiThread(new b(this, 1));
        k kVar = this.g1;
        if (kVar != null && kVar.isShowing()) {
            this.g1.dismiss();
        }
        ?? gVar = new g(this, this.f1, this.n1, this.o1, this.k1, this.l1, this.m1, this);
        this.g1 = gVar;
        gVar.setOnCancelListener(new DialogInterface.OnCancelListener() {
            @Override
            public final void onCancel(DialogInterface dialogInterface) {
                int i = CFDropSeamlessActivity.p1;
                CFDropSeamlessActivity cFDropSeamlessActivity = CFDropSeamlessActivity.this;
                cFDropSeamlessActivity.getClass();
                cFDropSeamlessActivity.k0(CFUtil.getResponseFromError(CFUtil.getCancelledResponse()));
            }
        });
        this.g1.show();
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558432);
        CFCorePaymentGatewayService cFCorePaymentGatewayService = CFCorePaymentGatewayService.getInstance();
        Nb.a aVar = this.j1;
        cFCorePaymentGatewayService.setCheckoutCallback(aVar);
        CFCorePaymentGatewayService.getInstance().setQRCallback(aVar);
        this.h1 = findViewById(R.id.cf_loader);
        this.I = new Qb.c(new a(this), this, this);
        if (Build.VERSION.SDK_INT != 26) {
            setRequestedOrientation(1);
        }
        CFTheme theme = this.I.e.getTheme();
        this.m1 = theme;
        ((ProgressBar) findViewById(R.id.progress_bar)).getIndeterminateDrawable().setColorFilter(Color.parseColor(theme.getNavigationBarBackgroundColor()), PorterDuff.Mode.MULTIPLY);
        runOnUiThread(new b(this, 0));
        Qb.c cVar = this.I;
        cVar.getClass();
        cVar.b.N(cVar.e, new I2.a(cVar, 17));
    }

    public final void onNewIntent(Intent intent) {
        super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
    }

    @Override
    public void onPaymentInitiate(CFPayment cFPayment) {
        ThreadUtil.runOnUIThread(new d(this, cFPayment, 1));
    }

    @Override
    public final void onResume() {
        super.onResume();
        if (this.i1) {
            this.i1 = false;
            return;
        }
        Qb.c cVar = this.I;
        cVar.a.getOrderStatus(cVar.e.getCfSession(), new Qb.a());
    }
}