正在查看: Fancy Optimizer v4.6.3 应用的 WhatsAppCleanerImageViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 WhatsAppCleanerImageViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.whatsappcleaner.ui.activity;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.os.Bundle;
import android.util.Pair;
import android.util.Property;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import androidx.viewpager.widget.PagerAdapter;
import com.bumptech.glide.i;
import com.fancyclean.boost.whatsappcleaner.model.FileInfo;
import com.github.chrisbanes.photoview.PhotoView;
import com.thinkyeah.common.ui.view.TitleBar;
import com.thinkyeah.common.ui.view.ViewPagerFixed;
import java.util.ArrayList;
import java.util.List;
import jc.h;
import jc.j;
import jc.k;
import jc.l;
import jc.m;
import k7.f;
import k7.i;
public class WhatsAppCleanerImageViewActivity extends v7.a {
public static final int w = 0;
public int l;
public FileInfo o;
public ic.a p;
public TitleBar q;
public ImageView r;
public TextView s;
public ViewGroup t;
public View u;
public boolean m = false;
public boolean n = true;
public boolean v = false;
public static class b extends BaseAdapter {
public final List<Pair<String, String>> c;
public final int d;
public final LayoutInflater e;
public static class a {
public TextView a;
public TextView b;
}
public b(WhatsAppCleanerImageViewActivity whatsAppCleanerImageViewActivity, ArrayList arrayList) {
Context applicationContext = whatsAppCleanerImageViewActivity.getApplicationContext();
this.c = arrayList;
this.d = 2131558707;
this.e = (LayoutInflater) applicationContext.getSystemService("layout_inflater");
}
@Override
public final int getCount() {
List<Pair<String, String>> list = this.c;
if (list == null) {
return 0;
}
return list.size();
}
@Override
public final Object getItem(int i) {
List<Pair<String, String>> list = this.c;
if (list == null) {
return null;
}
return list.get(i);
}
@Override
public final long getItemId(int i) {
return 0L;
}
@Override
public final View getView(int i, View view, ViewGroup viewGroup) {
a aVar;
if (view != null) {
aVar = (a) view.getTag();
} else {
view = this.e.inflate(this.d, (ViewGroup) null);
aVar = new a();
aVar.a = (TextView) view.findViewById(2131363595);
aVar.b = (TextView) view.findViewById(2131363715);
view.setTag(aVar);
}
Pair<String, String> pair = this.c.get(i);
aVar.a.setText((CharSequence) pair.first);
aVar.b.setText((CharSequence) pair.second);
return view;
}
}
public static class c extends PagerAdapter {
public b g;
public final List<FileInfo> h;
public final a i = new a();
public class a implements View.OnClickListener {
public a() {
}
@Override
public final void onClick(View view) {
b bVar = c.this.g;
if (bVar != null) {
WhatsAppCleanerImageViewActivity whatsAppCleanerImageViewActivity = ((com.fancyclean.boost.whatsappcleaner.ui.activity.a) bVar).a;
if (whatsAppCleanerImageViewActivity.m) {
return;
}
whatsAppCleanerImageViewActivity.m = true;
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.setDuration(300L);
animatorSet.setInterpolator(new AccelerateDecelerateInterpolator());
if (whatsAppCleanerImageViewActivity.n) {
animatorSet.playTogether(ObjectAnimator.ofFloat(whatsAppCleanerImageViewActivity.q, (Property<TitleBar, Float>) View.TRANSLATION_Y, 0.0f, -r2.getHeight()), ObjectAnimator.ofFloat(whatsAppCleanerImageViewActivity.t, (Property<ViewGroup, Float>) View.TRANSLATION_Y, 0.0f, r6.getHeight()));
animatorSet.addListener(new l(whatsAppCleanerImageViewActivity));
} else {
animatorSet.playTogether(ObjectAnimator.ofFloat(whatsAppCleanerImageViewActivity.q, (Property<TitleBar, Float>) View.TRANSLATION_Y, 0.0f), ObjectAnimator.ofFloat(whatsAppCleanerImageViewActivity.t, (Property<ViewGroup, Float>) View.TRANSLATION_Y, 0.0f));
animatorSet.addListener(new m(whatsAppCleanerImageViewActivity));
}
animatorSet.start();
}
}
}
public interface b {
}
public c(List<FileInfo> list) {
this.h = list;
}
public final void destroyItem(@NonNull ViewGroup viewGroup, int i, @NonNull Object obj) {
i b10 = f.b(viewGroup.getContext());
b10.getClass();
b10.l(new i.b((PhotoView) obj));
viewGroup.removeView((View) obj);
}
public final int getCount() {
return this.h.size();
}
@NonNull
public final Object instantiateItem(@NonNull ViewGroup viewGroup, int i) {
PhotoView photoView = new PhotoView(viewGroup.getContext(), null);
photoView.setOnClickListener(this.i);
viewGroup.addView(photoView, -1, -1);
f.b(viewGroup.getContext()).v(this.h.get(i).h).D(photoView);
return photoView;
}
public final boolean isViewFromObject(@NonNull View view, @NonNull Object obj) {
return view == obj;
}
}
public final void X2() {
if (this.u == null || this.v) {
return;
}
this.v = true;
Animation loadAnimation = AnimationUtils.loadAnimation(this, 2130772000);
loadAnimation.setAnimationListener(new a());
this.u.startAnimation(loadAnimation);
}
public final void Y2() {
if (this.p.e.contains(this.o)) {
this.r.setImageResource(2131231277);
} else {
this.r.setImageResource(2131231294);
}
this.s.setText(getString(2131886591, Integer.valueOf(this.p.e.size())));
}
public final void onBackPressed() {
if (this.u != null) {
X2();
} else {
super/*androidx.activity.ComponentActivity*/.onBackPressed();
}
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
getWindow().setFlags(1024, 1024);
setContentView(2131558522);
this.p = (ic.a) ml.f.b().a("whatsapp_image_view://photo_group");
int intExtra = getIntent().getIntExtra("init_position", 0);
this.l = intExtra;
this.o = this.p.d.get(intExtra);
ArrayList arrayList = new ArrayList(2);
arrayList.add(new TitleBar.i(new TitleBar.b(2131231445), new TitleBar.e(2131886613), new h(this)));
TitleBar findViewById = findViewById(2131363196);
this.q = findViewById;
TitleBar.a configure = findViewById.getConfigure();
int i = this.l;
configure.f((i + 1) + " / " + this.p.d.size());
TitleBar titleBar = configure.a;
titleBar.h = arrayList;
configure.g(new jc.i(this));
titleBar.j = ContextCompat.getColor(this, 2131099723);
configure.a();
this.t = (ViewGroup) findViewById(2131362983);
c cVar = new c(this.p.d);
cVar.g = new com.fancyclean.boost.whatsappcleaner.ui.activity.a(this);
ViewPagerFixed findViewById2 = findViewById(2131363870);
findViewById2.setAdapter(cVar);
findViewById2.setCurrentItem(this.l);
findViewById2.addOnPageChangeListener(new j(this));
this.r = (ImageView) findViewById(2131362504);
this.s = (TextView) findViewById(2131363556);
this.r.setOnClickListener(new k(this));
Y2();
}
public class a implements Animation.AnimationListener {
public a() {
}
@Override
public final void onAnimationEnd(Animation animation) {
WhatsAppCleanerImageViewActivity whatsAppCleanerImageViewActivity = WhatsAppCleanerImageViewActivity.this;
((ViewGroup) whatsAppCleanerImageViewActivity.u.getParent()).removeView(whatsAppCleanerImageViewActivity.u);
whatsAppCleanerImageViewActivity.u = null;
whatsAppCleanerImageViewActivity.v = false;
}
@Override
public final void onAnimationRepeat(Animation animation) {
}
@Override
public final void onAnimationStart(Animation animation) {
}
}
}