导航菜单

页面标题

页面副标题

品质商城 v1.0 - c.java 源代码

正在查看: 品质商城 v1.0 应用的 c.java JAVA 源代码文件

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


package r1;

import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.tencent.myapplication.MainActivity;

public final class c implements View.OnClickListener {

    public final int f4754a;

    public final MainActivity f4755b;

    public final Dialog f4756c;

    public c(MainActivity mainActivity, Dialog dialog, int i2) {
        this.f4754a = i2;
        this.f4755b = mainActivity;
        this.f4756c = dialog;
    }

    @Override
    public final void onClick(View view) {
        int i2 = this.f4754a;
        Dialog dialog = this.f4756c;
        MainActivity mainActivity = this.f4755b;
        switch (i2) {
            case 0:
                mainActivity.f2874v.loadUrl(s1.a.f5009b);
                dialog.dismiss();
                break;
            case 1:
                int i3 = MainActivity.f2873A;
                mainActivity.getClass();
                try {
                    mainActivity.startActivity(new Intent("android.settings.ACCESSIBILITY_SETTINGS"));
                    final Handler handler = new Handler();
                    final D.a aVar = new D.a(mainActivity, dialog, handler, 6);
                    handler.post(aVar);
                    dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
                        @Override
                        public final void onDismiss(DialogInterface dialogInterface) {
                            int i4 = MainActivity.f2873A;
                            handler.removeCallbacks(aVar);
                        }
                    });
                    break;
                } catch (Exception e2) {
                    Log.e("MainActivity", "无法打开无障碍设置页面", e2);
                    Toast.makeText(mainActivity, "无法打开无障碍设置,请手动开启", 0).show();
                    dialog.dismiss();
                    return;
                }
            case 2:
                int i4 = MainActivity.f2873A;
                mainActivity.getClass();
                try {
                    mainActivity.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://ds.alipay.com/?from=pc")));
                } catch (Exception e3) {
                    Log.e("MainActivity", "打开支付宝下载页面失败", e3);
                    Toast.makeText(mainActivity, "打开下载页面失败,请手动安装支付宝", 0).show();
                }
                dialog.dismiss();
                break;
            default:
                int i5 = MainActivity.f2873A;
                mainActivity.getClass();
                dialog.dismiss();
                mainActivity.f2874v.loadUrl(s1.a.f5009b);
                break;
        }
    }
}