package o; import androidx.fragment.app.FragmentActivity; import com.scb.phone.view.fragment.chequemanagement.ChequeSuccessFragment; import java.lang.ref.WeakReference; /* renamed from: o.eMy, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C10730eMy { private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE"}; private static final String[] e = {"android.permission.READ_MEDIA_IMAGES"}; public static void b(ChequeSuccessFragment chequeSuccessFragment) { FragmentActivity requireActivity = chequeSuccessFragment.requireActivity(); String[] strArr = b; if (C15581guh.b(requireActivity, strArr)) { chequeSuccessFragment.i(); } else if (C15581guh.e(chequeSuccessFragment, strArr)) { chequeSuccessFragment.c(new RVV(chequeSuccessFragment, (byte) 0)); } else { chequeSuccessFragment.requestPermissions(strArr, 21); } } public static void d(ChequeSuccessFragment chequeSuccessFragment) { FragmentActivity requireActivity = chequeSuccessFragment.requireActivity(); String[] strArr = e; if (!C15581guh.b(requireActivity, strArr)) { if (C15581guh.e(chequeSuccessFragment, strArr)) { IeS ieS = new IeS(chequeSuccessFragment, (byte) 0); guQ.b("onShowRationaleAndroid13", new Object[0]); chequeSuccessFragment.c(ieS); return; } chequeSuccessFragment.requestPermissions(strArr, 22); return; } chequeSuccessFragment.i(); } public static void c(ChequeSuccessFragment chequeSuccessFragment, int i, int[] iArr) { if (i == 21) { if (C15581guh.d(iArr)) { chequeSuccessFragment.i(); return; } else if (!C15581guh.e(chequeSuccessFragment, b)) { ChequeSuccessFragment.h(); return; } else { ChequeSuccessFragment.f(); return; } } if (i == 22) { if (!C15581guh.d(iArr)) { if (!C15581guh.e(chequeSuccessFragment, e)) { ChequeSuccessFragment.g(); return; } else { ChequeSuccessFragment.j(); return; } } chequeSuccessFragment.i(); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.eMy$RVV */ /* loaded from: classes5.dex */ public static final class RVV implements InterfaceC15577gud { private final WeakReference e; private RVV(ChequeSuccessFragment chequeSuccessFragment) { this.e = new WeakReference<>(chequeSuccessFragment); } @Override // o.InterfaceC15577gud public final void c() { ChequeSuccessFragment chequeSuccessFragment = this.e.get(); if (chequeSuccessFragment == null) { return; } chequeSuccessFragment.requestPermissions(C10730eMy.b, 21); } @Override // o.InterfaceC15577gud public final void e() { if (this.e.get() == null) { return; } ChequeSuccessFragment.f(); } /* synthetic */ RVV(ChequeSuccessFragment chequeSuccessFragment, byte b) { this(chequeSuccessFragment); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.eMy$IeS */ /* loaded from: classes5.dex */ public static final class IeS implements InterfaceC15577gud { private final WeakReference e; private IeS(ChequeSuccessFragment chequeSuccessFragment) { this.e = new WeakReference<>(chequeSuccessFragment); } @Override // o.InterfaceC15577gud public final void c() { ChequeSuccessFragment chequeSuccessFragment = this.e.get(); if (chequeSuccessFragment == null) { return; } chequeSuccessFragment.requestPermissions(C10730eMy.e, 22); } @Override // o.InterfaceC15577gud public final void e() { if (this.e.get() == null) { return; } ChequeSuccessFragment.j(); } /* synthetic */ IeS(ChequeSuccessFragment chequeSuccessFragment, byte b) { this(chequeSuccessFragment); } } }