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

208 lines
7.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.transferandpay.FixedTransferSuccessFragment;
import java.lang.ref.WeakReference;
/* renamed from: o.fDv, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12669fDv {
private static InterfaceC15579guf a;
private static InterfaceC15579guf d;
private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] c = {"android.permission.READ_MEDIA_IMAGES"};
private static final String[] e = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] h = {"android.permission.READ_MEDIA_IMAGES"};
private static final String[] g = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] i = {"android.permission.READ_MEDIA_IMAGES"};
public static void e(FixedTransferSuccessFragment fixedTransferSuccessFragment) {
FragmentActivity requireActivity = fixedTransferSuccessFragment.requireActivity();
String[] strArr = e;
if (C15581guh.b(requireActivity, strArr)) {
fixedTransferSuccessFragment.h();
} else {
fixedTransferSuccessFragment.requestPermissions(strArr, 50);
}
}
public static void b(FixedTransferSuccessFragment fixedTransferSuccessFragment) {
FragmentActivity requireActivity = fixedTransferSuccessFragment.requireActivity();
String[] strArr = h;
if (!C15581guh.b(requireActivity, strArr)) {
fixedTransferSuccessFragment.requestPermissions(strArr, 51);
} else {
fixedTransferSuccessFragment.h();
}
}
public static void a(FixedTransferSuccessFragment fixedTransferSuccessFragment) {
FragmentActivity requireActivity = fixedTransferSuccessFragment.requireActivity();
String[] strArr = b;
if (C15581guh.b(requireActivity, strArr)) {
fixedTransferSuccessFragment.f();
} else {
fixedTransferSuccessFragment.requestPermissions(strArr, 48);
}
}
public static void c(FixedTransferSuccessFragment fixedTransferSuccessFragment) {
FragmentActivity requireActivity = fixedTransferSuccessFragment.requireActivity();
String[] strArr = c;
if (!C15581guh.b(requireActivity, strArr)) {
fixedTransferSuccessFragment.requestPermissions(strArr, 49);
} else {
fixedTransferSuccessFragment.f();
}
}
public static void a(FixedTransferSuccessFragment fixedTransferSuccessFragment, C1187Xm c1187Xm, boolean z) {
FragmentActivity requireActivity = fixedTransferSuccessFragment.requireActivity();
String[] strArr = g;
if (C15581guh.b(requireActivity, strArr)) {
fixedTransferSuccessFragment.b(c1187Xm, z);
} else {
a = new Sts(fixedTransferSuccessFragment, c1187Xm, z, (byte) 0);
fixedTransferSuccessFragment.requestPermissions(strArr, 52);
}
}
public static void e(FixedTransferSuccessFragment fixedTransferSuccessFragment, C1187Xm c1187Xm, boolean z) {
FragmentActivity requireActivity = fixedTransferSuccessFragment.requireActivity();
String[] strArr = i;
if (!C15581guh.b(requireActivity, strArr)) {
d = new IeS(fixedTransferSuccessFragment, c1187Xm, z, (byte) 0);
fixedTransferSuccessFragment.requestPermissions(strArr, 53);
} else {
fixedTransferSuccessFragment.b(c1187Xm, z);
}
}
public static void a(FixedTransferSuccessFragment fixedTransferSuccessFragment, int i2, int[] iArr) {
InterfaceC15579guf interfaceC15579guf;
InterfaceC15579guf interfaceC15579guf2;
switch (i2) {
case 48:
if (C15581guh.d(iArr)) {
fixedTransferSuccessFragment.f();
return;
}
return;
case 49:
if (C15581guh.d(iArr)) {
fixedTransferSuccessFragment.f();
return;
}
return;
case 50:
if (C15581guh.d(iArr)) {
fixedTransferSuccessFragment.h();
return;
}
return;
case 51:
if (C15581guh.d(iArr)) {
fixedTransferSuccessFragment.h();
return;
}
return;
case 52:
if (C15581guh.d(iArr) && (interfaceC15579guf = a) != null) {
interfaceC15579guf.a();
}
a = null;
return;
case 53:
if (C15581guh.d(iArr) && (interfaceC15579guf2 = d) != null) {
interfaceC15579guf2.a();
}
d = null;
return;
default:
return;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fDv$Sts */
/* loaded from: classes5.dex */
public static final class Sts implements InterfaceC15579guf {
private final C1187Xm a;
private final WeakReference<FixedTransferSuccessFragment> b;
private final boolean d;
@Override // o.InterfaceC15577gud
public final void e() {
}
private Sts(FixedTransferSuccessFragment fixedTransferSuccessFragment, C1187Xm c1187Xm, boolean z) {
this.b = new WeakReference<>(fixedTransferSuccessFragment);
this.a = c1187Xm;
this.d = z;
}
@Override // o.InterfaceC15577gud
public final void c() {
FixedTransferSuccessFragment fixedTransferSuccessFragment = this.b.get();
if (fixedTransferSuccessFragment == null) {
return;
}
fixedTransferSuccessFragment.requestPermissions(C12669fDv.g, 52);
}
@Override // o.InterfaceC15579guf
public final void a() {
FixedTransferSuccessFragment fixedTransferSuccessFragment = this.b.get();
if (fixedTransferSuccessFragment == null) {
return;
}
fixedTransferSuccessFragment.b(this.a, this.d);
}
/* synthetic */ Sts(FixedTransferSuccessFragment fixedTransferSuccessFragment, C1187Xm c1187Xm, boolean z, byte b) {
this(fixedTransferSuccessFragment, c1187Xm, z);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fDv$IeS */
/* loaded from: classes5.dex */
public static final class IeS implements InterfaceC15579guf {
private final C1187Xm a;
private final WeakReference<FixedTransferSuccessFragment> c;
private final boolean d;
@Override // o.InterfaceC15577gud
public final void e() {
}
private IeS(FixedTransferSuccessFragment fixedTransferSuccessFragment, C1187Xm c1187Xm, boolean z) {
this.c = new WeakReference<>(fixedTransferSuccessFragment);
this.a = c1187Xm;
this.d = z;
}
@Override // o.InterfaceC15577gud
public final void c() {
FixedTransferSuccessFragment fixedTransferSuccessFragment = this.c.get();
if (fixedTransferSuccessFragment == null) {
return;
}
fixedTransferSuccessFragment.requestPermissions(C12669fDv.i, 53);
}
@Override // o.InterfaceC15579guf
public final void a() {
FixedTransferSuccessFragment fixedTransferSuccessFragment = this.c.get();
if (fixedTransferSuccessFragment == null) {
return;
}
fixedTransferSuccessFragment.b(this.a, this.d);
}
/* synthetic */ IeS(FixedTransferSuccessFragment fixedTransferSuccessFragment, C1187Xm c1187Xm, boolean z, byte b) {
this(fixedTransferSuccessFragment, c1187Xm, z);
}
}
}