42 lines
1.8 KiB
Java
42 lines
1.8 KiB
Java
package o;
|
|
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import com.scb.phone.view.fragment.ndid.NdidInstructionFragment;
|
|
|
|
/* renamed from: o.fpe, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C14249fpe {
|
|
private static final String[] b = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE"};
|
|
private static final String[] c = {"android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES"};
|
|
|
|
public static void a(NdidInstructionFragment ndidInstructionFragment) {
|
|
FragmentActivity requireActivity = ndidInstructionFragment.requireActivity();
|
|
String[] strArr = b;
|
|
if (!C15581guh.b(requireActivity, strArr)) {
|
|
ndidInstructionFragment.requestPermissions(strArr, 90);
|
|
} else {
|
|
ndidInstructionFragment.startActivityForResult(ndidInstructionFragment.avW_(), 1001);
|
|
}
|
|
}
|
|
|
|
public static void c(NdidInstructionFragment ndidInstructionFragment) {
|
|
FragmentActivity requireActivity = ndidInstructionFragment.requireActivity();
|
|
String[] strArr = c;
|
|
if (!C15581guh.b(requireActivity, strArr)) {
|
|
ndidInstructionFragment.requestPermissions(strArr, 91);
|
|
} else {
|
|
ndidInstructionFragment.startActivityForResult(ndidInstructionFragment.avW_(), 1001);
|
|
}
|
|
}
|
|
|
|
public static void c(NdidInstructionFragment ndidInstructionFragment, int i, int[] iArr) {
|
|
if (i == 90) {
|
|
if (C15581guh.d(iArr)) {
|
|
ndidInstructionFragment.startActivityForResult(ndidInstructionFragment.avW_(), 1001);
|
|
}
|
|
} else if (i == 91 && C15581guh.d(iArr)) {
|
|
ndidInstructionFragment.startActivityForResult(ndidInstructionFragment.avW_(), 1001);
|
|
}
|
|
}
|
|
}
|