正在查看: Fancy Optimizer v4.6.3 应用的 PhotoRecycleBinActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 PhotoRecycleBinActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.similarphoto.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 androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import com.fancyclean.boost.similarphoto.ui.presenter.PhotoRecycleBinPresenter;
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 kl.f;
import t4.e;
import xb.a;
@d(PhotoRecycleBinPresenter.class)
public class PhotoRecycleBinActivity extends v7.a<yb.a> implements yb.b {
public static final int r = 0;
public xb.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.InterfaceC0294a {
public a() {
}
}
public static class b extends c<PhotoRecycleBinActivity> {
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 e(this, 9));
return aVar.a();
}
}
public final void X2() {
xb.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<vb.c> list) {
xb.a aVar = new xb.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 ib.b(this, 2));
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 wb.a(this, gridLayoutManager));
this.m.setLayoutManager(gridLayoutManager);
this.n = findViewById(2131362965);
this.o = (Button) findViewById(2131362002);
this.p = (Button) findViewById(2131362023);
this.o.setOnClickListener(new com.fancyclean.boost.similarphoto.ui.activity.a(this));
this.p.setOnClickListener(new t4.d(this, 27));
X2();
((yb.a) W2()).h();
}
@Override
public final void p() {
T2("delete_photos_progress_dialog");
}
@Override
public final Context getContext() {
return this;
}
}