导航菜单

页面标题

页面副标题

EfectivoYa v2.3 - ActivityOthers.java 源代码

正在查看: EfectivoYa v2.3 应用的 ActivityOthers.java JAVA 源代码文件

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


package com.cnhz.android.main.otherNet.view;

import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.ActionBar;
import androidx.core.app.NotificationCompat;
import androidx.exifinterface.media.ExifInterface;
import androidx.fragment.app.FragmentManager;
import androidx.navigation.ActivityKt;
import androidx.navigation.NavController;
import androidx.navigation.NavGraph;
import com.cnhz.android.main.R$id;
import com.cnhz.android.main.R$navigation;
import com.cnhz.android.main.R$string;
import com.cnhz.android.main.R$style;
import com.cnhz.android.main.base.BasePageActivity;
import com.cnhz.android.main.databinding.PageActionBinding;
import com.cnhz.android.main.otherNet.bean.CouponBean;
import com.cnhz.android.main.product.bean.OrdersListBean;
import com.cnhz.android.main.usercenter.bean.UserBankInfo;
import com.cnhz.android.main.view.fragment.DialogFragment;
import com.cnhz.android.net.api.BaseResponse;
import h0.h;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import p0.b;

@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0011\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\bM\u0010NJ\u0012\u0010\u0006\u001a\u00020\u00052\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003H\u0014J\b\u0010\u0007\u001a\u00020\u0005H\u0016J\b\u0010\b\u001a\u00020\u0005H\u0016J\b\u0010\t\u001a\u00020\u0005H\u0016J\b\u0010\n\u001a\u00020\u0005H\u0014J\u001a\u0010\u000f\u001a\u00020\u00052\b\u0010\f\u001a\u0004\u0018\u00010\u000b2\b\u0010\u000e\u001a\u0004\u0018\u00010\rJ\u0006\u0010\u0010\u001a\u00020\u0005J\u001d\u0010\u0013\u001a\u00020\u0005\"\u0004\b\u0000\u0010\u00112\u0006\u0010\u0012\u001a\u00028\u0000H\u0016¢\u0006\u0004\b\u0013\u0010\u0014R\"\u0010\u001c\u001a\u00020\u00158\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\"\u0010#\u001a\u00020\u00038\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 \"\u0004\b!\u0010\"R\"\u0010&\u001a\u00020\u00158\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b$\u0010\u0017\u001a\u0004\b\u0012\u0010\u0019\"\u0004\b%\u0010\u001bR$\u0010.\u001a\u0004\u0018\u00010'8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b(\u0010)\u001a\u0004\b*\u0010+\"\u0004\b,\u0010-R\u0018\u00101\u001a\u0004\u0018\u00010/8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\b\u00100R$\u00106\u001a\u0004\u0018\u00010/8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\t\u00100\u001a\u0004\b2\u00103\"\u0004\b4\u00105R\u0018\u00109\u001a\u0004\u0018\u0001078\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0007\u00108R\"\u0010=\u001a\u00020\u00158\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b:\u0010\u0017\u001a\u0004\b;\u0010\u0019\"\u0004\b<\u0010\u001bR$\u0010E\u001a\u0004\u0018\u00010>8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b?\u0010@\u001a\u0004\bA\u0010B\"\u0004\bC\u0010DR$\u0010L\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bF\u0010G\u001a\u0004\bH\u0010I\"\u0004\bJ\u0010K¨\u0006O"}, d2 = {"Lcom/cnhz/android/main/otherNet/view/ActivityOthers;", "Lcom/cnhz/android/main/base/BasePageActivity;", "Lh0/h;", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "o", "m", "n", "onDestroy", "Lcom/cnhz/android/main/product/bean/OrdersListBean$OrdersItemBean;", "orderBean", "Lcom/cnhz/android/main/usercenter/bean/UserBankInfo;", "userBankInfo", ExifInterface.LONGITUDE_EAST, "G", ExifInterface.GPS_DIRECTION_TRUE, "t", "v", "(Ljava/lang/Object;)V", "", "i", "I", "getStartFragmentType", "()I", "setStartFragmentType", "(I)V", "startFragmentType", "j", "Landroid/os/Bundle;", "getStartDestinationBundle", "()Landroid/os/Bundle;", "setStartDestinationBundle", "(Landroid/os/Bundle;)V", "startDestinationBundle", "k", ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, "couponFragmentType", "Lcom/cnhz/android/main/otherNet/bean/CouponBean$CouponItemBean;", "l", "Lcom/cnhz/android/main/otherNet/bean/CouponBean$CouponItemBean;", "z", "()Lcom/cnhz/android/main/otherNet/bean/CouponBean$CouponItemBean;", "D", "(Lcom/cnhz/android/main/otherNet/bean/CouponBean$CouponItemBean;)V", "orderPaymentCoupon", "Lcom/cnhz/android/main/view/fragment/DialogFragment;", "Lcom/cnhz/android/main/view/fragment/DialogFragment;", "bankConfirmDialog", "w", "()Lcom/cnhz/android/main/view/fragment/DialogFragment;", "setMLoanWaitingDialog", "(Lcom/cnhz/android/main/view/fragment/DialogFragment;)V", "mLoanWaitingDialog", "Landroid/os/Handler;", "Landroid/os/Handler;", "handler", "p", "u", "B", "creditWaintingCount", "Lj0/a;", "q", "Lj0/a;", "x", "()Lj0/a;", "C", "(Lj0/a;)V", "mProductPresenter", "r", "Lcom/cnhz/android/main/product/bean/OrdersListBean$OrdersItemBean;", "y", "()Lcom/cnhz/android/main/product/bean/OrdersListBean$OrdersItemBean;", "setOrderItemBean", "(Lcom/cnhz/android/main/product/bean/OrdersListBean$OrdersItemBean;)V", "orderItemBean", "<init>", "()V", "V2.3-20240823-003002-Production_release"}, k = 1, mv = {1, 8, 0})
public final class ActivityOthers extends BasePageActivity implements h0.h {

    private int startFragmentType;

    private CouponBean.CouponItemBean orderPaymentCoupon;

    private DialogFragment bankConfirmDialog;

    private DialogFragment mLoanWaitingDialog;

    private Handler handler;

    private j0.a mProductPresenter;

    private OrdersListBean.OrdersItemBean orderItemBean;

    private Bundle startDestinationBundle = new Bundle();

    private int couponFragmentType = 1;

    private int creditWaintingCount = 11;

    public static final class a implements DialogFragment.b {

        final Ref.LongRef f1380a;

        final ActivityOthers f1381b;

        a(Ref.LongRef longRef, ActivityOthers activityOthers) {
            this.f1380a = longRef;
            this.f1381b = activityOthers;
        }

        @Override
        public void a(View view) {
            b.a aVar = p0.b.f2612a;
            aVar.w("acq01_account_info", "", System.currentTimeMillis() - this.f1380a.element);
            aVar.w("acq03_account_info_modify", "", 0L);
            DialogFragment dialogFragment = this.f1381b.bankConfirmDialog;
            if (dialogFragment != null) {
                dialogFragment.dismiss();
            }
            Bundle bundle = new Bundle();
            bundle.putSerializable("OrdersItemBean", this.f1381b.getOrderItemBean());
            bundle.putInt("FragmentType", 3);
            ActivityKt.findNavController(this.f1381b, R$id.nav_host_fragment_activity_action).navigate(R$id.authStep4Fragment2, bundle);
        }

        @Override
        public void b(View view) {
            b.a aVar = p0.b.f2612a;
            aVar.w("acq01_account_info", "", System.currentTimeMillis() - this.f1380a.element);
            aVar.w("acq03_account_info_confirm", "", 0L);
            if (this.f1381b.getMProductPresenter() == null) {
                ActivityOthers activityOthers = this.f1381b;
                activityOthers.C(new j0.a(activityOthers));
                j0.a mProductPresenter = this.f1381b.getMProductPresenter();
                if (mProductPresenter != null) {
                    mProductPresenter.R(this.f1381b);
                }
            }
            DialogFragment dialogFragment = this.f1381b.bankConfirmDialog;
            if (dialogFragment != null) {
                dialogFragment.dismiss();
            }
            j0.a mProductPresenter2 = this.f1381b.getMProductPresenter();
            if (mProductPresenter2 != null) {
                OrdersListBean.OrdersItemBean orderItemBean = this.f1381b.getOrderItemBean();
                mProductPresenter2.z(String.valueOf(orderItemBean != null ? Integer.valueOf(orderItemBean.getDesigner()) : null));
            }
        }
    }

    public static final class b extends Handler {
        b(Looper looper) {
            super(looper);
        }

        @Override
        public void handleMessage(Message message) {
            Intrinsics.checkNotNullParameter(message, NotificationCompat.CATEGORY_MESSAGE);
            if (message.what == 1) {
                ActivityOthers.this.B(r4.getCreditWaintingCount() - 1);
                Handler handler = ActivityOthers.this.handler;
                if (handler != null) {
                    handler.sendEmptyMessageDelayed(1, 1000L);
                }
                if (ActivityOthers.this.getCreditWaintingCount() <= 0) {
                    ActivityOthers.this.B(10);
                    DialogFragment mLoanWaitingDialog = ActivityOthers.this.getMLoanWaitingDialog();
                    if (mLoanWaitingDialog != null) {
                        mLoanWaitingDialog.dismiss();
                    }
                    ActivityKt.findNavController(ActivityOthers.this, R$id.nav_host_fragment_activity_action).popBackStack();
                    Handler handler2 = ActivityOthers.this.handler;
                    if (handler2 != null) {
                        handler2.removeMessages(1);
                    }
                }
            }
        }
    }

    public static final class c implements DialogFragment.b {
        c() {
        }

        @Override
        public void a(View view) {
        }

        @Override
        public void b(View view) {
            ActivityOthers.this.B(10);
            DialogFragment mLoanWaitingDialog = ActivityOthers.this.getMLoanWaitingDialog();
            if (mLoanWaitingDialog != null) {
                mLoanWaitingDialog.dismiss();
            }
            Handler handler = ActivityOthers.this.handler;
            if (handler != null) {
                handler.removeMessages(1);
            }
            ActivityKt.findNavController(ActivityOthers.this, R$id.nav_host_fragment_activity_action).popBackStack();
        }
    }

    public static final void F(ActivityOthers activityOthers, UserBankInfo userBankInfo) {
        View view;
        View view2;
        View view3;
        View view4;
        Intrinsics.checkNotNullParameter(activityOthers, "this$0");
        DialogFragment dialogFragment = activityOthers.bankConfirmDialog;
        TextView textView = (dialogFragment == null || (view4 = dialogFragment.getView()) == null) ? null : (TextView) view4.findViewById(R$id.TextV_bank_name);
        if (textView != null) {
            textView.setText(userBankInfo != null ? userBankInfo.getAmp() : null);
        }
        DialogFragment dialogFragment2 = activityOthers.bankConfirmDialog;
        TextView textView2 = (dialogFragment2 == null || (view3 = dialogFragment2.getView()) == null) ? null : (TextView) view3.findViewById(R$id.TextV_account_name);
        if (textView2 != null) {
            boolean z2 = false;
            if (userBankInfo != null && userBankInfo.getTuesday() == 1) {
                z2 = true;
            }
            textView2.setText(z2 ? "Tarjeta de débito" : "CLABE");
        }
        DialogFragment dialogFragment3 = activityOthers.bankConfirmDialog;
        TextView textView3 = (dialogFragment3 == null || (view2 = dialogFragment3.getView()) == null) ? null : (TextView) view2.findViewById(R$id.TextV_bank_card_num);
        if (textView3 != null) {
            textView3.setText(p0.b.f2612a.l(userBankInfo != null ? userBankInfo.getHotelscom() : null));
        }
        DialogFragment dialogFragment4 = activityOthers.bankConfirmDialog;
        TextView textView4 = (dialogFragment4 == null || (view = dialogFragment4.getView()) == null) ? null : (TextView) view.findViewById(R$id.TextV_money_amount);
        if (textView4 == null) {
            return;
        }
        String string = activityOthers.getString(R$string.tip_loan_money_amount);
        OrdersListBean.OrdersItemBean ordersItemBean = activityOthers.orderItemBean;
        textView4.setText(string + "$" + (ordersItemBean != null ? ordersItemBean.getSherman() : null));
    }

    public final void A(int i2) {
        this.couponFragmentType = i2;
    }

    public final void B(int i2) {
        this.creditWaintingCount = i2;
    }

    public final void C(j0.a aVar) {
        this.mProductPresenter = aVar;
    }

    public final void D(CouponBean.CouponItemBean couponItemBean) {
        this.orderPaymentCoupon = couponItemBean;
    }

    public final void E(OrdersListBean.OrdersItemBean orderBean, final UserBankInfo userBankInfo) {
        this.orderItemBean = orderBean;
        Ref.LongRef longRef = new Ref.LongRef();
        longRef.element = System.currentTimeMillis();
        p0.b.f2612a.w("acq01_account_info", "", 0L);
        if (this.bankConfirmDialog == null) {
            this.bankConfirmDialog = DialogFragment.INSTANCE.b(134, new a(longRef, this));
        }
        DialogFragment dialogFragment = this.bankConfirmDialog;
        if (dialogFragment != null) {
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
            dialogFragment.show(supportFragmentManager, "");
        }
        l().getRoot().postDelayed(new Runnable() {
            @Override
            public final void run() {
                ActivityOthers.F(ActivityOthers.this, userBankInfo);
            }
        }, 300L);
    }

    public final void G() {
        this.creditWaintingCount = 10;
        this.handler = new b(Looper.getMainLooper());
        if (this.mLoanWaitingDialog == null) {
            this.mLoanWaitingDialog = DialogFragment.INSTANCE.b(133, new c());
        }
        DialogFragment dialogFragment = this.mLoanWaitingDialog;
        if (dialogFragment != null) {
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
            dialogFragment.show(supportFragmentManager, "");
        }
        Handler handler = this.handler;
        if (handler != null) {
            handler.sendEmptyMessageDelayed(1, 1000L);
        }
    }

    @Override
    public void g(Object obj) {
        h.a.a(this, obj);
    }

    @Override
    public void h(Object obj) {
        h.a.b(this, obj);
    }

    @Override
    public void m() {
    }

    @Override
    public void n() {
        ActionBar supportActionBar = getSupportActionBar();
        if (supportActionBar != null) {
            supportActionBar.hide();
        }
    }

    @Override
    public void o() {
        PageActionBinding inflate = PageActionBinding.inflate(getLayoutInflater());
        Intrinsics.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
        p(inflate);
        setContentView(l().getRoot());
        NavController findNavController = ActivityKt.findNavController(this, R$id.nav_host_fragment_activity_action);
        NavGraph inflate2 = findNavController.getNavInflater().inflate(R$navigation.action_navigation);
        Intrinsics.checkNotNullExpressionValue(inflate2, "navController.navInflate…gation.action_navigation)");
        switch (this.startFragmentType) {
            case 1:
                inflate2.setStartDestination(R$id.couponFragment);
                this.couponFragmentType = 1;
                break;
            case 2:
                inflate2.setStartDestination(R$id.feedbackFragment);
                break;
            case 3:
                inflate2.setStartDestination(R$id.ordersFragment);
                break;
            case 4:
                inflate2.setStartDestination(R$id.settingFragment);
                break;
            case 5:
                this.startDestinationBundle.putInt("ProtocolType", getIntent().getIntExtra("ProtocolType", 1));
                inflate2.setStartDestination(R$id.protocolFragment);
                break;
            case 6:
                inflate2.setStartDestination(R$id.bankCardConfirmFragment);
                break;
            case 7:
                inflate2.setStartDestination(R$id.aboutUsFragment);
                break;
        }
        findNavController.setGraph(inflate2, this.startDestinationBundle);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        int intExtra = getIntent().getIntExtra("StartFragmentType", 0);
        this.startFragmentType = intExtra;
        if (intExtra == 1 || intExtra == 3 || intExtra == 6 || (intExtra == 5 && (getIntent().getIntExtra("ProtocolType", 1) == 1 || getIntent().getIntExtra("ProtocolType", 1) == 5))) {
            setTheme(R$style.Theme_MyBaseTheme);
        } else {
            setTheme(R$style.whiteStatusTheme);
        }
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Handler handler = this.handler;
        if (handler != null) {
            handler.removeMessages(1);
        }
        this.handler = null;
    }

    public final int getCouponFragmentType() {
        return this.couponFragmentType;
    }

    public final int getCreditWaintingCount() {
        return this.creditWaintingCount;
    }

    @Override
    public void v(Object t2) {
        h.a.c(this, t2);
        if (t2 == null || !(t2 instanceof BaseResponse)) {
            return;
        }
        BaseResponse baseResponse = (BaseResponse) t2;
        if (baseResponse.getBuilding() == 200) {
            G();
        } else {
            p0.b.f2612a.m(this, baseResponse.getBuilding(), baseResponse.getMent());
        }
    }

    public final DialogFragment getMLoanWaitingDialog() {
        return this.mLoanWaitingDialog;
    }

    public final j0.a getMProductPresenter() {
        return this.mProductPresenter;
    }

    public final OrdersListBean.OrdersItemBean getOrderItemBean() {
        return this.orderItemBean;
    }

    public final CouponBean.CouponItemBean getOrderPaymentCoupon() {
        return this.orderPaymentCoupon;
    }
}