80 lines
3.8 KiB
Java
80 lines
3.8 KiB
Java
package o;
|
|
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import com.scb.phone.view.fragment.loanrepayment.LevelUpLoanRepaymentPayQrCodeFragment;
|
|
import java.util.Arrays;
|
|
|
|
/* renamed from: o.fmO, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C14075fmO {
|
|
private static final String[] d = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
|
private static final String[] a = {"android.permission.READ_MEDIA_IMAGES"};
|
|
|
|
public static final void b(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
|
FragmentActivity requireActivity = levelUpLoanRepaymentPayQrCodeFragment.requireActivity();
|
|
String[] strArr = d;
|
|
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
|
levelUpLoanRepaymentPayQrCodeFragment.f();
|
|
} else if (C15581guh.e(levelUpLoanRepaymentPayQrCodeFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
|
levelUpLoanRepaymentPayQrCodeFragment.a(new C14072fmL(levelUpLoanRepaymentPayQrCodeFragment));
|
|
} else {
|
|
levelUpLoanRepaymentPayQrCodeFragment.requestPermissions(strArr, 71);
|
|
}
|
|
}
|
|
|
|
public static final void d(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
|
FragmentActivity requireActivity = levelUpLoanRepaymentPayQrCodeFragment.requireActivity();
|
|
String[] strArr = a;
|
|
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
|
if (C15581guh.e(levelUpLoanRepaymentPayQrCodeFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
|
C14076fmP c14076fmP = new C14076fmP(levelUpLoanRepaymentPayQrCodeFragment);
|
|
C14957gcv.e(c14076fmP, "");
|
|
guQ.b("onShowRationaleAndroid13", new Object[0]);
|
|
levelUpLoanRepaymentPayQrCodeFragment.a(c14076fmP);
|
|
return;
|
|
}
|
|
levelUpLoanRepaymentPayQrCodeFragment.requestPermissions(strArr, 72);
|
|
return;
|
|
}
|
|
levelUpLoanRepaymentPayQrCodeFragment.f();
|
|
}
|
|
|
|
public static final void b(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment, int i, int[] iArr) {
|
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
|
C14957gcv.e(iArr, "");
|
|
if (i == 71) {
|
|
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
|
|
levelUpLoanRepaymentPayQrCodeFragment.f();
|
|
return;
|
|
}
|
|
String[] strArr = d;
|
|
if (!C15581guh.e(levelUpLoanRepaymentPayQrCodeFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) {
|
|
guQ.b("onNeverAskAgain", new Object[0]);
|
|
levelUpLoanRepaymentPayQrCodeFragment.d();
|
|
return;
|
|
} else {
|
|
guQ.b("onPermissionDenied", new Object[0]);
|
|
levelUpLoanRepaymentPayQrCodeFragment.a((Throwable) null);
|
|
return;
|
|
}
|
|
}
|
|
if (i == 72) {
|
|
if (!C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
|
|
String[] strArr2 = a;
|
|
if (!C15581guh.e(levelUpLoanRepaymentPayQrCodeFragment, (String[]) Arrays.copyOf(strArr2, strArr2.length))) {
|
|
guQ.b("onNeverAskAgainAndroid13", new Object[0]);
|
|
levelUpLoanRepaymentPayQrCodeFragment.d();
|
|
return;
|
|
} else {
|
|
guQ.b("onPermissionDeniedAndroid13", new Object[0]);
|
|
levelUpLoanRepaymentPayQrCodeFragment.a((Throwable) null);
|
|
return;
|
|
}
|
|
}
|
|
levelUpLoanRepaymentPayQrCodeFragment.f();
|
|
}
|
|
}
|
|
}
|