导航菜单

页面标题

页面副标题

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

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

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


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

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.fancyclean.boost.whatsappcleaner.model.FileInfo;
import com.fancyclean.boost.whatsappcleaner.ui.presenter.WhatsAppCleanerJunkMessagePresenter;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.ThinkRecyclerView;
import com.thinkyeah.common.ui.view.TitleBar;
import java.util.ArrayList;
import java.util.List;
import kc.b;
import kc.d;
import kl.f;
import ml.o;
import t4.e;
import vj.h;

@gl.d(WhatsAppCleanerJunkMessagePresenter.class)
public class WhatsAppCleanerJunkMessageActivity extends v7.d<lc.c> implements lc.d {
    public static final h B = new h("WhatsAppCleanerJunkMessageActivity");
    public ic.b q;
    public ThinkRecyclerView r;
    public ProgressBar s;
    public View t;
    public kc.d v;
    public kc.b w;

    public Button f223x;

    public long f224y;
    public boolean u = false;

    public final a f225z = new a();
    public final b A = new b();

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

        public final void a(long j) {
            WhatsAppCleanerJunkMessageActivity.B.c("Selected " + j);
            ?? r02 = WhatsAppCleanerJunkMessageActivity.this;
            r02.f224y = j;
            if (j > 0) {
                r02.f223x.setEnabled(true);
                r02.f223x.setText(r02.getString(2131886253, o.a(1, j)));
            } else {
                r02.f223x.setText(2131886305);
                r02.f223x.setEnabled(false);
            }
        }
    }

    public class b implements d.c {
        public b() {
        }

        public final void a(long j) {
            WhatsAppCleanerJunkMessageActivity.B.c("Selected " + j);
            ?? r02 = WhatsAppCleanerJunkMessageActivity.this;
            r02.f224y = j;
            if (j > 0) {
                r02.f223x.setEnabled(true);
                r02.f223x.setText(r02.getString(2131886253, o.a(1, j)));
            } else {
                r02.f223x.setText(2131886305);
                r02.f223x.setEnabled(false);
            }
        }
    }

    public class c extends GridLayoutManager.SpanSizeLookup {
        public final GridLayoutManager a;

        public c(GridLayoutManager gridLayoutManager) {
            this.a = gridLayoutManager;
        }

        public final int getSpanSize(int r3) {
            throw new UnsupportedOperationException("Method not decompiled: com.fancyclean.boost.whatsappcleaner.ui.activity.WhatsAppCleanerJunkMessageActivity.c.getSpanSize(int):int");
        }
    }

    public static class d extends com.thinkyeah.common.ui.dialog.c<WhatsAppCleanerJunkMessageActivity> {
        public static final int c = 0;

        @NonNull
        public final Dialog onCreateDialog(Bundle bundle) {
            Bundle arguments = getArguments();
            int i = arguments.getInt("count");
            long j = arguments.getLong("size");
            View inflate = View.inflate(getContext(), 2131558591, null);
            TextView textView = (TextView) inflate.findViewById(2131363663);
            TextView textView2 = (TextView) inflate.findViewById(2131363705);
            TextView textView3 = (TextView) inflate.findViewById(2131363652);
            textView.setText(getString(2131886588, new Object[]{Integer.valueOf(i)}));
            textView2.setText(getString(2131886601, new Object[]{o.a(1, j)}));
            textView3.setText(2131886508);
            c.a aVar = new c.a(getContext());
            aVar.g(2131886713);
            aVar.x = inflate;
            aVar.e(2131886305, new e(this, 10));
            aVar.d(2131886274, (DialogInterface.OnClickListener) null);
            return aVar.a();
        }
    }

    @Override
    public final void H0(ArrayList arrayList) {
        B.c("==> showCleanComplete");
        if (this.u) {
            kc.b bVar = new kc.b(this, arrayList, this.q.c);
            this.w = bVar;
            bVar.o = this.f225z;
            this.r.setAdapter(bVar);
            this.r.b(this.t, this.w);
            this.w.c();
            this.w.notifyDataSetChanged();
            this.w.r();
            return;
        }
        kc.d dVar = new kc.d(arrayList, this.q.c);
        this.v = dVar;
        dVar.o = this.A;
        this.r.setAdapter(dVar);
        this.r.b(this.t, this.v);
        this.v.c();
        this.v.notifyDataSetChanged();
        this.v.r();
    }

    @Override
    @Nullable
    public final String X2() {
        return null;
    }

    @Override
    public final void c2(List<ic.a> list) {
        this.s.setVisibility(8);
        if (!this.u) {
            this.r.setLayoutManager(new LinearLayoutManager(this));
            kc.d dVar = new kc.d(list, this.q.c);
            this.v = dVar;
            dVar.o = this.A;
            this.r.setAdapter(dVar);
            this.r.b(this.t, this.v);
            this.r.setItemAnimator(new f());
            this.v.c();
            this.v.notifyDataSetChanged();
            return;
        }
        kc.b bVar = new kc.b(this, list, this.q.c);
        this.w = bVar;
        bVar.o = this.f225z;
        GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 3);
        gridLayoutManager.setSpanSizeLookup(new c(gridLayoutManager));
        this.r.setLayoutManager(gridLayoutManager);
        this.r.setAdapter(this.w);
        this.r.b(this.t, this.w);
        this.r.setItemAnimator(new f());
        this.w.c();
        this.w.notifyDataSetChanged();
    }

    public final void onActivityResult(int i, int i10, Intent intent) {
        if (i != 0) {
            super/*androidx.fragment.app.FragmentActivity*/.onActivityResult(i, i10, intent);
        } else {
            this.w.notifyDataSetChanged();
            this.w.r();
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558537);
        this.f224y = 0L;
        ic.b bVar = (ic.b) ml.f.b().a("wac://junk_item");
        this.q = bVar;
        if (bVar == null) {
            finish();
            return;
        }
        TitleBar.a configure = findViewById(2131363196).getConfigure();
        configure.e(fc.c.b(this.q.c));
        configure.g(new ib.b(this, 3));
        configure.a();
        this.s = (ProgressBar) findViewById(2131363818);
        this.t = findViewById(2131363777);
        TextView textView = (TextView) findViewById(2131363570);
        int i = this.q.c;
        boolean z10 = true;
        z10 = true;
        textView.setText(i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? getString(2131886570) : getString(2131886561) : getString(2131886559) : getString(2131886569) : getString(2131886562) : getString(2131886568));
        this.r = findViewById(2131363011);
        Button button = (Button) findViewById(2131361993);
        this.f223x = button;
        button.setText(2131886305);
        this.f223x.setEnabled(false);
        this.f223x.setOnClickListener(new jc.b(this, z10 ? 1 : 0));
        ic.b bVar2 = this.q;
        List<FileInfo> list = bVar2.a;
        int i10 = bVar2.c;
        if (i10 != 2 && i10 != 1) {
            z10 = false;
        }
        this.u = z10;
        ((lc.c) W2()).u0(list);
    }

    @Override
    public final void z2(String str) {
        B.c(android.support.v4.media.b.l("==> showGroupMessagesStart ", str));
        this.s.setVisibility(0);
    }

    @Override
    public final void Y2() {
    }

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