导航菜单

页面标题

页面副标题

泰剧兔 v1.5.7.0 - MeishuAlertDialogActivity.java 源代码

正在查看: 泰剧兔 v1.5.7.0 应用的 MeishuAlertDialogActivity.java JAVA 源代码文件

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


package com.meishu.sdk.activity;

import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.meishu.sdk.R;

public class MeishuAlertDialogActivity extends AppCompatActivity implements View.OnClickListener {
    private static CancelHandler cancelHandler;
    private static ConfirmHandler confirmHandler;

    public interface CancelHandler {
        void handle();
    }

    public interface ConfirmHandler {
        void handle();
    }

    public static void setCancelHandler(CancelHandler cancelHandler2) {
        cancelHandler = cancelHandler2;
    }

    public static void setConfirmHandler(ConfirmHandler confirmHandler2) {
        confirmHandler = confirmHandler2;
    }

    @Override
    public void onClick(View view) {
        ConfirmHandler confirmHandler2;
        int id = view.getId();
        if (id == R.id.cancel_button) {
            CancelHandler cancelHandler2 = cancelHandler;
            if (cancelHandler2 != null) {
                cancelHandler2.handle();
            }
        } else if (id == R.id.confirm_button && (confirmHandler2 = confirmHandler) != null) {
            confirmHandler2.handle();
        }
        finish();
    }

    public void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.FragmentActivity*/.onCreate(bundle);
        supportRequestWindowFeature(1);
        setContentView(R.layout.ms_activity_meishu_alert_dialog);
        findViewById(R.id.cancel_button).setOnClickListener(this);
        findViewById(R.id.confirm_button).setOnClickListener(this);
    }

    public void onDestroy() {
        super.onDestroy();
        confirmHandler = null;
        cancelHandler = null;
    }
}