what-the-bank/sources/o/fFY.java

93 lines
4.0 KiB
Java

package o;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.transferandpay.cardlessatm.CardlessSuccessfulRequestFragment;
import java.util.Arrays;
/* loaded from: classes5.dex */
public final class fFY {
private static InterfaceC15579guf b;
private static InterfaceC15579guf c;
private static final String[] e = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] d = {"android.permission.READ_MEDIA_IMAGES"};
public static final void c(CardlessSuccessfulRequestFragment cardlessSuccessfulRequestFragment, XY xy) {
C14957gcv.e(cardlessSuccessfulRequestFragment, "");
FragmentActivity requireActivity = cardlessSuccessfulRequestFragment.requireActivity();
String[] strArr = d;
if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
b = new C12717fFZ(cardlessSuccessfulRequestFragment, xy);
if (!C15581guh.e(cardlessSuccessfulRequestFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) {
cardlessSuccessfulRequestFragment.requestPermissions(strArr, 20);
return;
}
InterfaceC15579guf interfaceC15579guf = b;
if (interfaceC15579guf != null) {
InterfaceC15579guf interfaceC15579guf2 = interfaceC15579guf;
C14957gcv.e(interfaceC15579guf2, "");
cardlessSuccessfulRequestFragment.e(interfaceC15579guf2);
return;
}
return;
}
cardlessSuccessfulRequestFragment.a(xy);
}
public static final void a(CardlessSuccessfulRequestFragment cardlessSuccessfulRequestFragment, XY xy) {
C14957gcv.e(cardlessSuccessfulRequestFragment, "");
FragmentActivity requireActivity = cardlessSuccessfulRequestFragment.requireActivity();
String[] strArr = e;
if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
cardlessSuccessfulRequestFragment.a(xy);
return;
}
c = new C12759fGf(cardlessSuccessfulRequestFragment, xy);
if (!C15581guh.e(cardlessSuccessfulRequestFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) {
cardlessSuccessfulRequestFragment.requestPermissions(strArr, 19);
return;
}
InterfaceC15579guf interfaceC15579guf = c;
if (interfaceC15579guf != null) {
cardlessSuccessfulRequestFragment.e(interfaceC15579guf);
}
}
public static final void e(CardlessSuccessfulRequestFragment cardlessSuccessfulRequestFragment, int i, int[] iArr) {
C14957gcv.e(cardlessSuccessfulRequestFragment, "");
C14957gcv.e(iArr, "");
if (i == 19) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
InterfaceC15579guf interfaceC15579guf = c;
if (interfaceC15579guf != null) {
interfaceC15579guf.a();
}
} else {
String[] strArr = e;
if (!C15581guh.e(cardlessSuccessfulRequestFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) {
CardlessSuccessfulRequestFragment.i();
} else {
CardlessSuccessfulRequestFragment.g();
}
}
c = null;
return;
}
if (i == 20) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
InterfaceC15579guf interfaceC15579guf2 = b;
if (interfaceC15579guf2 != null) {
interfaceC15579guf2.a();
}
} else {
String[] strArr2 = d;
if (!C15581guh.e(cardlessSuccessfulRequestFragment, (String[]) Arrays.copyOf(strArr2, strArr2.length))) {
CardlessSuccessfulRequestFragment.j();
} else {
CardlessSuccessfulRequestFragment.h();
}
}
b = null;
}
}
}