导航菜单

页面标题

页面副标题

用信花 v1.1.3 - SplashAgreementActivity.java 源代码

正在查看: 用信花 v1.1.3 应用的 SplashAgreementActivity.java JAVA 源代码文件

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


package com.duoshan.loan.ui.launch.activity;

import android.text.TextUtils;
import android.view.View;
import com.duoshan.loan.a;
import com.duoshan.loan.base.BaseActivity;
import com.duoshan.loan.databinding.ActivitySplashAgreementBinding;
import com.duoshan.loan.ui.auth.bean.ApiAgreementBean;
import com.duoshan.loan.ui.launch.vm.AgreementViewModel;
import e2.j0;
import java.util.Iterator;
import java.util.List;
import z1.r;
import z1.s;

public class SplashAgreementActivity extends BaseActivity<ActivitySplashAgreementBinding, AgreementViewModel> {

    public ApiAgreementBean f2849e;

    public ApiAgreementBean f2850f;

    public void r(List list) {
        Iterator it = list.iterator();
        while (it.hasNext()) {
            ApiAgreementBean apiAgreementBean = (ApiAgreementBean) it.next();
            String name = apiAgreementBean.getName();
            if (!TextUtils.isEmpty(name)) {
                if (name.contains("注册协议")) {
                    this.f2849e = apiAgreementBean;
                } else if (name.contains("隐私协议")) {
                    this.f2850f = apiAgreementBean;
                }
            }
        }
    }

    public void s(View view) {
        switch (view.getId()) {
            case a.i.stv_agree:
                j0.C(j0.f3634c, true);
                e2.a.v(this);
                finish();
                break;
            case a.i.stv_unagree:
                j0.C(j0.f3634c, false);
                e2.a.w(this);
                finish();
                break;
            case a.i.tv_privacy_agreement:
                ApiAgreementBean apiAgreementBean = this.f2850f;
                if (apiAgreementBean != null) {
                    e2.a.J(this, 1, apiAgreementBean.getName(), this.f2850f.getUrl());
                    break;
                }
                break;
            case a.i.tv_register_agreement:
                ApiAgreementBean apiAgreementBean2 = this.f2849e;
                if (apiAgreementBean2 != null) {
                    e2.a.J(this, 1, apiAgreementBean2.getName(), this.f2849e.getUrl());
                    break;
                }
                break;
        }
    }

    @Override
    public void g() {
        ((AgreementViewModel) this.f2433c).e("");
        ((AgreementViewModel) this.f2433c).f2851d.observe(this, new s(this));
    }

    @Override
    public void initView() {
        r rVar = new r(this);
        VB vb = this.f2431a;
        l(rVar, ((ActivitySplashAgreementBinding) vb).tvRegisterAgreement, ((ActivitySplashAgreementBinding) vb).tvPrivacyAgreement, ((ActivitySplashAgreementBinding) vb).stvAgree, ((ActivitySplashAgreementBinding) vb).stvUnagree);
    }

    @Override
    public void onBackPressed() {
    }
}