导航菜单

页面标题

页面副标题

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

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

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


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

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Parcelable;
import android.widget.Toast;
import com.fancyclean.boost.junkclean.ui.presenter.JunkCleanDeveloperPresenter;
import com.google.android.gms.ads.mediation.MediationConfiguration;
import com.thinkyeah.common.ui.dialog.ProgressDialogFragment;
import com.thinkyeah.common.ui.thinklist.a;
import com.thinkyeah.common.ui.view.TitleBar;
import d9.c;
import f.g;
import gl.d;
import java.util.ArrayList;
import jl.b;
import ml.o;
import vj.h;

@d(JunkCleanDeveloperPresenter.class)
public class JunkCleanDeveloperActivity extends v7.a<c> implements d9.d {
    public static final int n = 0;
    public final a l = new a();
    public final g m = new g(this, 14);

    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) {
            if (i != 1) {
                return;
            }
            SharedPreferences sharedPreferences = JunkCleanDeveloperActivity.this.getSharedPreferences("junk_clean", 0);
            SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
            if (edit == null) {
                return;
            }
            edit.putBoolean("show_junk_paths_enabled", z10);
            edit.apply();
        }
    }

    @Override
    public final void G2() {
        Toast.makeText((Context) this, (CharSequence) "Create junks complete.", 0).show();
    }

    public final void X2() {
        ArrayList arrayList = new ArrayList();
        h hVar = y7.a.a;
        SharedPreferences sharedPreferences = getSharedPreferences("junk_clean", 0);
        com.thinkyeah.common.ui.thinklist.a aVar = new com.thinkyeah.common.ui.thinklist.a("Show Junk Paths", this, sharedPreferences == null ? false : sharedPreferences.getBoolean("show_junk_paths_enabled", false), 1);
        aVar.setToggleButtonClickListener(this.l);
        arrayList.add(aVar);
        jl.d dVar = new jl.d(this, 2, "Create Junks");
        g gVar = this.m;
        dVar.setThinkItemClickListener(gVar);
        arrayList.add(dVar);
        jl.d dVar2 = new jl.d(this, 3, "Clean Empty Folders");
        dVar2.setThinkItemClickListener(gVar);
        arrayList.add(dVar2);
        jl.d dVar3 = new jl.d(this, 4, "Clear Cleaned Size Sum");
        SharedPreferences sharedPreferences2 = getSharedPreferences("main", 0);
        dVar3.setValue(o.a(1, sharedPreferences2 != null ? sharedPreferences2.getLong("saved_space_sum", 0L) : 0L));
        dVar3.setThinkItemClickListener(gVar);
        arrayList.add(dVar3);
        findViewById(2131363202).setAdapter(new b(arrayList));
    }

    @Override
    public final void b0(String str) {
        getApplicationContext();
        Parcelable parameter = new ProgressDialogFragment.Parameter();
        ((ProgressDialogFragment.Parameter) parameter).d = "Cleaning...";
        ((ProgressDialogFragment.Parameter) parameter).c = str;
        ProgressDialogFragment progressDialogFragment = new ProgressDialogFragment();
        Bundle bundle = new Bundle();
        bundle.putParcelable(MediationConfiguration.CUSTOM_EVENT_SERVER_PARAMETER_FIELD, parameter);
        progressDialogFragment.setArguments(bundle);
        progressDialogFragment.u = null;
        progressDialogFragment.show(getSupportFragmentManager(), "cleaning_empty_folders_progress_dialog");
    }

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

    @Override
    public final void w2(int i) {
        T2("cleaning_empty_folders_progress_dialog");
        Toast.makeText((Context) this, (CharSequence) (i + " empty folders cleaned!"), 1).show();
    }

    @Override
    public final Context getContext() {
        return this;
    }
}