导航菜单

页面标题

页面副标题

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

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

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


package com.fancyclean.boost.ads;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Process;
import com.facebook.internal.i0;
import com.thinkyeah.common.ui.thinklist.a;
import com.thinkyeah.common.ui.view.TitleBar;
import hl.b;
import java.util.ArrayList;
import vj.h;
import wk.d;

public class AdsDebugActivity extends d<b> {
    public static final int n = 0;
    public final a l = new a();
    public final androidx.core.view.inputmethod.b m = new androidx.core.view.inputmethod.b(this, 9);

    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;
            d dVar = AdsDebugActivity.this;
            if (i == 1) {
                SharedPreferences sharedPreferences = dVar.getSharedPreferences("ad_config", 0);
                edit = sharedPreferences != null ? sharedPreferences.edit() : null;
                if (edit == null) {
                    return;
                }
                edit.putBoolean("is_ads_disabled", z10);
                edit.apply();
                return;
            }
            if (i == 2) {
                SharedPreferences sharedPreferences2 = dVar.getSharedPreferences("ad_config", 0);
                SharedPreferences.Editor edit2 = sharedPreferences2 == null ? null : sharedPreferences2.edit();
                if (edit2 != null) {
                    edit2.putBoolean("is_test_ads_enabled", z10);
                    edit2.apply();
                }
                SharedPreferences sharedPreferences3 = dVar.getSharedPreferences("ad_config", 0);
                edit = sharedPreferences3 != null ? sharedPreferences3.edit() : null;
                if (edit != null) {
                    edit.commit();
                }
                Process.killProcess(Process.myPid());
                return;
            }
            if (i == 11) {
                SharedPreferences sharedPreferences4 = dVar.getSharedPreferences("ad_config", 0);
                edit = sharedPreferences4 != null ? sharedPreferences4.edit() : null;
                if (edit == null) {
                    return;
                }
                edit.putBoolean("is_always_show_ads_enabled", z10);
                edit.apply();
                return;
            }
            if (i != 13) {
                return;
            }
            SharedPreferences sharedPreferences5 = dVar.getSharedPreferences("ad_config", 0);
            edit = sharedPreferences5 != null ? sharedPreferences5.edit() : null;
            if (edit == null) {
                return;
            }
            edit.putBoolean("toast_when_show_ad_enabled", z10);
            edit.apply();
        }
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558432);
        TitleBar.a configure = findViewById(2131363196).getConfigure();
        configure.f("Ads Debug");
        configure.g(new i0(this, 1));
        configure.a();
        ArrayList arrayList = new ArrayList();
        jl.d dVar = new jl.d(this, 1, "AdTiny");
        dVar.setValue("1.2.0");
        arrayList.add(dVar);
        jl.d dVar2 = new jl.d(this, 0, "Mediation");
        dVar2.setValue(com.adtiny.core.d.b().c instanceof f.b ? "Max" : "Admob");
        arrayList.add(dVar2);
        SharedPreferences sharedPreferences = getSharedPreferences("ad_config", 0);
        com.thinkyeah.common.ui.thinklist.a aVar = new com.thinkyeah.common.ui.thinklist.a("Disable Ads", this, sharedPreferences == null ? false : sharedPreferences.getBoolean("is_ads_disabled", false), 1);
        a aVar2 = this.l;
        aVar.setToggleButtonClickListener(aVar2);
        arrayList.add(aVar);
        h hVar = y7.a.a;
        SharedPreferences sharedPreferences2 = getSharedPreferences("ad_config", 0);
        com.thinkyeah.common.ui.thinklist.a aVar3 = new com.thinkyeah.common.ui.thinklist.a("Use Test Ads", this, sharedPreferences2 == null ? false : sharedPreferences2.getBoolean("is_test_ads_enabled", false), 2);
        aVar3.setToggleButtonClickListener(aVar2);
        arrayList.add(aVar3);
        SharedPreferences sharedPreferences3 = getSharedPreferences("ad_config", 0);
        com.thinkyeah.common.ui.thinklist.a aVar4 = new com.thinkyeah.common.ui.thinklist.a("Always Show Ads", this, sharedPreferences3 == null ? false : sharedPreferences3.getBoolean("is_always_show_ads_enabled", false), 11);
        aVar4.setToggleButtonClickListener(aVar2);
        arrayList.add(aVar4);
        SharedPreferences sharedPreferences4 = getSharedPreferences("ad_config", 0);
        com.thinkyeah.common.ui.thinklist.a aVar5 = new com.thinkyeah.common.ui.thinklist.a("Toast Info when Ad Shown", this, sharedPreferences4 != null ? sharedPreferences4.getBoolean("toast_when_show_ad_enabled", false) : false, 13);
        aVar5.setToggleButtonClickListener(aVar2);
        arrayList.add(aVar5);
        jl.d dVar3 = new jl.d(this, 14, "Mediation Debug Console");
        dVar3.setThinkItemClickListener(this.m);
        arrayList.add(dVar3);
        findViewById(2131363210).setAdapter(new jl.b(arrayList));
    }
}