导航菜单

页面标题

页面副标题

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

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

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


package com.uptodown.tv.preferences;

import L1.AbstractC0444y;
import android.R;
import android.app.ActionBar;
import android.content.Context;
import android.os.Bundle;
import androidx.fragment.app.FragmentActivity;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
import com.uptodown.activities.preferences.a;
import com.uptodown.tv.preferences.TvPrivacyPreferences;
import kotlin.jvm.internal.m;
import u2.p;

public final class TvPrivacyPreferences extends AbstractC0444y {

    public static final class a extends PreferenceFragmentCompat {
        public static final boolean j(a aVar, Preference it) {
            m.e(it, "it");
            p pVar = new p();
            FragmentActivity requireActivity = aVar.requireActivity();
            m.d(requireActivity, "requireActivity(...)");
            String string = aVar.getString(2131952785);
            m.d(string, "getString(...)");
            p.q(pVar, requireActivity, string, null, 4, null);
            return true;
        }

        public static final boolean k(a aVar, Preference it) {
            m.e(it, "it");
            a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
            Context requireContext = aVar.requireContext();
            m.d(requireContext, "requireContext(...)");
            c0191a.A0(requireContext, true);
            Context requireContext2 = aVar.requireContext();
            m.d(requireContext2, "requireContext(...)");
            c0191a.l0(requireContext2, true);
            Context requireContext3 = aVar.requireContext();
            m.d(requireContext3, "requireContext(...)");
            c0191a.q0(requireContext3, true);
            Context requireContext4 = aVar.requireContext();
            m.d(requireContext4, "requireContext(...)");
            c0191a.e1(requireContext4, true);
            aVar.requireActivity().finish();
            return true;
        }

        public static final boolean l(a aVar, Preference it) {
            m.e(it, "it");
            a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
            Context requireContext = aVar.requireContext();
            m.d(requireContext, "requireContext(...)");
            c0191a.A0(requireContext, false);
            Context requireContext2 = aVar.requireContext();
            m.d(requireContext2, "requireContext(...)");
            c0191a.l0(requireContext2, false);
            Context requireContext3 = aVar.requireContext();
            m.d(requireContext3, "requireContext(...)");
            c0191a.q0(requireContext3, false);
            Context requireContext4 = aVar.requireContext();
            m.d(requireContext4, "requireContext(...)");
            c0191a.e1(requireContext4, false);
            aVar.requireActivity().finish();
            return true;
        }

        public void onCreatePreferences(Bundle bundle, String str) {
            getPreferenceManager().setSharedPreferencesName("SettingsPreferences");
            addPreferencesFromResource(2132213768);
            Preference findPreference = findPreference("right_to_be_forgotten");
            m.b(findPreference);
            findPreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
                public final boolean onPreferenceClick(Preference preference) {
                    boolean j;
                    j = TvPrivacyPreferences.a.j(TvPrivacyPreferences.a.this, preference);
                    return j;
                }
            });
            Preference findPreference2 = findPreference("privacy_accept_all");
            m.b(findPreference2);
            findPreference2.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
                public final boolean onPreferenceClick(Preference preference) {
                    boolean k;
                    k = TvPrivacyPreferences.a.k(TvPrivacyPreferences.a.this, preference);
                    return k;
                }
            });
            Preference findPreference3 = findPreference("privacy_decline_all");
            m.b(findPreference3);
            findPreference3.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
                public final boolean onPreferenceClick(Preference preference) {
                    boolean l;
                    l = TvPrivacyPreferences.a.l(TvPrivacyPreferences.a.this, preference);
                    return l;
                }
            });
        }
    }

    public void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.FragmentActivity*/.onCreate(bundle);
        ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.setDisplayHomeAsUpEnabled(true);
        }
        getSupportFragmentManager().beginTransaction().replace(R.id.content, new a()).commit();
    }
}