导航菜单

页面标题

页面副标题

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

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

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


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

import android.content.SharedPreferences;
import android.os.Bundle;
import com.thinkyeah.common.ui.thinklist.a;
import com.thinkyeah.common.ui.view.TitleBar;
import f.g;
import java.util.ArrayList;
import jl.d;

public class AntivirusDeveloperActivity extends v7.a<hl.b> {
    public static final int n = 0;
    public final a l = new a();
    public final g m = new g(this, 4);

    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) {
            SharedPreferences.Editor edit;
            ?? r42 = AntivirusDeveloperActivity.this;
            if (i == 2) {
                SharedPreferences sharedPreferences = r42.getSharedPreferences("virus_scan", 0);
                edit = sharedPreferences != null ? sharedPreferences.edit() : null;
                if (edit != null) {
                    edit.putBoolean("should_show_procedure_toast", z10);
                    edit.apply();
                }
                r42.X2();
                return;
            }
            if (i == 3) {
                SharedPreferences sharedPreferences2 = r42.getSharedPreferences("virus_scan", 0);
                edit = sharedPreferences2 != null ? sharedPreferences2.edit() : null;
                if (edit != null) {
                    edit.putBoolean("should_toast_server_corrupted", z10);
                    edit.apply();
                }
                r42.X2();
            }
        }
    }

    public final void X2() {
        ArrayList arrayList = new ArrayList();
        SharedPreferences sharedPreferences = getSharedPreferences("virus_scan", 0);
        com.thinkyeah.common.ui.thinklist.a aVar = new com.thinkyeah.common.ui.thinklist.a("Show Scan Procedure Toast", this, sharedPreferences == null ? false : sharedPreferences.getBoolean("should_show_procedure_toast", false), 2);
        a aVar2 = this.l;
        aVar.setToggleButtonClickListener(aVar2);
        arrayList.add(aVar);
        d dVar = new d(this, 1, "Clean DB");
        dVar.setThinkItemClickListener(this.m);
        arrayList.add(dVar);
        SharedPreferences sharedPreferences2 = getSharedPreferences("virus_scan", 0);
        com.thinkyeah.common.ui.thinklist.a aVar3 = new com.thinkyeah.common.ui.thinklist.a("Toast when server corrupted", this, sharedPreferences2 != null ? sharedPreferences2.getBoolean("should_toast_server_corrupted", false) : false, 3);
        aVar3.setToggleButtonClickListener(aVar2);
        arrayList.add(aVar3);
        findViewById(2131363202).setAdapter(new jl.b(arrayList));
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558524);
        TitleBar.a configure = findViewById(2131363196).getConfigure();
        configure.f("Antivirus");
        configure.g(new t4.a(this, 1));
        configure.a();
        X2();
    }
}