正在查看: Fancy Optimizer v4.6.3 应用的 SimilarPhotoMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 SimilarPhotoMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.similarphoto.ui.activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Parcelable;
import android.os.SystemClock;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import c.p;
import com.adtiny.core.d;
import com.facebook.internal.i0;
import com.fancyclean.boost.common.ui.view.ScanAnimationView;
import com.fancyclean.boost.similarphoto.ui.presenter.SimilarPhotoMainPresenter;
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.ArrayList;
import java.util.List;
import ml.o;
import wb.n;
import xb.b;
@d(SimilarPhotoMainPresenter.class)
public class SimilarPhotoMainActivity extends v7.b<yb.c> implements yb.d {
public static final int G = 0;
public CheckBox A;
public Button B;
public View C;
public long E;
public xb.b u;
public View v;
public ScanAnimationView w;
public TextView f220x;
public ProgressBar f221y;
public View f222z;
public final a D = new a();
public final b F = new b();
public class a implements b.e {
public a() {
}
}
public class b implements Runnable {
public b() {
}
@Override
public final void run() {
SimilarPhotoMainActivity.this.f220x.setVisibility(0);
}
}
public static class c extends com.thinkyeah.common.ui.dialog.c<SimilarPhotoMainActivity> {
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.setText(getString(2131886589, new Object[]{Integer.valueOf(i)}));
textView2.setText(getString(2131886601, new Object[]{o.a(1, j)}));
c.a aVar = new c.a(getContext());
aVar.g(2131886713);
aVar.x = inflate;
aVar.e(2131886305, new c6.a(3, this, arguments));
aVar.d(2131886274, (DialogInterface.OnClickListener) null);
return aVar.a();
}
}
@Override
public final void B() {
this.u.notifyDataSetChanged();
}
@Override
public final void Q2(int i, int i10) {
xb.b bVar = this.u;
int i11 = (i10 * 100) / i;
bVar.getClass();
b.a aVar = new b.a();
aVar.a = true;
aVar.b = i11;
bVar.n(aVar);
}
@Override
public final void X1(List<vb.b> list) {
this.f221y.setVisibility(8);
xb.b bVar = this.u;
bVar.o(list);
if (!bVar.n) {
bVar.p();
}
this.u.notifyDataSetChanged();
}
@Override
@Nullable
public final String X2() {
return null;
}
@Override
public final int d3() {
return 2131887951;
}
@Override
public final void e1() {
this.v.setVisibility(0);
this.w.c();
this.f220x.postDelayed(this.F, 8000L);
this.f222z.setVisibility(8);
this.E = SystemClock.elapsedRealtime();
xb.b bVar = this.u;
bVar.getClass();
b.a aVar = new b.a();
aVar.a = true;
aVar.b = 0;
bVar.n(aVar);
bVar.n = true;
}
@Override
public final void e3() {
((yb.c) W2()).J0();
}
public final void finish() {
com.adtiny.core.d.b().h(this, "I_TR_SimilarPhotos", (d.l) null);
super/*android.app.Activity*/.finish();
}
@Override
public final void h1(int i) {
ProgressDialogFragment findFragmentByTag = getSupportFragmentManager().findFragmentByTag("clean_photos_progress_dialog");
if (findFragmentByTag != null) {
findFragmentByTag.s.e = i;
findFragmentByTag.t0();
}
}
@Override
public final void l1(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(), "clean_photos_progress_dialog");
}
@Override
public final void m2(long j, List list) {
this.w.d();
this.f220x.removeCallbacks(this.F);
this.v.setVisibility(8);
this.f221y.setVisibility(8);
if (list.isEmpty()) {
this.u.s(j);
this.u.notifyDataSetChanged();
this.C.setVisibility(0);
} else {
xb.b bVar = this.u;
bVar.o(list);
if (!bVar.n) {
bVar.p();
}
this.u.s(j);
this.u.r();
this.u.notifyDataSetChanged();
this.f222z.setVisibility(0);
this.A.setChecked(true);
}
if (com.google.ads.mediation.unity.b.y(this)) {
Toast.makeText((Context) this, (CharSequence) ("Find Complete, " + ((SystemClock.elapsedRealtime() - this.E) / 1000) + "s"), 1).show();
}
}
@Override
public final void onActivityResult(int i, int i10, Intent intent) {
if (i != 27) {
super.onActivityResult(i, i10, intent);
} else {
this.u.notifyDataSetChanged();
this.u.p();
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558523);
ArrayList arrayList = new ArrayList();
arrayList.add(new TitleBar.i(new TitleBar.b(2131231512), new TitleBar.e(2131887395), new p(this, 20)));
TitleBar.a configure = findViewById(2131363196).getConfigure();
configure.e(2131887951);
configure.a.h = arrayList;
configure.g(new t4.a(this, 25));
configure.a();
View findViewById = findViewById(2131362976);
this.v = findViewById;
this.w = (ScanAnimationView) findViewById.findViewById(2131362918);
this.f220x = (TextView) this.v.findViewById(2131363639);
ThinkRecyclerView findViewById2 = findViewById(2131363020);
findViewById2.setHasFixedSize(true);
findViewById2.setItemAnimator((RecyclerView.ItemAnimator) null);
GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 3);
gridLayoutManager.setSpanSizeLookup(new n(this, gridLayoutManager));
findViewById2.setLayoutManager(gridLayoutManager);
xb.b bVar = new xb.b(this);
this.u = bVar;
bVar.m = this.D;
findViewById2.setAdapter(bVar);
View findViewById3 = findViewById(2131363777);
this.C = findViewById3;
findViewById3.findViewById(2131363541).setOnClickListener(new i0(this, 29));
ProgressBar progressBar = (ProgressBar) findViewById(2131362114);
this.f221y = progressBar;
progressBar.setIndeterminate(true);
View findViewById4 = findViewById(2131363755);
this.f222z = findViewById4;
this.A = (CheckBox) findViewById4.findViewById(2131362046);
this.f222z.findViewById(2131363799).setOnClickListener(new t4.b(this, 27));
Button button = (Button) this.f222z.findViewById(2131361993);
this.B = button;
button.setOnClickListener(new t4.d(this, 28));
if (bundle == null) {
c3();
}
long currentTimeMillis = System.currentTimeMillis();
SharedPreferences sharedPreferences = getSharedPreferences("similar_photo", 0);
SharedPreferences.Editor edit = sharedPreferences != null ? sharedPreferences.edit() : null;
if (edit == null) {
return;
}
edit.putLong("last_entered_similar_photos_time", currentTimeMillis);
edit.apply();
}
@Override
public final void p2() {
this.w.d();
this.f220x.removeCallbacks(this.F);
this.v.setVisibility(8);
}
@Override
public final void v0(ArrayList arrayList, int i, long j) {
T2("clean_photos_progress_dialog");
if (arrayList.isEmpty()) {
xb.b bVar = this.u;
bVar.o((List) null);
if (!bVar.n) {
bVar.p();
}
this.u.s(j);
this.u.notifyDataSetChanged();
this.C.setVisibility(0);
this.f222z.setVisibility(8);
} else {
xb.b bVar2 = this.u;
bVar2.o(arrayList);
if (!bVar2.n) {
bVar2.p();
}
this.u.s(j);
this.u.notifyDataSetChanged();
this.f222z.setVisibility(0);
}
Toast.makeText((Context) this, (CharSequence) getString(2131886507, Integer.valueOf(i)), 0).show();
}
@Override
public final void Y2() {
}
@Override
public final void f3() {
}
@Override
public final Context getContext() {
return this;
}
}