导航菜单

页面标题

页面副标题

EfectivoYa v2.3 - FFPayCodeActivity.java 源代码

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

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


package com.mxff.ffxxmm.activity;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import androidx.core.view.ViewCompat;
import c1.a;
import com.gyf.immersionbar.l;
import com.mxff.ffxxmm.activity.FFPayCodeActivity;
import com.mxff.ffxxmm.databinding.FfActivityPayCodeBinding;
import com.mxff.ffxxmm.model.response.FFOrderListBean;
import com.mxff.ffxxmm.utils.c;
import com.mxff.ffxxmm.utils.k;
import com.mxff.ffxxmm.viewmodel.FFPayCodeViewModel;
import java.io.Serializable;
import kotlinx.coroutines.Observer;
import me.jessyan.autosize.utils.AutoSizeUtils;

public class FFPayCodeActivity extends BaseActivity<FFPayCodeViewModel, FfActivityPayCodeBinding> {

    private FFOrderListBean f2094l;

    public void C(String str) {
        this.f2065i.cslGroup.setVisibility(0);
        Bitmap a2 = c.a(str, AutoSizeUtils.dp2px(this, 290.0f), AutoSizeUtils.dp2px(this, 66.0f), ViewCompat.MEASURED_STATE_MASK);
        this.f2065i.tvCode.setText(str);
        this.f2065i.ivCode.setImageBitmap(a2);
    }

    public void D(View view) {
        finish();
    }

    public static void E(Context context, FFOrderListBean fFOrderListBean) {
        Intent intent = new Intent(context, (Class<?>) FFPayCodeActivity.class);
        intent.putExtra("keyOrderId", (Serializable) fFOrderListBean);
        context.startActivity(intent);
    }

    @Override
    protected void l() {
        super.l();
        this.f2060a.c.observe(this, new Observer() {
            @Override
            public final void onChanged(Object obj) {
                FFPayCodeActivity.this.C((String) obj);
            }
        });
    }

    @Override
    protected void r() {
        this.f2060a.e(this.f2094l.getId(), "VA");
    }

    @Override
    protected void u(Bundle bundle) {
        k.a(this.f2065i.ffCustomToolbar, a.a("Pago"), new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                FFPayCodeActivity.this.D(view);
            }
        });
        l.l0(this).f0(this.f2065i.ffCustomToolbar).D();
        this.f2094l = getIntent().getSerializableExtra("keyOrderId");
    }
}