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

131 lines
5.6 KiB
Java

package o;
import androidx.core.app.ActivityCompat;
import com.scb.phone.view.activity.bankingagent.BankingAgentSuccessActivity;
import java.util.Arrays;
/* renamed from: o.dsu, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C9918dsu {
private static InterfaceC15579guf c;
private static InterfaceC15579guf d;
private static final String[] e = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] a = {"android.permission.READ_MEDIA_IMAGES"};
private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] f = {"android.permission.READ_MEDIA_IMAGES"};
private static final String[] i = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] g = {"android.permission.READ_MEDIA_IMAGES"};
public static final void a(BankingAgentSuccessActivity bankingAgentSuccessActivity, FD fd, boolean z) {
C14957gcv.e(bankingAgentSuccessActivity, "");
C14957gcv.e(fd, "");
String[] strArr = g;
if (C15581guh.b(bankingAgentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
C14957gcv.e(fd, "");
bankingAgentSuccessActivity.a(fd, z);
} else {
d = new C9874dsC(bankingAgentSuccessActivity, fd, z);
ActivityCompat.lM_(bankingAgentSuccessActivity, strArr, 5);
}
}
public static final void d(BankingAgentSuccessActivity bankingAgentSuccessActivity, FD fd, boolean z) {
C14957gcv.e(bankingAgentSuccessActivity, "");
C14957gcv.e(fd, "");
String[] strArr = i;
if (C15581guh.b(bankingAgentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
bankingAgentSuccessActivity.a(fd, z);
} else {
c = new C9877dsF(bankingAgentSuccessActivity, fd, z);
ActivityCompat.lM_(bankingAgentSuccessActivity, strArr, 4);
}
}
public static final void c(BankingAgentSuccessActivity bankingAgentSuccessActivity) {
C14957gcv.e(bankingAgentSuccessActivity, "");
String[] strArr = b;
if (C15581guh.b(bankingAgentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
BankingAgentSuccessActivity.c(new Object[]{bankingAgentSuccessActivity}, -1259042492, 1259042495, System.identityHashCode(bankingAgentSuccessActivity));
} else {
ActivityCompat.lM_(bankingAgentSuccessActivity, strArr, 2);
}
}
public static final void a(BankingAgentSuccessActivity bankingAgentSuccessActivity) {
C14957gcv.e(bankingAgentSuccessActivity, "");
String[] strArr = e;
if (C15581guh.b(bankingAgentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
bankingAgentSuccessActivity.g();
} else {
ActivityCompat.lM_(bankingAgentSuccessActivity, strArr, 0);
}
}
public static final void d(BankingAgentSuccessActivity bankingAgentSuccessActivity) {
C14957gcv.e(bankingAgentSuccessActivity, "");
String[] strArr = f;
if (!C15581guh.b(bankingAgentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
ActivityCompat.lM_(bankingAgentSuccessActivity, strArr, 3);
} else {
BankingAgentSuccessActivity.c(new Object[]{bankingAgentSuccessActivity}, -1259042492, 1259042495, System.identityHashCode(bankingAgentSuccessActivity));
}
}
public static final void b(BankingAgentSuccessActivity bankingAgentSuccessActivity) {
C14957gcv.e(bankingAgentSuccessActivity, "");
String[] strArr = a;
if (!C15581guh.b(bankingAgentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
ActivityCompat.lM_(bankingAgentSuccessActivity, strArr, 1);
} else {
bankingAgentSuccessActivity.g();
}
}
public static final void b(BankingAgentSuccessActivity bankingAgentSuccessActivity, int i2, int[] iArr) {
InterfaceC15579guf interfaceC15579guf;
InterfaceC15579guf interfaceC15579guf2;
C14957gcv.e(bankingAgentSuccessActivity, "");
C14957gcv.e(iArr, "");
if (i2 == 0) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
bankingAgentSuccessActivity.g();
return;
}
return;
}
if (i2 == 1) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
bankingAgentSuccessActivity.g();
return;
}
return;
}
if (i2 == 2) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
BankingAgentSuccessActivity.c(new Object[]{bankingAgentSuccessActivity}, -1259042492, 1259042495, System.identityHashCode(bankingAgentSuccessActivity));
return;
}
return;
}
if (i2 == 3) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
BankingAgentSuccessActivity.c(new Object[]{bankingAgentSuccessActivity}, -1259042492, 1259042495, System.identityHashCode(bankingAgentSuccessActivity));
}
} else {
if (i2 == 4) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length)) && (interfaceC15579guf = c) != null) {
interfaceC15579guf.a();
}
c = null;
return;
}
if (i2 == 5) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length)) && (interfaceC15579guf2 = d) != null) {
interfaceC15579guf2.a();
}
d = null;
}
}
}
}