导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - PrivacyActivity.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 PrivacyActivity.java JAVA 源代码文件

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


package com.fancyclean.boost.main.ui.activity;

import android.content.SharedPreferences;
import android.os.Bundle;
import c.p;
import com.thinkyeah.common.ui.thinklist.a;
import com.thinkyeah.common.ui.view.TitleBar;
import java.util.ArrayList;
import java.util.HashMap;
import jl.d;
import tk.b;

public class PrivacyActivity extends v7.a {
    public static final int n = 0;
    public final p l = new p(this, 13);
    public final a m = new a();

    public class a implements a.c {
        public a() {
        }

        public final boolean a(int i, boolean z10) {
            return true;
        }

        public final void b(int i, boolean z10) {
            ?? r02 = PrivacyActivity.this;
            SharedPreferences sharedPreferences = r02.getSharedPreferences("main", 0);
            SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
            if (edit != null) {
                edit.putBoolean("is_collect_user_data_allowed", z10);
                edit.apply();
            }
            r02.X2();
            if (z10) {
                return;
            }
            b.a().b("disable_allow_collect_data", (HashMap) null);
        }
    }

    public final void X2() {
        ArrayList arrayList = new ArrayList();
        d dVar = new d(this, 1, getString(2131887360));
        dVar.setThinkItemClickListener(this.l);
        arrayList.add(dVar);
        String string = getString(2131886493);
        SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
        com.thinkyeah.common.ui.thinklist.a aVar = new com.thinkyeah.common.ui.thinklist.a(string, this, sharedPreferences != null ? sharedPreferences.getBoolean("is_collect_user_data_allowed", true) : true, 2);
        aVar.setComment(getString(2131886494));
        aVar.setToggleButtonClickListener(this.m);
        arrayList.add(aVar);
        findViewById(2131363201).setAdapter(new jl.b(arrayList));
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558509);
        TitleBar.a configure = findViewById(2131363196).getConfigure();
        configure.e(2131887359);
        configure.g(new t4.a(this, 17));
        configure.a();
        X2();
    }
}