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

159 lines
6.8 KiB
Java

package o;
import android.content.Intent;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.hml.HmlDocumentListFragment;
import java.util.Arrays;
/* renamed from: o.fbD, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C13481fbD {
private static final String[] a = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"};
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
private static final String[] c = {"android.permission.CAMERA"};
private static final String[] e = {"android.permission.CAMERA"};
private static final String[] d = {"android.permission.CAMERA"};
private static final String[] j = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"};
private static final String[] f = {"android.permission.READ_MEDIA_IMAGES"};
public static final void d(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = d;
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.N();
} else {
hmlDocumentListFragment.requestPermissions(strArr, 62);
}
}
public static final void e(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = c;
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.M();
} else {
hmlDocumentListFragment.requestPermissions(strArr, 60);
}
}
public static final void a(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = e;
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.K();
} else {
hmlDocumentListFragment.requestPermissions(strArr, 61);
}
}
public static final void f(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = j;
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.requestPermissions(strArr, 63);
} else {
hmlDocumentListFragment.E();
}
}
public static final void g(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = f;
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.requestPermissions(strArr, 64);
} else {
hmlDocumentListFragment.E();
}
}
public static final void c(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = a;
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.requestPermissions(strArr, 58);
return;
}
Intent intent = new Intent("android.intent.action.OPEN_DOCUMENT");
intent.addCategory("android.intent.category.OPENABLE");
intent.setType("application/pdf");
hmlDocumentListFragment.startActivityForResult(intent, 124);
}
public static final void b(HmlDocumentListFragment hmlDocumentListFragment) {
C14957gcv.e(hmlDocumentListFragment, "");
FragmentActivity requireActivity = hmlDocumentListFragment.requireActivity();
String[] strArr = b;
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
hmlDocumentListFragment.requestPermissions(strArr, 59);
return;
}
Intent intent = new Intent("android.intent.action.OPEN_DOCUMENT");
intent.addCategory("android.intent.category.OPENABLE");
intent.setType("application/pdf");
hmlDocumentListFragment.startActivityForResult(intent, 124);
}
public static final void e(HmlDocumentListFragment hmlDocumentListFragment, int i, int[] iArr) {
C14957gcv.e(hmlDocumentListFragment, "");
C14957gcv.e(iArr, "");
switch (i) {
case 58:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
Intent intent = new Intent("android.intent.action.OPEN_DOCUMENT");
intent.addCategory("android.intent.category.OPENABLE");
intent.setType("application/pdf");
hmlDocumentListFragment.startActivityForResult(intent, 124);
return;
}
return;
case 59:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
Intent intent2 = new Intent("android.intent.action.OPEN_DOCUMENT");
intent2.addCategory("android.intent.category.OPENABLE");
intent2.setType("application/pdf");
hmlDocumentListFragment.startActivityForResult(intent2, 124);
return;
}
return;
case 60:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
hmlDocumentListFragment.M();
return;
}
return;
case 61:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
hmlDocumentListFragment.K();
return;
}
return;
case 62:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
hmlDocumentListFragment.N();
return;
}
return;
case 63:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
hmlDocumentListFragment.E();
return;
}
return;
case 64:
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
hmlDocumentListFragment.E();
return;
}
return;
default:
return;
}
}
}