正在查看: PrestaMax v1.0.9 应用的 SettingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 SettingActivity.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 SettingActivity extends MaxActivity {
public ActivityResultLauncher f13598vikxvh;
public void mypv(View view) {
this.f13598vikxvh.launch(ActivityUtil.qwppmv(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_setting);
((TransferMaterialToolbar) findViewById(R$id.toolbar)).setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingActivity.this.yebtjpgtd(view);
}
});
this.f13598vikxvh = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
@Override
public final void onActivityResult(Object obj) {
SettingActivity.this.okynidv((ActivityResult) obj);
}
});
findViewById(R$id.safetyView).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingActivity.this.mypv(view);
}
});
}
}