导航菜单

页面标题

页面副标题

BAM Crawford v6.14.1 - DebugActivity.java 源代码

正在查看: BAM Crawford v6.14.1 应用的 DebugActivity.java JAVA 源代码文件

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


package com.subsplash.thechurchapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Pair;
import android.view.View;
import android.view.ViewGroup;
import com.subsplash.thechurchapp.api.h;
import com.subsplash.util.r;
import com.subsplash.util.s0;
import java.util.ArrayList;
import java.util.Iterator;
import pi.n;
import pi.o;
import pi.q;

public class DebugActivity extends BaseActivity {

    class a implements View.OnClickListener {
        final Activity p;
        final String q;

        a(Activity activity, String str) {
            this.p = activity;
            this.q = str;
        }

        @Override
        public void onClick(View view) {
            int id2 = view.getId();
            if (id2 == n.debugCopy) {
                Intent intent = new Intent(this.p, (Class<?>) ClipboardActivity.class);
                intent.putExtra("textToCopy", this.q);
                this.p.startActivity(intent);
            } else if (id2 == n.debugEmail) {
                Intent intent2 = new Intent("android.intent.action.SEND");
                intent2.putExtra("android.intent.extra.EMAIL", new String[]{"[email protected]"});
                intent2.putExtra("android.intent.extra.SUBJECT", "App Debug Menu");
                intent2.putExtra("android.intent.extra.TEXT", this.q);
                intent2.setType("plain/text");
                Activity activity = this.p;
                activity.startActivity(Intent.createChooser(intent2, activity.getString(q.email_chooser)));
            }
        }
    }

    private View.OnClickListener q0(String str) {
        return new a(this, str);
    }

    private void r0() {
        ViewGroup viewGroup = (ViewGroup) findViewById(n.debugContent);
        ArrayList j = h.j();
        String k = h.k();
        Iterator it = j.iterator();
        while (it.hasNext()) {
            Pair pair = (Pair) it.next();
            View inflate = getLayoutInflater().inflate(o.debug_item, (ViewGroup) null);
            s0.p(inflate, n.title, (CharSequence) pair.first, false);
            s0.p(inflate, n.subtitle, (CharSequence) pair.second, false);
            viewGroup.addView(inflate);
        }
        View findViewById = findViewById(n.debugOverlay_buttonGrid1);
        View findViewById2 = findViewById(n.debugOverlay_buttonGrid2);
        View.OnClickListener q0 = q0(k);
        findViewById.findViewById(n.debugCopy).setOnClickListener(q0);
        findViewById.findViewById(n.debugEmail).setOnClickListener(q0);
        findViewById2.findViewById(n.debugCopy).setOnClickListener(q0);
        findViewById2.findViewById(n.debugEmail).setOnClickListener(q0);
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (!r.m()) {
            setRequestedOrientation(7);
        }
        setContentView(o.debug);
        r0();
    }
}