137 lines
5.7 KiB
Java
137 lines
5.7 KiB
Java
|
package o;
|
||
|
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import com.scb.phone.view.fragment.remittance.RemittanceSuccessFragment;
|
||
|
import java.util.Arrays;
|
||
|
|
||
|
/* renamed from: o.fza, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C14775fza {
|
||
|
private static InterfaceC15579guf b;
|
||
|
private static InterfaceC15579guf e;
|
||
|
private static final String[] a = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
||
|
private static final String[] c = {"android.permission.READ_MEDIA_IMAGES"};
|
||
|
private static final String[] d = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
||
|
private static final String[] j = {"android.permission.READ_MEDIA_IMAGES"};
|
||
|
private static final String[] i = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
||
|
private static final String[] f = {"android.permission.READ_MEDIA_IMAGES"};
|
||
|
|
||
|
public static final void e(RemittanceSuccessFragment remittanceSuccessFragment, C1114Vy c1114Vy, boolean z) {
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
C14957gcv.e(c1114Vy, "");
|
||
|
FragmentActivity requireActivity = remittanceSuccessFragment.requireActivity();
|
||
|
String[] strArr = i;
|
||
|
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
||
|
remittanceSuccessFragment.c(c1114Vy, z);
|
||
|
} else {
|
||
|
b = new C14777fzc(remittanceSuccessFragment, c1114Vy, z);
|
||
|
remittanceSuccessFragment.requestPermissions(strArr, 110);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final void c(RemittanceSuccessFragment remittanceSuccessFragment, C1114Vy c1114Vy, boolean z) {
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
C14957gcv.e(c1114Vy, "");
|
||
|
FragmentActivity requireActivity = remittanceSuccessFragment.requireActivity();
|
||
|
String[] strArr = f;
|
||
|
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
||
|
C14957gcv.e(c1114Vy, "");
|
||
|
remittanceSuccessFragment.c(c1114Vy, z);
|
||
|
} else {
|
||
|
e = new C14721fyZ(remittanceSuccessFragment, c1114Vy, z);
|
||
|
remittanceSuccessFragment.requestPermissions(strArr, 111);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final void d(RemittanceSuccessFragment remittanceSuccessFragment) {
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
FragmentActivity requireActivity = remittanceSuccessFragment.requireActivity();
|
||
|
String[] strArr = d;
|
||
|
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
||
|
remittanceSuccessFragment.f();
|
||
|
} else {
|
||
|
remittanceSuccessFragment.requestPermissions(strArr, 108);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final void a(RemittanceSuccessFragment remittanceSuccessFragment) {
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
FragmentActivity requireActivity = remittanceSuccessFragment.requireActivity();
|
||
|
String[] strArr = a;
|
||
|
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
||
|
remittanceSuccessFragment.d();
|
||
|
} else {
|
||
|
remittanceSuccessFragment.requestPermissions(strArr, 106);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final void c(RemittanceSuccessFragment remittanceSuccessFragment) {
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
FragmentActivity requireActivity = remittanceSuccessFragment.requireActivity();
|
||
|
String[] strArr = j;
|
||
|
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
||
|
remittanceSuccessFragment.requestPermissions(strArr, 109);
|
||
|
} else {
|
||
|
remittanceSuccessFragment.f();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final void e(RemittanceSuccessFragment remittanceSuccessFragment) {
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
FragmentActivity requireActivity = remittanceSuccessFragment.requireActivity();
|
||
|
String[] strArr = c;
|
||
|
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
||
|
remittanceSuccessFragment.requestPermissions(strArr, 107);
|
||
|
} else {
|
||
|
remittanceSuccessFragment.d();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static final void a(RemittanceSuccessFragment remittanceSuccessFragment, int i2, int[] iArr) {
|
||
|
InterfaceC15579guf interfaceC15579guf;
|
||
|
InterfaceC15579guf interfaceC15579guf2;
|
||
|
C14957gcv.e(remittanceSuccessFragment, "");
|
||
|
C14957gcv.e(iArr, "");
|
||
|
switch (i2) {
|
||
|
case 106:
|
||
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
|
||
|
remittanceSuccessFragment.d();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
case 107:
|
||
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
|
||
|
remittanceSuccessFragment.d();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
case 108:
|
||
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
|
||
|
remittanceSuccessFragment.f();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
case 109:
|
||
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
|
||
|
remittanceSuccessFragment.f();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
case 110:
|
||
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length)) && (interfaceC15579guf = b) != null) {
|
||
|
interfaceC15579guf.a();
|
||
|
}
|
||
|
b = null;
|
||
|
return;
|
||
|
case 111:
|
||
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length)) && (interfaceC15579guf2 = e) != null) {
|
||
|
interfaceC15579guf2.a();
|
||
|
}
|
||
|
e = null;
|
||
|
return;
|
||
|
default:
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|