导航菜单

页面标题

页面副标题

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

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

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


package com.uptodown.activities.preferences;

import N1.e;
import N1.i;
import N1.k;
import R2.g;
import R2.h;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.provider.Settings;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import c2.C0569a;
import c2.C0584h0;
import c2.C0586i0;
import c2.C0590k0;
import c2.C0596n0;
import com.uptodown.UptodownApp;
import com.uptodown.activities.AbstractC0740a;
import com.uptodown.activities.Suggestions;
import com.uptodown.activities.preferences.AdvancedPreferencesActivity;
import g2.S;
import kotlin.jvm.internal.A;
import kotlin.jvm.internal.AbstractC1009g;
import kotlin.jvm.internal.m;
import u2.p;

public final class AdvancedPreferencesActivity extends AbstractC0740a {
    public static final a L = new a(null);
    private final g J = h.a(new d3.a() {
        @Override
        public final Object invoke() {
            C0569a P3;
            P3 = AdvancedPreferencesActivity.P3(AdvancedPreferencesActivity.this);
            return P3;
        }
    });
    private RelativeLayout.LayoutParams K;

    public static final class a {
        public a(AbstractC1009g abstractC1009g) {
            this();
        }

        private a() {
        }
    }

    public static final void A3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        advancedPreferencesActivity.startActivity(new Intent((Context) advancedPreferencesActivity, (Class<?>) K1.a.class), UptodownApp.F.a(advancedPreferencesActivity));
    }

    public static final void B3(AdvancedPreferencesActivity advancedPreferencesActivity, S s, View view) {
        Object systemService = advancedPreferencesActivity.getSystemService("clipboard");
        m.c(systemService, "null cannot be cast to non-null type android.content.ClipboardManager");
        ((ClipboardManager) systemService).setPrimaryClip(ClipData.newPlainText("userID", s.g()));
        advancedPreferencesActivity.r0("userID copiado al portapapeles");
    }

    public static final void C3(A a4, final AdvancedPreferencesActivity advancedPreferencesActivity, C0586i0 c0586i0, View view) {
        if (a4.a == 4) {
            final String string = Settings.Secure.getString(advancedPreferencesActivity.getContentResolver(), "android_id");
            c0586i0.d.setText(((Object) c0586i0.d.getText()) + " id:" + string);
            c0586i0.getRoot().setOnLongClickListener(new View.OnLongClickListener() {
                @Override
                public final boolean onLongClick(View view2) {
                    boolean D3;
                    D3 = AdvancedPreferencesActivity.D3(AdvancedPreferencesActivity.this, string, view2);
                    return D3;
                }
            });
        }
        int i = a4.a;
        if (i < 5) {
            a4.a = i + 1;
        }
    }

    public static final boolean D3(AdvancedPreferencesActivity advancedPreferencesActivity, String str, View view) {
        Object systemService = advancedPreferencesActivity.getSystemService("clipboard");
        m.c(systemService, "null cannot be cast to non-null type android.content.ClipboardManager");
        ((ClipboardManager) systemService).setPrimaryClip(ClipData.newPlainText("identifier", str));
        advancedPreferencesActivity.r0("identifier copiado al portapapeles");
        return true;
    }

    public static final void E3(View view) {
    }

    public static final void F3(View view) {
    }

    private final void G3() {
        C0586i0 c = C0586i0.c(getLayoutInflater());
        m.d(c, "inflate(...)");
        RelativeLayout root = c.getRoot();
        RelativeLayout.LayoutParams layoutParams = this.K;
        RelativeLayout.LayoutParams layoutParams2 = null;
        if (layoutParams == null) {
            m.u("lp");
            layoutParams = null;
        }
        root.setLayoutParams(layoutParams);
        TextView textView = c.e;
        k.a aVar = k.g;
        textView.setTypeface(aVar.w());
        c.e.setText("Website");
        c.d.setTypeface(aVar.x());
        c.d.setText(getString(2131952783));
        c.d.setVisibility(0);
        c.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.H3(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c.getRoot());
        C0586i0 c4 = C0586i0.c(getLayoutInflater());
        m.d(c4, "inflate(...)");
        RelativeLayout root2 = c4.getRoot();
        RelativeLayout.LayoutParams layoutParams3 = this.K;
        if (layoutParams3 == null) {
            m.u("lp");
            layoutParams3 = null;
        }
        root2.setLayoutParams(layoutParams3);
        c4.e.setTypeface(aVar.w());
        c4.e.setText("Developers");
        c4.d.setTypeface(aVar.x());
        c4.d.setText(getString(2131952787));
        c4.d.setVisibility(0);
        c4.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.I3(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c4.getRoot());
        C0584h0 c5 = C0584h0.c(getLayoutInflater());
        m.d(c5, "inflate(...)");
        c5.b.setTypeface(aVar.w());
        c5.b.setText(getString(2131952645));
        RelativeLayout.LayoutParams layoutParams4 = new RelativeLayout.LayoutParams(-1, -2);
        layoutParams4.setMargins(0, (int) getResources().getDimension(2131166020), 0, 0);
        c5.getRoot().setLayoutParams(layoutParams4);
        T3().b.addView(c5.getRoot());
        C0596n0 c6 = C0596n0.c(getLayoutInflater());
        m.d(c6, "inflate(...)");
        LinearLayout root3 = c6.getRoot();
        RelativeLayout.LayoutParams layoutParams5 = this.K;
        if (layoutParams5 == null) {
            m.u("lp");
        } else {
            layoutParams2 = layoutParams5;
        }
        root3.setLayoutParams(layoutParams2);
        c6.g.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.J3(AdvancedPreferencesActivity.this, view);
            }
        });
        c6.e.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.K3(AdvancedPreferencesActivity.this, view);
            }
        });
        c6.f.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.L3(AdvancedPreferencesActivity.this, view);
            }
        });
        c6.c.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.M3(AdvancedPreferencesActivity.this, view);
            }
        });
        c6.d.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.N3(AdvancedPreferencesActivity.this, view);
            }
        });
        c6.b.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.O3(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c6.getRoot());
    }

    public static final void H3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p.q(new p(), advancedPreferencesActivity, advancedPreferencesActivity.getString(2131952783) + "/android", null, 4, null);
    }

    public static final void I3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952787);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final void J3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952800);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final void K3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952797);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final void L3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952799);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final void M3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952791);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final void N3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952793);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final void O3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        p pVar = new p();
        String string = advancedPreferencesActivity.getString(2131952789);
        m.d(string, "getString(...)");
        p.q(pVar, advancedPreferencesActivity, string, null, 4, null);
    }

    public static final C0569a P3(AdvancedPreferencesActivity advancedPreferencesActivity) {
        return C0569a.c(advancedPreferencesActivity.getLayoutInflater());
    }

    private final void Q3() {
        C0586i0 c = C0586i0.c(getLayoutInflater());
        m.d(c, "inflate(...)");
        RelativeLayout root = c.getRoot();
        RelativeLayout.LayoutParams layoutParams = this.K;
        RelativeLayout.LayoutParams layoutParams2 = null;
        if (layoutParams == null) {
            m.u("lp");
            layoutParams = null;
        }
        root.setLayoutParams(layoutParams);
        TextView textView = c.e;
        k.a aVar = k.g;
        textView.setTypeface(aVar.w());
        c.e.setText(getString(2131952863));
        c.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.R3(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c.getRoot());
        C0586i0 c4 = C0586i0.c(getLayoutInflater());
        m.d(c4, "inflate(...)");
        RelativeLayout root2 = c4.getRoot();
        RelativeLayout.LayoutParams layoutParams3 = this.K;
        if (layoutParams3 == null) {
            m.u("lp");
        } else {
            layoutParams2 = layoutParams3;
        }
        root2.setLayoutParams(layoutParams2);
        c4.e.setTypeface(aVar.w());
        c4.e.setText(getString(2131951949));
        c4.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.S3(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c4.getRoot());
    }

    public static final void R3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        try {
            advancedPreferencesActivity.startActivity(new Intent((Context) advancedPreferencesActivity, (Class<?>) Suggestions.class), UptodownApp.F.a(advancedPreferencesActivity));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static final void S3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        String string = advancedPreferencesActivity.getString(2131951949);
        m.d(string, "getString(...)");
        String string2 = advancedPreferencesActivity.getString(2131952788);
        m.d(string2, "getString(...)");
        new p().p(advancedPreferencesActivity, string2, string);
    }

    private final C0569a T3() {
        return (C0569a) this.J.getValue();
    }

    private final void U3() {
        final P1.a aVar = new P1.a(this);
        final C0590k0 c = C0590k0.c(getLayoutInflater());
        m.d(c, "inflate(...)");
        RelativeLayout root = c.getRoot();
        RelativeLayout.LayoutParams layoutParams = this.K;
        RelativeLayout.LayoutParams layoutParams2 = null;
        if (layoutParams == null) {
            m.u("lp");
            layoutParams = null;
        }
        root.setLayoutParams(layoutParams);
        TextView textView = c.e;
        k.a aVar2 = k.g;
        textView.setTypeface(aVar2.w());
        c.e.setText(getString(2131952628));
        c.d.setVisibility(8);
        c.c.setChecked(aVar.r());
        c.c.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                AdvancedPreferencesActivity.V3(P1.a.this, compoundButton, z);
            }
        });
        c.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.W3(C0590k0.this, view);
            }
        });
        T3().b.addView(c.getRoot());
        final C0590k0 c4 = C0590k0.c(getLayoutInflater());
        m.d(c4, "inflate(...)");
        RelativeLayout root2 = c4.getRoot();
        RelativeLayout.LayoutParams layoutParams3 = this.K;
        if (layoutParams3 == null) {
            m.u("lp");
        } else {
            layoutParams2 = layoutParams3;
        }
        root2.setLayoutParams(layoutParams2);
        c4.e.setTypeface(aVar2.w());
        c4.e.setText(getString(2131952631));
        c4.d.setVisibility(8);
        c4.c.setChecked(aVar.N());
        c4.c.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                AdvancedPreferencesActivity.X3(P1.a.this, compoundButton, z);
            }
        });
        c4.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.Y3(C0590k0.this, view);
            }
        });
        T3().b.addView(c4.getRoot());
    }

    public static final void V3(P1.a aVar, CompoundButton compoundButton, boolean z) {
        aVar.I(z);
    }

    public static final void W3(C0590k0 c0590k0, View view) {
        c0590k0.c.performClick();
    }

    public static final void X3(P1.a aVar, CompoundButton compoundButton, boolean z) {
        aVar.J(z);
    }

    public static final void Y3(C0590k0 c0590k0, View view) {
        c0590k0.c.performClick();
    }

    public static final void Z3(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        advancedPreferencesActivity.finish();
    }

    private final void a4() {
        C0586i0 c = C0586i0.c(getLayoutInflater());
        m.d(c, "inflate(...)");
        RelativeLayout root = c.getRoot();
        RelativeLayout.LayoutParams layoutParams = this.K;
        RelativeLayout.LayoutParams layoutParams2 = null;
        if (layoutParams == null) {
            m.u("lp");
            layoutParams = null;
        }
        root.setLayoutParams(layoutParams);
        TextView textView = c.e;
        k.a aVar = k.g;
        textView.setTypeface(aVar.w());
        c.e.setText(getString(2131952691));
        c.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.b4(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c.getRoot());
        C0586i0 c4 = C0586i0.c(getLayoutInflater());
        m.d(c4, "inflate(...)");
        RelativeLayout root2 = c4.getRoot();
        RelativeLayout.LayoutParams layoutParams3 = this.K;
        if (layoutParams3 == null) {
            m.u("lp");
        } else {
            layoutParams2 = layoutParams3;
        }
        root2.setLayoutParams(layoutParams2);
        c4.e.setTypeface(aVar.w());
        c4.e.setText(getString(2131952519));
        c4.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.c4(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().b.addView(c4.getRoot());
    }

    public static final void b4(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        String string = advancedPreferencesActivity.getString(2131952691);
        m.d(string, "getString(...)");
        String string2 = advancedPreferencesActivity.getString(2131952798);
        m.d(string2, "getString(...)");
        new p().p(advancedPreferencesActivity, string2, string);
    }

    public static final void c4(AdvancedPreferencesActivity advancedPreferencesActivity, View view) {
        String string = advancedPreferencesActivity.getString(2131952519);
        m.d(string, "getString(...)");
        String string2 = advancedPreferencesActivity.getString(2131952794);
        m.d(string2, "getString(...)");
        new p().p(advancedPreferencesActivity, string2, string);
    }

    private final void z3() {
        final C0586i0 c = C0586i0.c(getLayoutInflater());
        m.d(c, "inflate(...)");
        RelativeLayout root = c.getRoot();
        RelativeLayout.LayoutParams layoutParams = this.K;
        RelativeLayout.LayoutParams layoutParams2 = null;
        if (layoutParams == null) {
            m.u("lp");
            layoutParams = null;
        }
        root.setLayoutParams(layoutParams);
        TextView textView = c.e;
        k.a aVar = k.g;
        textView.setTypeface(aVar.w());
        c.e.setText(getString(2131952835));
        c.d.setTypeface(aVar.x());
        c.d.setText(getString(2131952824, getString(i.b), "6.80", "680"));
        c.d.setVisibility(0);
        c.b.setVisibility(8);
        final A a4 = new A();
        c.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.C3(kotlin.jvm.internal.A.this, this, c, view);
            }
        });
        T3().b.addView(c.getRoot());
        C0586i0 c4 = C0586i0.c(getLayoutInflater());
        m.d(c4, "inflate(...)");
        RelativeLayout root2 = c4.getRoot();
        RelativeLayout.LayoutParams layoutParams3 = this.K;
        if (layoutParams3 == null) {
            m.u("lp");
            layoutParams3 = null;
        }
        root2.setLayoutParams(layoutParams3);
        c4.e.setTypeface(aVar.w());
        c4.e.setText(getString(2131952530));
        c4.d.setTypeface(aVar.x());
        c4.d.setText("Aug 22, 2025 12:44");
        c4.d.setVisibility(0);
        c4.b.setVisibility(8);
        c4.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.E3(view);
            }
        });
        T3().b.addView(c4.getRoot());
        C0586i0 c5 = C0586i0.c(getLayoutInflater());
        m.d(c5, "inflate(...)");
        RelativeLayout root3 = c5.getRoot();
        RelativeLayout.LayoutParams layoutParams4 = this.K;
        if (layoutParams4 == null) {
            m.u("lp");
            layoutParams4 = null;
        }
        root3.setLayoutParams(layoutParams4);
        c5.e.setTypeface(aVar.w());
        c5.e.setText("Uptodown Core");
        c5.d.setTypeface(aVar.x());
        c5.d.setText("0.2.57");
        c5.d.setVisibility(0);
        c5.b.setVisibility(8);
        c5.getRoot().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.F3(view);
            }
        });
        T3().b.addView(c5.getRoot());
        if (UptodownApp.F.K()) {
            C0586i0 c6 = C0586i0.c(getLayoutInflater());
            m.d(c6, "inflate(...)");
            RelativeLayout root4 = c6.getRoot();
            RelativeLayout.LayoutParams layoutParams5 = this.K;
            if (layoutParams5 == null) {
                m.u("lp");
                layoutParams5 = null;
            }
            root4.setLayoutParams(layoutParams5);
            c6.e.setTypeface(aVar.w());
            c6.e.setText("Console");
            c6.getRoot().setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    AdvancedPreferencesActivity.A3(AdvancedPreferencesActivity.this, view);
                }
            });
            T3().b.addView(c6.getRoot());
            final S e = S.m.e(this);
            if (e != null) {
                C0586i0 c7 = C0586i0.c(getLayoutInflater());
                m.d(c7, "inflate(...)");
                RelativeLayout root5 = c7.getRoot();
                RelativeLayout.LayoutParams layoutParams6 = this.K;
                if (layoutParams6 == null) {
                    m.u("lp");
                } else {
                    layoutParams2 = layoutParams6;
                }
                root5.setLayoutParams(layoutParams2);
                c7.e.setTypeface(aVar.w());
                c7.b.setVisibility(8);
                c7.e.setText("userID: " + e.g());
                c7.getRoot().setOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        AdvancedPreferencesActivity.B3(AdvancedPreferencesActivity.this, e, view);
                    }
                });
                T3().b.addView(c7.getRoot());
            }
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(T3().getRoot());
        Drawable drawable = ContextCompat.getDrawable(this, e.c);
        if (drawable != null) {
            T3().d.setNavigationIcon(drawable);
            T3().d.setNavigationContentDescription(getString(2131951721));
        }
        T3().d.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AdvancedPreferencesActivity.Z3(AdvancedPreferencesActivity.this, view);
            }
        });
        T3().e.setTypeface(k.g.w());
        int dimension = (int) getResources().getDimension(2131166021);
        int i = -1;
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -2);
        this.K = layoutParams;
        layoutParams.setMargins(0, dimension, 0, dimension);
        Bundle extras = getIntent().getExtras();
        if (extras != null) {
            if (extras.containsKey("advanced_settings_title")) {
                T3().e.setText(extras.getString("advanced_settings_title"));
            }
            if (extras.containsKey("advanced_settings_index")) {
                i = extras.getInt("advanced_settings_index");
            }
        }
        if (i == 0) {
            a4();
            return;
        }
        if (i == 1) {
            Q3();
            return;
        }
        if (i == 2) {
            z3();
        } else if (i == 3) {
            U3();
        } else {
            if (i != 4) {
                return;
            }
            G3();
        }
    }
}