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

339 lines
13 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.bulktransfer.BulkTransferSuccessFragment;
import java.lang.ref.WeakReference;
import java.util.List;
/* renamed from: o.eIb, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C10579eIb {
private static InterfaceC15579guf a;
private static InterfaceC15579guf b;
private static InterfaceC15579guf c;
private static InterfaceC15579guf e;
private static final String[] d = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] j = {"android.permission.READ_MEDIA_IMAGES"};
private static final String[] h = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] g = {"android.permission.READ_MEDIA_IMAGES"};
public static void d(BulkTransferSuccessFragment bulkTransferSuccessFragment) {
FragmentActivity requireActivity = bulkTransferSuccessFragment.requireActivity();
String[] strArr = d;
if (!C15581guh.b(requireActivity, strArr)) {
c = new RVV(bulkTransferSuccessFragment);
if (C15581guh.e(bulkTransferSuccessFragment, strArr)) {
bulkTransferSuccessFragment.e(c);
return;
} else {
bulkTransferSuccessFragment.requestPermissions(strArr, 15);
return;
}
}
Context context = bulkTransferSuccessFragment.getContext();
if (bulkTransferSuccessFragment.isDetached() || context == null) {
return;
}
bulkTransferSuccessFragment.bulkTransferSuccessPresenter.a(true);
}
public static void e(BulkTransferSuccessFragment bulkTransferSuccessFragment) {
FragmentActivity requireActivity = bulkTransferSuccessFragment.requireActivity();
String[] strArr = j;
if (!C15581guh.b(requireActivity, strArr)) {
b = new LWm(bulkTransferSuccessFragment);
if (!C15581guh.e(bulkTransferSuccessFragment, strArr)) {
bulkTransferSuccessFragment.requestPermissions(strArr, 16);
return;
}
InterfaceC15579guf interfaceC15579guf = b;
guQ.b("onShowRationaleAndroid13", new Object[0]);
bulkTransferSuccessFragment.e(interfaceC15579guf);
return;
}
Context context = bulkTransferSuccessFragment.getContext();
if (bulkTransferSuccessFragment.isDetached() || context == null) {
return;
}
bulkTransferSuccessFragment.bulkTransferSuccessPresenter.a(true);
}
public static void b(BulkTransferSuccessFragment bulkTransferSuccessFragment, FW fw, List<FN> list) {
FragmentActivity requireActivity = bulkTransferSuccessFragment.requireActivity();
String[] strArr = h;
if (C15581guh.b(requireActivity, strArr)) {
bulkTransferSuccessFragment.a(fw, list);
return;
}
e = new Sts(bulkTransferSuccessFragment, fw, list, (byte) 0);
if (C15581guh.e(bulkTransferSuccessFragment, strArr)) {
bulkTransferSuccessFragment.e(e);
} else {
bulkTransferSuccessFragment.requestPermissions(strArr, 17);
}
}
public static void e(BulkTransferSuccessFragment bulkTransferSuccessFragment, FW fw, List<FN> list) {
FragmentActivity requireActivity = bulkTransferSuccessFragment.requireActivity();
String[] strArr = g;
if (!C15581guh.b(requireActivity, strArr)) {
a = new HBt(bulkTransferSuccessFragment, fw, list, (byte) 0);
if (!C15581guh.e(bulkTransferSuccessFragment, strArr)) {
bulkTransferSuccessFragment.requestPermissions(strArr, 18);
return;
}
InterfaceC15579guf interfaceC15579guf = a;
guQ.b("onShowRationaleAndroid13", new Object[0]);
bulkTransferSuccessFragment.e(interfaceC15579guf);
return;
}
bulkTransferSuccessFragment.a(fw, list);
}
public static void a(BulkTransferSuccessFragment bulkTransferSuccessFragment, int i, int[] iArr) {
switch (i) {
case 15:
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf = c;
if (interfaceC15579guf != null) {
interfaceC15579guf.a();
}
} else if (!C15581guh.e(bulkTransferSuccessFragment, d)) {
BulkTransferSuccessFragment.d();
} else {
BulkTransferSuccessFragment.i();
}
c = null;
return;
case 16:
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf2 = b;
if (interfaceC15579guf2 != null) {
interfaceC15579guf2.a();
}
} else if (!C15581guh.e(bulkTransferSuccessFragment, j)) {
BulkTransferSuccessFragment.h();
} else {
BulkTransferSuccessFragment.f();
}
b = null;
return;
case 17:
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf3 = e;
if (interfaceC15579guf3 != null) {
interfaceC15579guf3.a();
}
} else if (!C15581guh.e(bulkTransferSuccessFragment, h)) {
BulkTransferSuccessFragment.d();
} else {
BulkTransferSuccessFragment.i();
}
e = null;
return;
case 18:
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf4 = a;
if (interfaceC15579guf4 != null) {
interfaceC15579guf4.a();
}
} else if (!C15581guh.e(bulkTransferSuccessFragment, g)) {
BulkTransferSuccessFragment.h();
} else {
BulkTransferSuccessFragment.f();
}
a = null;
return;
default:
return;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.eIb$RVV */
/* loaded from: classes5.dex */
public static final class RVV implements InterfaceC15579guf {
private final boolean d;
private final WeakReference<BulkTransferSuccessFragment> e;
private RVV(BulkTransferSuccessFragment bulkTransferSuccessFragment, boolean z) {
this.e = new WeakReference<>(bulkTransferSuccessFragment);
this.d = true;
}
@Override // o.InterfaceC15577gud
public final void c() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.e.get();
if (bulkTransferSuccessFragment == null) {
return;
}
bulkTransferSuccessFragment.requestPermissions(C10579eIb.d, 15);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.e.get() == null) {
return;
}
BulkTransferSuccessFragment.i();
}
@Override // o.InterfaceC15579guf
public final void a() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.e.get();
if (bulkTransferSuccessFragment == null) {
return;
}
boolean z = this.d;
Context context = bulkTransferSuccessFragment.getContext();
if (bulkTransferSuccessFragment.isDetached() || context == null) {
return;
}
bulkTransferSuccessFragment.bulkTransferSuccessPresenter.a(z);
}
/* synthetic */ RVV(BulkTransferSuccessFragment bulkTransferSuccessFragment) {
this(bulkTransferSuccessFragment, true);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.eIb$LWm */
/* loaded from: classes5.dex */
public static final class LWm implements InterfaceC15579guf {
private final boolean a;
private final WeakReference<BulkTransferSuccessFragment> b;
private LWm(BulkTransferSuccessFragment bulkTransferSuccessFragment, boolean z) {
this.b = new WeakReference<>(bulkTransferSuccessFragment);
this.a = true;
}
@Override // o.InterfaceC15577gud
public final void c() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.b.get();
if (bulkTransferSuccessFragment == null) {
return;
}
bulkTransferSuccessFragment.requestPermissions(C10579eIb.j, 16);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.b.get() == null) {
return;
}
BulkTransferSuccessFragment.f();
}
@Override // o.InterfaceC15579guf
public final void a() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.b.get();
if (bulkTransferSuccessFragment == null) {
return;
}
boolean z = this.a;
Context context = bulkTransferSuccessFragment.getContext();
if (bulkTransferSuccessFragment.isDetached() || context == null) {
return;
}
bulkTransferSuccessFragment.bulkTransferSuccessPresenter.a(z);
}
/* synthetic */ LWm(BulkTransferSuccessFragment bulkTransferSuccessFragment) {
this(bulkTransferSuccessFragment, true);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.eIb$Sts */
/* loaded from: classes5.dex */
public static final class Sts implements InterfaceC15579guf {
private final WeakReference<BulkTransferSuccessFragment> a;
private final List<FN> b;
private final FW c;
private Sts(BulkTransferSuccessFragment bulkTransferSuccessFragment, FW fw, List<FN> list) {
this.a = new WeakReference<>(bulkTransferSuccessFragment);
this.c = fw;
this.b = list;
}
@Override // o.InterfaceC15577gud
public final void c() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.a.get();
if (bulkTransferSuccessFragment == null) {
return;
}
bulkTransferSuccessFragment.requestPermissions(C10579eIb.h, 17);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.a.get() == null) {
return;
}
BulkTransferSuccessFragment.i();
}
@Override // o.InterfaceC15579guf
public final void a() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.a.get();
if (bulkTransferSuccessFragment == null) {
return;
}
bulkTransferSuccessFragment.a(this.c, this.b);
}
/* synthetic */ Sts(BulkTransferSuccessFragment bulkTransferSuccessFragment, FW fw, List list, byte b) {
this(bulkTransferSuccessFragment, fw, list);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.eIb$HBt */
/* loaded from: classes5.dex */
public static final class HBt implements InterfaceC15579guf {
private final List<FN> a;
private final FW c;
private final WeakReference<BulkTransferSuccessFragment> e;
private HBt(BulkTransferSuccessFragment bulkTransferSuccessFragment, FW fw, List<FN> list) {
this.e = new WeakReference<>(bulkTransferSuccessFragment);
this.c = fw;
this.a = list;
}
@Override // o.InterfaceC15577gud
public final void c() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.e.get();
if (bulkTransferSuccessFragment == null) {
return;
}
bulkTransferSuccessFragment.requestPermissions(C10579eIb.g, 18);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.e.get() == null) {
return;
}
BulkTransferSuccessFragment.f();
}
@Override // o.InterfaceC15579guf
public final void a() {
BulkTransferSuccessFragment bulkTransferSuccessFragment = this.e.get();
if (bulkTransferSuccessFragment == null) {
return;
}
bulkTransferSuccessFragment.a(this.c, this.a);
}
/* synthetic */ HBt(BulkTransferSuccessFragment bulkTransferSuccessFragment, FW fw, List list, byte b) {
this(bulkTransferSuccessFragment, fw, list);
}
}
}