Call Recorder v6.34.2版本的 MD5 值为:298659ce317c966b10d9947b76831521

以下内容为反编译后的 a.java 源代码,内容仅作参考


package com.appstar.callrecordercore.introscreen;

import android.content.Intent;
import android.net.Uri;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.appstar.callrecorder.R;
import com.appstar.callrecordercore.introscreen.CustomViewPager;
import com.appstar.callrecordercore.introscreen.c;
import com.appstar.callrecordercore.preferences.RecordingModePreferenceActivity;
import com.google.android.gms.ads.RequestConfiguration;
import java.util.HashMap;
import java.util.Locale;
import u1.w0;
public class a extends d {
    public static String f5682u = "";
    private Button f5683m;
    private TextView f5684n;
    private TextView f5685o;
    private TextView f5686p;
    private TextView f5687q;
    private ImageView f5688r;
    private int f5689s;
    private boolean f5690t;

    class View$OnClickListenerC0106a implements View.OnClickListener {
        final androidx.appcompat.app.c f5691a;

        View$OnClickListenerC0106a(androidx.appcompat.app.c cVar) {
            this.f5691a = cVar;
        }

        @Override
        public void onClick(View view) {
            if (w0.b()) {
                a.this.f5733h.n();
                com.appstar.callrecordercore.k.N1(this.f5691a);
                return;
            }
            com.appstar.callrecordercore.k.C1(a.this.f5726a, "recording_mode", 1);
            com.appstar.callrecordercore.k.p1(a.this.f5726a, new Intent(a.this.f5726a, RecordingModePreferenceActivity.class), "Android10ConfigurationIntroManager");
        }
    }

    public class b implements View.OnClickListener {
        final String f5693a;

        b(String str) {
            this.f5693a = str;
        }

        @Override
        public void onClick(View view) {
            a.this.f5732g.L();
            com.appstar.callrecordercore.k.p1(a.this.f5726a, new Intent("android.intent.action.VIEW", Uri.parse(this.f5693a)), "Android10ConfigurationIntroManager");
        }
    }

    public a(androidx.appcompat.app.c cVar, View view, int i9, int i10, int i11, String str, boolean z8) {
        super(cVar, view, CustomViewPager.a.ALL, c.b.NEXT, i9, i10, i11);
        this.f5683m = (Button) d().findViewById(R.id.button_set_android_10_configuration);
        this.f5684n = (TextView) d().findViewById(R.id.header_text);
        this.f5685o = (TextView) d().findViewById(R.id.main_text2);
        this.f5686p = (TextView) d().findViewById(R.id.main_text);
        this.f5687q = (TextView) d().findViewById(R.id.youtube_info_link);
        ImageView imageView = (ImageView) d().findViewById(R.id.header_image);
        this.f5688r = imageView;
        f5682u = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
        this.f5690t = z8;
        this.f5736k = true;
        this.f5689s = i11;
        if (z8) {
            imageView.setImageResource(R.drawable.ic_outline_info_72);
            this.f5684n.setText(this.f5726a.getString(R.string.important_notice_str));
        } else if (w0.b() && !w0.i(this.f5726a)) {
            if (str != null && str.equalsIgnoreCase("UserMessageFactory")) {
                this.f5684n.setText(this.f5726a.getString(R.string.accessibility));
            } else {
                this.f5684n.setText(String.format(Locale.US, this.f5726a.getString(R.string.android_10), Integer.valueOf(b2.d.c())));
            }
        } else {
            this.f5688r.setImageResource(R.drawable.ic_outline_info_72);
            this.f5684n.setText(this.f5726a.getString(R.string.important_notice_str));
        }
        if (str != null && str.equalsIgnoreCase("RecordingPreferenceFragment")) {
            f5682u = str;
        }
        if (w0.b()) {
            if (com.appstar.callrecordercore.k.x0()) {
                this.f5685o.setVisibility(8);
                this.f5686p.setPadding(0, h(50), 0, h(5));
                this.f5687q.setPadding(0, h(50), 0, h(50));
                this.f5686p.setText(String.format(Locale.US, this.f5726a.getString(R.string.intro_accessibility_body).toString(), Integer.valueOf(b2.d.c())));
            } else {
                TextView textView = this.f5685o;
                textView.setText(Html.fromHtml(this.f5726a.getString(R.string.policy_restrictions_prevent_recording_with_accessibility).toString() + this.f5726a.getString(R.string.policy_restrictions_prevent_recording_info)));
                this.f5685o.setMovementMethod(LinkMovementMethod.getInstance());
                if (!w0.i(this.f5726a) && !z8) {
                    this.f5686p.setText(String.format(Locale.US, this.f5726a.getString(R.string.are_you_sure_launch_accessibility_screen).toString(), Integer.valueOf(b2.d.c())));
                } else {
                    this.f5685o.setPadding(0, h(50), 0, 0);
                    this.f5685o.setBackgroundResource(0);
                    this.f5687q.setVisibility(8);
                    this.f5686p.setVisibility(8);
                    this.f5683m.setVisibility(8);
                }
            }
        } else {
            TextView textView2 = this.f5685o;
            textView2.setText(Html.fromHtml(this.f5726a.getString(R.string.policy_restrictions_prevent_recording).toString() + "\n\n" + this.f5726a.getString(R.string.policy_restrictions_prevent_recording_info_nxt)));
            this.f5685o.setMovementMethod(LinkMovementMethod.getInstance());
            if (com.appstar.callrecordercore.builtinrecorder.a.p(this.f5726a).w() && !z8) {
                this.f5686p.setText(String.format(Locale.US, this.f5726a.getString(R.string.built_in_intro), new Object[0]));
                this.f5683m.setText(R.string.use_built_in);
            } else {
                this.f5685o.setPadding(0, h(50), 0, 0);
                this.f5685o.setBackgroundResource(0);
                this.f5686p.setVisibility(8);
                this.f5683m.setVisibility(8);
            }
        }
        l();
        Button button = this.f5683m;
        if (button != null) {
            button.setOnClickListener(new View$OnClickListenerC0106a(cVar));
        }
    }

    private int h(int i9) {
        return (int) ((i9 * this.f5726a.getResources().getDisplayMetrics().density) + 0.5f);
    }

    private void k(String str) {
        TextView textView = this.f5687q;
        if (textView != null) {
            textView.setOnClickListener(new b(str));
        }
    }

    private void l() {
        HashMap hashMap = new HashMap();
        hashMap.put(com.appstar.callrecordercore.k.b1("UHNJRV_CONNECTION_DEVICE_LAUNCH", 6), "https://youtu.be/0WgWAQW2Yuo");
        hashMap.put(com.appstar.callrecordercore.k.b1("FNZFHATN_ONTO_DEVICE_LAUNCH", 7), "https://youtu.be/uD6ckCcHDHo");
        hashMap.put(com.appstar.callrecordercore.k.b1("KVNBZVLN_CONNECTION_DEVICE_LAUNCH", 6), "https://youtu.be/aQwPsIHD7VQ");
        hashMap.put(com.appstar.callrecordercore.k.b1("TBBTYRYA_PBAARPGVBA_QRIVPR_YNHAPU", 6), "https://youtu.be/mEtg3UO7vv4");
        String str = (String) hashMap.get(new b2.d(this.f5726a).k().toUpperCase());
        if (str != null && w0.b()) {
            k(str);
        } else {
            this.f5687q.setVisibility(8);
        }
    }

    @Override
    public boolean f() {
        if (this.f5689s == 3) {
            return false;
        }
        return !com.appstar.callrecordercore.k.x0() || w0.i(this.f5726a);
    }

    public void i() {
        if (w0.i(this.f5726a)) {
            this.f5729d = CustomViewPager.a.RIGHT;
            this.f5736k = !w0.i(this.f5726a);
            this.f5735j.h();
        }
    }

    public void j() {
        if (this.f5683m != null) {
            if (w0.b()) {
                if (w0.i(this.f5726a)) {
                    this.f5683m.setEnabled(false);
                } else {
                    this.f5683m.setEnabled(true);
                }
            } else if (com.appstar.callrecordercore.k.D0(this.f5726a, "built_in_recorder", false)) {
                this.f5683m.setEnabled(false);
            }
        }
    }
}