package o; import androidx.core.app.ActivityCompat; import com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity; import java.util.Arrays; /* renamed from: o.dXL, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C8828dXL { private static final String[] a = {"android.permission.READ_EXTERNAL_STORAGE"}; private static final String[] e = {"android.permission.READ_MEDIA_IMAGES"}; public static final void d(MediaImagePreviewActivity mediaImagePreviewActivity) { C14957gcv.e(mediaImagePreviewActivity, ""); String[] strArr = a; if (!C15581guh.b(mediaImagePreviewActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { MediaImagePreviewActivity mediaImagePreviewActivity2 = mediaImagePreviewActivity; if (C15581guh.aDf_(mediaImagePreviewActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { mediaImagePreviewActivity.e(new dXM(mediaImagePreviewActivity)); return; } else { ActivityCompat.lM_(mediaImagePreviewActivity2, strArr, 73); return; } } mediaImagePreviewActivity.h(); } public static final void e(MediaImagePreviewActivity mediaImagePreviewActivity) { C14957gcv.e(mediaImagePreviewActivity, ""); String[] strArr = e; if (!C15581guh.b(mediaImagePreviewActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { MediaImagePreviewActivity mediaImagePreviewActivity2 = mediaImagePreviewActivity; if (C15581guh.aDf_(mediaImagePreviewActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { dXQ dxq = new dXQ(mediaImagePreviewActivity); C14957gcv.e(dxq, ""); mediaImagePreviewActivity.e(dxq); return; } ActivityCompat.lM_(mediaImagePreviewActivity2, strArr, 74); return; } mediaImagePreviewActivity.h(); } public static final void b(MediaImagePreviewActivity mediaImagePreviewActivity, int i, int[] iArr) { C14957gcv.e(mediaImagePreviewActivity, ""); C14957gcv.e(iArr, ""); if (i == 73) { if (!C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { String[] strArr = a; if (!C15581guh.aDf_(mediaImagePreviewActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { MediaImagePreviewActivity.g(); return; } else { MediaImagePreviewActivity.f(); return; } } mediaImagePreviewActivity.h(); return; } if (i == 74) { if (!C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { String[] strArr2 = e; if (!C15581guh.aDf_(mediaImagePreviewActivity, (String[]) Arrays.copyOf(strArr2, strArr2.length))) { MediaImagePreviewActivity.j(); return; } else { MediaImagePreviewActivity.n(); return; } } mediaImagePreviewActivity.h(); } } }