导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - GdprPrivacySettings.java 源代码

正在查看: Uptodown App Store v6.80 应用的 GdprPrivacySettings.java JAVA 源代码文件

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


package com.uptodown.activities;

import N1.k;
import android.os.Bundle;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.TextView;
import androidx.appcompat.widget.SwitchCompat;
import androidx.core.content.ContextCompat;
import c2.j1;
import com.inmobi.cmp.ChoiceCmp;
import com.uptodown.UptodownApp;
import com.uptodown.activities.GdprPrivacySettings;
import com.uptodown.activities.preferences.a;

public final class GdprPrivacySettings extends AbstractC0740a {
    private final R2.g J = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            c2.j1 l32;
            l32 = GdprPrivacySettings.l3(GdprPrivacySettings.this);
            return l32;
        }
    });

    public static final j1 l3(GdprPrivacySettings gdprPrivacySettings) {
        return j1.c(gdprPrivacySettings.getLayoutInflater());
    }

    private final j1 m3() {
        return (j1) this.J.getValue();
    }

    public static final void n3(GdprPrivacySettings gdprPrivacySettings, View view) {
        gdprPrivacySettings.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void o3(GdprPrivacySettings gdprPrivacySettings, CompoundButton compoundButton, boolean z) {
        SwitchCompat sAnalyticsWizardPrivacy = gdprPrivacySettings.m3().k;
        kotlin.jvm.internal.m.d(sAnalyticsWizardPrivacy, "sAnalyticsWizardPrivacy");
        TextView tvDescriptionAnalyticsWizardPrivacy = gdprPrivacySettings.m3().r;
        kotlin.jvm.internal.m.d(tvDescriptionAnalyticsWizardPrivacy, "tvDescriptionAnalyticsWizardPrivacy");
        gdprPrivacySettings.z3(sAnalyticsWizardPrivacy, tvDescriptionAnalyticsWizardPrivacy, z);
        gdprPrivacySettings.x3();
    }

    public static final void p3(GdprPrivacySettings gdprPrivacySettings, CompoundButton compoundButton, boolean z) {
        SwitchCompat sErrorLogWizardPrivacy = gdprPrivacySettings.m3().m;
        kotlin.jvm.internal.m.d(sErrorLogWizardPrivacy, "sErrorLogWizardPrivacy");
        TextView tvDescriptionErrorLogWizardPrivacy = gdprPrivacySettings.m3().t;
        kotlin.jvm.internal.m.d(tvDescriptionErrorLogWizardPrivacy, "tvDescriptionErrorLogWizardPrivacy");
        gdprPrivacySettings.z3(sErrorLogWizardPrivacy, tvDescriptionErrorLogWizardPrivacy, z);
        gdprPrivacySettings.x3();
    }

    public static final void q3(GdprPrivacySettings gdprPrivacySettings, View view) {
        gdprPrivacySettings.v3();
    }

    public static final void r3(GdprPrivacySettings gdprPrivacySettings, CompoundButton compoundButton, boolean z) {
        SwitchCompat sDeviceAnalysisWizardPrivacy = gdprPrivacySettings.m3().l;
        kotlin.jvm.internal.m.d(sDeviceAnalysisWizardPrivacy, "sDeviceAnalysisWizardPrivacy");
        TextView tvDescriptionDeviceAnalysisWizardPrivacy = gdprPrivacySettings.m3().s;
        kotlin.jvm.internal.m.d(tvDescriptionDeviceAnalysisWizardPrivacy, "tvDescriptionDeviceAnalysisWizardPrivacy");
        gdprPrivacySettings.z3(sDeviceAnalysisWizardPrivacy, tvDescriptionDeviceAnalysisWizardPrivacy, z);
        gdprPrivacySettings.x3();
        if (gdprPrivacySettings.m3().l.isChecked()) {
            gdprPrivacySettings.m3().C.setVisibility(8);
        } else {
            gdprPrivacySettings.m3().C.setVisibility(0);
        }
    }

    public static final void s3(GdprPrivacySettings gdprPrivacySettings, View view) {
        if (gdprPrivacySettings.isFinishing()) {
            return;
        }
        u2.p pVar = new u2.p();
        String string = gdprPrivacySettings.getString(2131952785);
        kotlin.jvm.internal.m.d(string, "getString(...)");
        u2.p.q(pVar, gdprPrivacySettings, string, null, 4, null);
    }

    public static final void t3(GdprPrivacySettings gdprPrivacySettings, View view) {
        new u2.N().a(gdprPrivacySettings, true);
        new u2.N().b(false);
        gdprPrivacySettings.m3().l.setChecked(true);
        gdprPrivacySettings.m3().k.setChecked(true);
        gdprPrivacySettings.m3().m.setChecked(true);
        gdprPrivacySettings.w3();
        gdprPrivacySettings.finish();
    }

    public static final void u3(GdprPrivacySettings gdprPrivacySettings, View view) {
        gdprPrivacySettings.x3();
        gdprPrivacySettings.m3().l.setChecked(false);
        gdprPrivacySettings.m3().k.setChecked(false);
        gdprPrivacySettings.m3().m.setChecked(false);
    }

    private final void v3() {
        ChoiceCmp.forceDisplayUI(this);
        ChoiceCmp.showUSRegulationScreen(this);
    }

    private final void w3() {
        boolean isChecked = m3().m.isChecked();
        a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
        if (c0191a.L(this) != isChecked) {
            c0191a.q0(this, isChecked);
        }
        boolean isChecked2 = m3().k.isChecked();
        if (c0191a.J(this) != isChecked2) {
            c0191a.l0(this, isChecked2);
        }
        boolean isChecked3 = m3().l.isChecked();
        if (c0191a.e0(this) != isChecked3) {
            c0191a.e1(this, isChecked3);
        }
        u2.z zVar = new u2.z(this);
        if (!c0191a.e0(this)) {
            setResult(0);
            return;
        }
        UptodownApp.a aVar = UptodownApp.F;
        UptodownApp.a.P0(aVar, this, false, 2, null);
        aVar.I(this);
        zVar.b();
        setResult(-1);
    }

    private final void x3() {
        if (m3().p.getVisibility() == 0) {
            m3().n.setText(2131952584);
            m3().n.setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    GdprPrivacySettings.y3(GdprPrivacySettings.this, view);
                }
            });
            m3().p.setVisibility(8);
        }
    }

    public static final void y3(GdprPrivacySettings gdprPrivacySettings, View view) {
        gdprPrivacySettings.w3();
        gdprPrivacySettings.finish();
    }

    private final void z3(SwitchCompat switchCompat, TextView textView, boolean z) {
        if (z) {
            switchCompat.setTextColor(ContextCompat.getColor(this, N1.c.b));
            textView.setTextColor(ContextCompat.getColor(this, N1.c.b));
        } else {
            switchCompat.setTextColor(ContextCompat.getColor(this, 2131100319));
            textView.setTextColor(ContextCompat.getColor(this, 2131100319));
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(m3().getRoot());
        m3().b.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GdprPrivacySettings.n3(GdprPrivacySettings.this, view);
            }
        });
        TextView textView = m3().v;
        k.a aVar = N1.k.g;
        textView.setTypeface(aVar.w());
        m3().B.setTypeface(aVar.w());
        m3().o.setTypeface(aVar.x());
        m3().y.setTypeface(aVar.w());
        m3().s.setTypeface(aVar.x());
        m3().x.setTypeface(aVar.w());
        m3().r.setTypeface(aVar.x());
        m3().z.setTypeface(aVar.w());
        m3().t.setTypeface(aVar.x());
        m3().w.setTypeface(aVar.w());
        m3().q.setTypeface(aVar.x());
        m3().A.setTypeface(aVar.w());
        m3().u.setTypeface(aVar.x());
        m3().n.setTypeface(aVar.w());
        m3().p.setTypeface(aVar.w());
        m3().C.setText("⚠ " + getString(2131952692) + " ⚠");
        m3().C.setTypeface(aVar.x());
        SwitchCompat switchCompat = m3().k;
        a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
        switchCompat.setChecked(c0191a.J(this));
        m3().m.setChecked(c0191a.L(this));
        m3().l.setChecked(c0191a.e0(this));
        if (c0191a.P(this)) {
            SwitchCompat sAnalyticsWizardPrivacy = m3().k;
            kotlin.jvm.internal.m.d(sAnalyticsWizardPrivacy, "sAnalyticsWizardPrivacy");
            TextView tvDescriptionAnalyticsWizardPrivacy = m3().r;
            kotlin.jvm.internal.m.d(tvDescriptionAnalyticsWizardPrivacy, "tvDescriptionAnalyticsWizardPrivacy");
            z3(sAnalyticsWizardPrivacy, tvDescriptionAnalyticsWizardPrivacy, m3().k.isChecked());
            SwitchCompat sErrorLogWizardPrivacy = m3().m;
            kotlin.jvm.internal.m.d(sErrorLogWizardPrivacy, "sErrorLogWizardPrivacy");
            TextView tvDescriptionErrorLogWizardPrivacy = m3().t;
            kotlin.jvm.internal.m.d(tvDescriptionErrorLogWizardPrivacy, "tvDescriptionErrorLogWizardPrivacy");
            z3(sErrorLogWizardPrivacy, tvDescriptionErrorLogWizardPrivacy, m3().m.isChecked());
            SwitchCompat sDeviceAnalysisWizardPrivacy = m3().l;
            kotlin.jvm.internal.m.d(sDeviceAnalysisWizardPrivacy, "sDeviceAnalysisWizardPrivacy");
            TextView tvDescriptionDeviceAnalysisWizardPrivacy = m3().s;
            kotlin.jvm.internal.m.d(tvDescriptionDeviceAnalysisWizardPrivacy, "tvDescriptionDeviceAnalysisWizardPrivacy");
            z3(sDeviceAnalysisWizardPrivacy, tvDescriptionDeviceAnalysisWizardPrivacy, m3().l.isChecked());
        } else {
            SwitchCompat sAnalyticsWizardPrivacy2 = m3().k;
            kotlin.jvm.internal.m.d(sAnalyticsWizardPrivacy2, "sAnalyticsWizardPrivacy");
            TextView tvDescriptionAnalyticsWizardPrivacy2 = m3().r;
            kotlin.jvm.internal.m.d(tvDescriptionAnalyticsWizardPrivacy2, "tvDescriptionAnalyticsWizardPrivacy");
            z3(sAnalyticsWizardPrivacy2, tvDescriptionAnalyticsWizardPrivacy2, true);
            SwitchCompat sErrorLogWizardPrivacy2 = m3().m;
            kotlin.jvm.internal.m.d(sErrorLogWizardPrivacy2, "sErrorLogWizardPrivacy");
            TextView tvDescriptionErrorLogWizardPrivacy2 = m3().t;
            kotlin.jvm.internal.m.d(tvDescriptionErrorLogWizardPrivacy2, "tvDescriptionErrorLogWizardPrivacy");
            z3(sErrorLogWizardPrivacy2, tvDescriptionErrorLogWizardPrivacy2, true);
            SwitchCompat sDeviceAnalysisWizardPrivacy2 = m3().l;
            kotlin.jvm.internal.m.d(sDeviceAnalysisWizardPrivacy2, "sDeviceAnalysisWizardPrivacy");
            TextView tvDescriptionDeviceAnalysisWizardPrivacy2 = m3().s;
            kotlin.jvm.internal.m.d(tvDescriptionDeviceAnalysisWizardPrivacy2, "tvDescriptionDeviceAnalysisWizardPrivacy");
            z3(sDeviceAnalysisWizardPrivacy2, tvDescriptionDeviceAnalysisWizardPrivacy2, true);
            m3().k.setChecked(true);
            m3().m.setChecked(true);
            m3().l.setChecked(true);
        }
        if (m3().l.isChecked()) {
            m3().C.setVisibility(8);
        } else {
            m3().C.setVisibility(0);
        }
        m3().k.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                GdprPrivacySettings.o3(GdprPrivacySettings.this, compoundButton, z);
            }
        });
        m3().m.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                GdprPrivacySettings.p3(GdprPrivacySettings.this, compoundButton, z);
            }
        });
        m3().d.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GdprPrivacySettings.q3(GdprPrivacySettings.this, view);
            }
        });
        m3().l.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                GdprPrivacySettings.r3(GdprPrivacySettings.this, compoundButton, z);
            }
        });
        m3().i.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GdprPrivacySettings.s3(GdprPrivacySettings.this, view);
            }
        });
        m3().n.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GdprPrivacySettings.t3(GdprPrivacySettings.this, view);
            }
        });
        m3().p.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GdprPrivacySettings.u3(GdprPrivacySettings.this, view);
            }
        });
    }

    @Override
    protected void onResume() {
        super.onResume();
        a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
        if (c0191a.P(this)) {
            return;
        }
        c0191a.A0(this, true);
        c0191a.l0(this, true);
        c0191a.q0(this, true);
        c0191a.e1(this, true);
    }
}