what-the-bank/sources/o/eSW.java

253 lines
9.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Intent;
import android.provider.MediaStore;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment;
import java.lang.ref.WeakReference;
/* loaded from: classes5.dex */
public final class eSW {
private static final String[] d = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"};
private static final String[] a = {"android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES"};
private static final String[] c = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"};
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
public static void d(BaseTakePhotoFragment baseTakePhotoFragment) {
FragmentActivity requireActivity = baseTakePhotoFragment.requireActivity();
String[] strArr = d;
if (!C15581guh.b(requireActivity, strArr)) {
if (C15581guh.e(baseTakePhotoFragment, strArr)) {
baseTakePhotoFragment.d(new RVV(baseTakePhotoFragment, (byte) 0));
return;
} else {
baseTakePhotoFragment.requestPermissions(strArr, 7);
return;
}
}
baseTakePhotoFragment.w();
}
public static void b(BaseTakePhotoFragment baseTakePhotoFragment) {
FragmentActivity requireActivity = baseTakePhotoFragment.requireActivity();
String[] strArr = a;
if (!C15581guh.b(requireActivity, strArr)) {
if (!C15581guh.e(baseTakePhotoFragment, strArr)) {
baseTakePhotoFragment.requestPermissions(strArr, 8);
return;
} else {
baseTakePhotoFragment.d(new Sts(baseTakePhotoFragment, (byte) 0));
return;
}
}
baseTakePhotoFragment.w();
}
public static void a(BaseTakePhotoFragment baseTakePhotoFragment) {
FragmentActivity requireActivity = baseTakePhotoFragment.requireActivity();
String[] strArr = c;
if (!C15581guh.b(requireActivity, strArr)) {
if (C15581guh.e(baseTakePhotoFragment, strArr)) {
baseTakePhotoFragment.j(new LWm(baseTakePhotoFragment, (byte) 0));
return;
} else {
baseTakePhotoFragment.requestPermissions(strArr, 9);
return;
}
}
baseTakePhotoFragment.startActivityForResult(new Intent("android.intent.action.PICK", MediaStore.Images.Media.EXTERNAL_CONTENT_URI), 10005);
}
public static void c(BaseTakePhotoFragment baseTakePhotoFragment) {
FragmentActivity requireActivity = baseTakePhotoFragment.requireActivity();
String[] strArr = b;
if (!C15581guh.b(requireActivity, strArr)) {
if (!C15581guh.e(baseTakePhotoFragment, strArr)) {
baseTakePhotoFragment.requestPermissions(strArr, 10);
return;
} else {
baseTakePhotoFragment.j(new HBt(baseTakePhotoFragment, (byte) 0));
return;
}
}
baseTakePhotoFragment.startActivityForResult(new Intent("android.intent.action.PICK", MediaStore.Images.Media.EXTERNAL_CONTENT_URI), 10005);
}
public static void b(BaseTakePhotoFragment baseTakePhotoFragment, int i, int[] iArr) {
switch (i) {
case 7:
if (!C15581guh.d(iArr)) {
if (!C15581guh.e(baseTakePhotoFragment, d)) {
BaseTakePhotoFragment.C();
return;
} else {
BaseTakePhotoFragment.A();
return;
}
}
baseTakePhotoFragment.w();
return;
case 8:
if (!C15581guh.d(iArr)) {
if (!C15581guh.e(baseTakePhotoFragment, a)) {
BaseTakePhotoFragment.z();
return;
} else {
BaseTakePhotoFragment.D();
return;
}
}
baseTakePhotoFragment.w();
return;
case 9:
if (!C15581guh.d(iArr)) {
if (!C15581guh.e(baseTakePhotoFragment, c)) {
BaseTakePhotoFragment.B();
return;
} else {
BaseTakePhotoFragment.F();
return;
}
}
baseTakePhotoFragment.startActivityForResult(new Intent("android.intent.action.PICK", MediaStore.Images.Media.EXTERNAL_CONTENT_URI), 10005);
return;
case 10:
if (!C15581guh.d(iArr)) {
if (!C15581guh.e(baseTakePhotoFragment, b)) {
BaseTakePhotoFragment.G();
return;
} else {
BaseTakePhotoFragment.I();
return;
}
}
baseTakePhotoFragment.startActivityForResult(new Intent("android.intent.action.PICK", MediaStore.Images.Media.EXTERNAL_CONTENT_URI), 10005);
return;
default:
return;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public static final class RVV implements InterfaceC15577gud {
private final WeakReference<BaseTakePhotoFragment> b;
private RVV(BaseTakePhotoFragment baseTakePhotoFragment) {
this.b = new WeakReference<>(baseTakePhotoFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
BaseTakePhotoFragment baseTakePhotoFragment = this.b.get();
if (baseTakePhotoFragment == null) {
return;
}
baseTakePhotoFragment.requestPermissions(eSW.d, 7);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.b.get() == null) {
return;
}
BaseTakePhotoFragment.A();
}
/* synthetic */ RVV(BaseTakePhotoFragment baseTakePhotoFragment, byte b) {
this(baseTakePhotoFragment);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public static final class Sts implements InterfaceC15577gud {
private final WeakReference<BaseTakePhotoFragment> d;
private Sts(BaseTakePhotoFragment baseTakePhotoFragment) {
this.d = new WeakReference<>(baseTakePhotoFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
BaseTakePhotoFragment baseTakePhotoFragment = this.d.get();
if (baseTakePhotoFragment == null) {
return;
}
baseTakePhotoFragment.requestPermissions(eSW.a, 8);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.d.get() == null) {
return;
}
BaseTakePhotoFragment.D();
}
/* synthetic */ Sts(BaseTakePhotoFragment baseTakePhotoFragment, byte b) {
this(baseTakePhotoFragment);
}
}
/* loaded from: classes5.dex */
static final class LWm implements InterfaceC15577gud {
private final WeakReference<BaseTakePhotoFragment> d;
private LWm(BaseTakePhotoFragment baseTakePhotoFragment) {
this.d = new WeakReference<>(baseTakePhotoFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
BaseTakePhotoFragment baseTakePhotoFragment = this.d.get();
if (baseTakePhotoFragment == null) {
return;
}
baseTakePhotoFragment.requestPermissions(eSW.c, 9);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.d.get() == null) {
return;
}
BaseTakePhotoFragment.F();
}
/* synthetic */ LWm(BaseTakePhotoFragment baseTakePhotoFragment, byte b) {
this(baseTakePhotoFragment);
}
}
/* loaded from: classes5.dex */
static final class HBt implements InterfaceC15577gud {
private final WeakReference<BaseTakePhotoFragment> c;
private HBt(BaseTakePhotoFragment baseTakePhotoFragment) {
this.c = new WeakReference<>(baseTakePhotoFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
BaseTakePhotoFragment baseTakePhotoFragment = this.c.get();
if (baseTakePhotoFragment == null) {
return;
}
baseTakePhotoFragment.requestPermissions(eSW.b, 10);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.c.get() == null) {
return;
}
BaseTakePhotoFragment.I();
}
/* synthetic */ HBt(BaseTakePhotoFragment baseTakePhotoFragment, byte b) {
this(baseTakePhotoFragment);
}
}
}