package o; import android.content.DialogInterface; import androidx.core.app.ActivityCompat; import com.scb.phone.view.activity.transferandpay.ScanPaymentActivity; import com.scb.phone.view.custom.common.CustomDialog; import java.lang.ref.WeakReference; /* renamed from: o.epn, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C11993epn { private static final String[] b = {"android.permission.CAMERA"}; private static final String[] c = {"android.permission.READ_EXTERNAL_STORAGE"}; public static void c(ScanPaymentActivity scanPaymentActivity) { String[] strArr = b; if (C15581guh.b(scanPaymentActivity, strArr)) { scanPaymentActivity.h(); return; } if (C15581guh.aDf_(scanPaymentActivity, strArr)) { final HBt hBt = new HBt(scanPaymentActivity, (byte) 0); guQ.b("onShowRationale", new Object[0]); ((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(scanPaymentActivity).c(com.scb.phone.R.string.permission_camera_title).d(com.scb.phone.R.string.permission_camera).aoT_(com.scb.phone.R.string.permission_allow, new DialogInterface.OnClickListener(hBt) { // from class: o.epl private InterfaceC15577gud a; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { ScanPaymentActivity.c(this.a); } { this.a = hBt; } }), Integer.valueOf(com.scb.phone.R.string.permission_deny), new DialogInterface.OnClickListener(hBt) { // from class: o.eph private InterfaceC15577gud a; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { ScanPaymentActivity.e(this.a); } { this.a = hBt; } }})).show(); return; } ActivityCompat.lM_(scanPaymentActivity, strArr, 121); } public static void e(ScanPaymentActivity scanPaymentActivity) { String[] strArr = c; if (C15581guh.b(scanPaymentActivity, strArr)) { scanPaymentActivity.j(); } else { ActivityCompat.lM_(scanPaymentActivity, strArr, 122); } } public static void d(ScanPaymentActivity scanPaymentActivity, int i, int[] iArr) { if (i == 121) { if (C15581guh.d(iArr)) { scanPaymentActivity.h(); return; } else if (!C15581guh.aDf_(scanPaymentActivity, b)) { ScanPaymentActivity.g(); return; } else { ScanPaymentActivity.f(); return; } } if (i == 122 && C15581guh.d(iArr)) { scanPaymentActivity.j(); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.epn$HBt */ /* loaded from: classes5.dex */ public static final class HBt implements InterfaceC15577gud { private final WeakReference c; private HBt(ScanPaymentActivity scanPaymentActivity) { this.c = new WeakReference<>(scanPaymentActivity); } @Override // o.InterfaceC15577gud public final void c() { ScanPaymentActivity scanPaymentActivity = this.c.get(); if (scanPaymentActivity == null) { return; } ActivityCompat.lM_(scanPaymentActivity, C11993epn.b, 121); } @Override // o.InterfaceC15577gud public final void e() { if (this.c.get() == null) { return; } ScanPaymentActivity.f(); } /* synthetic */ HBt(ScanPaymentActivity scanPaymentActivity, byte b) { this(scanPaymentActivity); } } }