导航菜单

页面标题

页面副标题

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

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

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


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

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.Html;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import com.fancyclean.boost.whatsappcleaner.ui.presenter.FileRecycleBinPresenter;
import com.google.android.gms.ads.mediation.MediationConfiguration;
import com.thinkyeah.common.ui.dialog.ProgressDialogFragment;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.ThinkRecyclerView;
import com.thinkyeah.common.ui.view.TitleBar;
import gl.d;
import java.util.List;
import kc.a;
import kl.f;
import vj.h;

@d(FileRecycleBinPresenter.class)
public class FileRecycleBinActivity extends v7.a<lc.a> implements lc.b {
    public static final int r = 0;
    public kc.a l;
    public ThinkRecyclerView m;
    public View n;
    public Button o;
    public Button p;
    public final a q = new a();

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

    public static class b extends c<FileRecycleBinActivity> {
        public static final int c = 0;

        @NonNull
        public final Dialog onCreateDialog(Bundle bundle) {
            c.a aVar = new c.a(getContext());
            aVar.g(2131886714);
            aVar.k = Html.fromHtml(getString(2131886660));
            aVar.d(2131886274, (DialogInterface.OnClickListener) null);
            aVar.e(2131886483, new t4.c(this, 8));
            return aVar.a();
        }
    }

    static {
        h.f(FileRecycleBinActivity.class);
    }

    public final void X2() {
        kc.a aVar = this.l;
        if (aVar == null) {
            this.o.setEnabled(false);
            this.p.setEnabled(false);
        } else {
            boolean z10 = !j4.b.G(aVar.m);
            this.o.setEnabled(z10);
            this.p.setEnabled(z10);
        }
    }

    @Override
    public final void f(List<ic.d> list) {
        kc.a aVar = new kc.a(list);
        this.l = aVar;
        aVar.n = this.q;
        this.m.setAdapter(aVar);
        this.l.c();
        this.n.setVisibility(j4.b.G(list) ? 0 : 8);
        X2();
        T2("delete_photos_progress_dialog");
        T2("restore_photos_progress_dialog");
    }

    @Override
    public final void g(int i, String str) {
        Context applicationContext = getApplicationContext();
        Parcelable parameter = new ProgressDialogFragment.Parameter();
        ((ProgressDialogFragment.Parameter) parameter).d = applicationContext.getString(2131887415);
        long j = i;
        ((ProgressDialogFragment.Parameter) parameter).f = j;
        if (j > 0) {
            ((ProgressDialogFragment.Parameter) parameter).i = false;
        }
        ((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(), "restore_photos_progress_dialog");
    }

    @Override
    public final void h() {
        T2("restore_photos_progress_dialog");
    }

    @Override
    public final void i(int i, String str) {
        Context applicationContext = getApplicationContext();
        Parcelable parameter = new ProgressDialogFragment.Parameter();
        ((ProgressDialogFragment.Parameter) parameter).d = applicationContext.getString(2131886489);
        long j = i;
        ((ProgressDialogFragment.Parameter) parameter).f = j;
        if (j > 0) {
            ((ProgressDialogFragment.Parameter) parameter).i = false;
        }
        ((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(), "delete_photos_progress_dialog");
    }

    @Override
    public final void k(int i) {
        ProgressDialogFragment findFragmentByTag = getSupportFragmentManager().findFragmentByTag("delete_photos_progress_dialog");
        if (findFragmentByTag != null) {
            findFragmentByTag.s.e = i;
            findFragmentByTag.t0();
        }
    }

    @Override
    public final void o(int i) {
        ProgressDialogFragment findFragmentByTag = getSupportFragmentManager().findFragmentByTag("restore_photos_progress_dialog");
        if (findFragmentByTag != null) {
            findFragmentByTag.s.e = i;
            findFragmentByTag.t0();
        }
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558505);
        TitleBar.a configure = findViewById(2131363196).getConfigure();
        configure.e(2131887937);
        configure.g(new jc.b(this, 0));
        configure.a();
        ThinkRecyclerView findViewById = findViewById(2131363231);
        this.m = findViewById;
        findViewById.setHasFixedSize(true);
        this.m.setItemAnimator(new f());
        GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 3);
        gridLayoutManager.setSpanSizeLookup(new jc.c(this, gridLayoutManager));
        this.m.setLayoutManager(gridLayoutManager);
        ((TextView) findViewById(2131363570)).setText(2131887258);
        ((TextView) findViewById(2131363693)).setText(2131887797);
        this.n = findViewById(2131362965);
        this.o = (Button) findViewById(2131362002);
        this.p = (Button) findViewById(2131362023);
        this.o.setOnClickListener(new jc.a(this, 0));
        this.p.setOnClickListener(new t4.b(this, 28));
        X2();
        ((lc.a) W2()).h();
    }

    @Override
    public final void p() {
        T2("delete_photos_progress_dialog");
    }

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