导航菜单

页面标题

页面副标题

PrestaMax v1.0.9 - SafetyActivity.java 源代码

正在查看: PrestaMax v1.0.9 应用的 SafetyActivity.java JAVA 源代码文件

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


package com.prestamx.max.activity;

import android.os.Bundle;
import android.view.View;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import com.prestamx.max.R$id;
import com.prestamx.max.R$layout;
import com.prestamx.max.java_calss.ActivityUtil;
import com.prestamx.max.transfer_view.TransferMaterialToolbar;

public class SafetyActivity extends MaxActivity {

    public ActivityResultLauncher f13580vikxvh;

    public void mypv(View view) {
        this.f13580vikxvh.launch(ActivityUtil.zybqm(view.getContext()));
    }

    public void okynidv(ActivityResult activityResult) {
        if (activityResult.getResultCode() == -1) {
            setResult(-1, activityResult.getData());
            finish();
        }
    }

    public void yebtjpgtd(View view) {
        getOnBackPressedDispatcher().onBackPressed();
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R$layout.activity_safety);
        ((TransferMaterialToolbar) findViewById(R$id.toolbar)).setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                SafetyActivity.this.yebtjpgtd(view);
            }
        });
        this.f13580vikxvh = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            @Override
            public final void onActivityResult(Object obj) {
                SafetyActivity.this.okynidv((ActivityResult) obj);
            }
        });
        findViewById(R$id.delAccountView).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                SafetyActivity.this.mypv(view);
            }
        });
    }
}