正在查看: 万能钥匙 v1.1.23 应用的 ImagePreviewDelActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 ImagePreviewDelActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.wifitutu.widget.imagepicker.ui;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import androidx.appcompat.app.b;
import androidx.viewpager.widget.ViewPager;
import c70.c;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import x60.d;
import x60.e;
import x60.f;
import x60.h;
public class ImagePreviewDelActivity extends ImagePreviewBaseActivity implements View.OnClickListener {
public static ChangeQuickRedirect changeQuickRedirect;
public class a extends ViewPager.l {
public static ChangeQuickRedirect changeQuickRedirect;
public a() {
}
public void onPageSelected(int i) {
if (PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 37142, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
?? r0 = ImagePreviewDelActivity.this;
r0.R = i;
r0.S.setText(r0.getString(h.ip_preview_image_count, Integer.valueOf(i + 1), Integer.valueOf(ImagePreviewDelActivity.this.Q.size())));
}
}
public class b implements c.a {
public static ChangeQuickRedirect changeQuickRedirect;
public b() {
}
@Override
public void a(int i, int i2) {
Object[] objArr = {new Integer(i), new Integer(i2)};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Integer.TYPE;
if (PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 37143, new Class[]{cls, cls}, Void.TYPE).isSupported) {
return;
}
ImagePreviewDelActivity.this.V.setPadding(0, 0, i2, 0);
}
@Override
public void b(int i) {
if (PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 37144, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
ImagePreviewDelActivity.this.V.setPadding(0, 0, 0, 0);
}
}
public class c implements DialogInterface.OnClickListener {
public static ChangeQuickRedirect changeQuickRedirect;
public c() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
if (PatchProxy.proxy(new Object[]{dialogInterface, new Integer(i)}, this, changeQuickRedirect, false, 37145, new Class[]{DialogInterface.class, Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
ImagePreviewDelActivity imagePreviewDelActivity = ImagePreviewDelActivity.this;
imagePreviewDelActivity.Q.remove(imagePreviewDelActivity.R);
if (ImagePreviewDelActivity.this.Q.size() <= 0) {
ImagePreviewDelActivity.this.onBackPressed();
return;
}
ImagePreviewDelActivity imagePreviewDelActivity2 = ImagePreviewDelActivity.this;
imagePreviewDelActivity2.X.a(imagePreviewDelActivity2.Q);
ImagePreviewDelActivity.this.X.notifyDataSetChanged();
?? r0 = ImagePreviewDelActivity.this;
r0.S.setText(r0.getString(h.ip_preview_image_count, Integer.valueOf(r0.R + 1), Integer.valueOf(ImagePreviewDelActivity.this.Q.size())));
}
}
@Override
public void M() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 37141, new Class[0], Void.TYPE).isSupported) {
return;
}
if (this.V.getVisibility() == 0) {
this.V.setAnimation(AnimationUtils.loadAnimation(this, d.top_out));
this.V.setVisibility(8);
this.O.c(0);
} else {
this.V.setAnimation(AnimationUtils.loadAnimation(this, d.top_in));
this.V.setVisibility(0);
this.O.c(e.ip_color_primary_dark);
}
}
public final void N() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 37139, new Class[0], Void.TYPE).isSupported) {
return;
}
b.a aVar = new b.a(this);
aVar.m(h.ip_str_tips);
aVar.e(h.ip_need_to_del);
aVar.setNegativeButton(h.ip_cancel, (DialogInterface.OnClickListener) null);
aVar.setPositiveButton(h.ip_str_confirm, new c());
aVar.n();
}
public void onBackPressed() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 37140, new Class[0], Void.TYPE).isSupported) {
return;
}
Intent intent = new Intent();
intent.putExtra("extra_image_items", this.Q);
setResult(1005, intent);
finish();
super/*androidx.activity.ComponentActivity*/.onBackPressed();
}
@Override
public void onClick(View view) {
if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 37138, new Class[]{View.class}, Void.TYPE).isSupported) {
return;
}
int id = view.getId();
if (id == f.btn_del) {
N();
} else if (id == f.btn_back) {
onBackPressed();
}
}
@Override
public void onCreate(Bundle bundle) {
if (PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 37137, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
return;
}
super.onCreate(bundle);
ImageView imageView = (ImageView) findViewById(f.btn_del);
imageView.setOnClickListener(this);
imageView.setVisibility(0);
this.V.findViewById(f.btn_back).setOnClickListener(this);
this.S.setText(getString(h.ip_preview_image_count, Integer.valueOf(this.R + 1), Integer.valueOf(this.Q.size())));
this.W.addOnPageChangeListener(new a());
c70.c.c(this, 2).a(new b());
}
}