160 lines
5.8 KiB
Java
160 lines
5.8 KiB
Java
package o;
|
|
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import com.scb.phone.view.fragment.transferandpay.billpayment.BillPaymentSuccessFragment;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class fEF {
|
|
private static InterfaceC15579guf d;
|
|
private static InterfaceC15579guf e;
|
|
private static final String[] c = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
|
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
|
|
|
|
public static void d(BillPaymentSuccessFragment billPaymentSuccessFragment, boolean z) {
|
|
FragmentActivity requireActivity = billPaymentSuccessFragment.requireActivity();
|
|
String[] strArr = b;
|
|
if (!C15581guh.b(requireActivity, strArr)) {
|
|
e = new HBt(billPaymentSuccessFragment, z, (byte) 0);
|
|
if (!C15581guh.e(billPaymentSuccessFragment, strArr)) {
|
|
billPaymentSuccessFragment.requestPermissions(strArr, 12);
|
|
return;
|
|
}
|
|
InterfaceC15579guf interfaceC15579guf = e;
|
|
guQ.b("onShowRationaleAndroid13", new Object[0]);
|
|
billPaymentSuccessFragment.b(interfaceC15579guf);
|
|
return;
|
|
}
|
|
billPaymentSuccessFragment.b(z);
|
|
}
|
|
|
|
public static void c(BillPaymentSuccessFragment billPaymentSuccessFragment, boolean z) {
|
|
FragmentActivity requireActivity = billPaymentSuccessFragment.requireActivity();
|
|
String[] strArr = c;
|
|
if (C15581guh.b(requireActivity, strArr)) {
|
|
billPaymentSuccessFragment.b(z);
|
|
return;
|
|
}
|
|
d = new IeS(billPaymentSuccessFragment, z, (byte) 0);
|
|
if (C15581guh.e(billPaymentSuccessFragment, strArr)) {
|
|
billPaymentSuccessFragment.b(d);
|
|
} else {
|
|
billPaymentSuccessFragment.requestPermissions(strArr, 11);
|
|
}
|
|
}
|
|
|
|
public static void b(BillPaymentSuccessFragment billPaymentSuccessFragment, int i, int[] iArr) {
|
|
if (i == 11) {
|
|
if (C15581guh.d(iArr)) {
|
|
InterfaceC15579guf interfaceC15579guf = d;
|
|
if (interfaceC15579guf != null) {
|
|
interfaceC15579guf.a();
|
|
}
|
|
} else if (!C15581guh.e(billPaymentSuccessFragment, c)) {
|
|
BillPaymentSuccessFragment.w();
|
|
} else {
|
|
BillPaymentSuccessFragment.A();
|
|
}
|
|
d = null;
|
|
return;
|
|
}
|
|
if (i == 12) {
|
|
if (C15581guh.d(iArr)) {
|
|
InterfaceC15579guf interfaceC15579guf2 = e;
|
|
if (interfaceC15579guf2 != null) {
|
|
interfaceC15579guf2.a();
|
|
}
|
|
} else if (!C15581guh.e(billPaymentSuccessFragment, b)) {
|
|
BillPaymentSuccessFragment.z();
|
|
} else {
|
|
BillPaymentSuccessFragment.B();
|
|
}
|
|
e = null;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes5.dex */
|
|
public static final class HBt implements InterfaceC15579guf {
|
|
private final boolean b;
|
|
private final WeakReference<BillPaymentSuccessFragment> d;
|
|
|
|
private HBt(BillPaymentSuccessFragment billPaymentSuccessFragment, boolean z) {
|
|
this.d = new WeakReference<>(billPaymentSuccessFragment);
|
|
this.b = z;
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void c() {
|
|
BillPaymentSuccessFragment billPaymentSuccessFragment = this.d.get();
|
|
if (billPaymentSuccessFragment == null) {
|
|
return;
|
|
}
|
|
billPaymentSuccessFragment.requestPermissions(fEF.b, 12);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void e() {
|
|
if (this.d.get() == null) {
|
|
return;
|
|
}
|
|
BillPaymentSuccessFragment.B();
|
|
}
|
|
|
|
@Override // o.InterfaceC15579guf
|
|
public final void a() {
|
|
BillPaymentSuccessFragment billPaymentSuccessFragment = this.d.get();
|
|
if (billPaymentSuccessFragment == null) {
|
|
return;
|
|
}
|
|
billPaymentSuccessFragment.b(this.b);
|
|
}
|
|
|
|
/* synthetic */ HBt(BillPaymentSuccessFragment billPaymentSuccessFragment, boolean z, byte b) {
|
|
this(billPaymentSuccessFragment, z);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes5.dex */
|
|
public static final class IeS implements InterfaceC15579guf {
|
|
private final WeakReference<BillPaymentSuccessFragment> b;
|
|
private final boolean e;
|
|
|
|
private IeS(BillPaymentSuccessFragment billPaymentSuccessFragment, boolean z) {
|
|
this.b = new WeakReference<>(billPaymentSuccessFragment);
|
|
this.e = z;
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void c() {
|
|
BillPaymentSuccessFragment billPaymentSuccessFragment = this.b.get();
|
|
if (billPaymentSuccessFragment == null) {
|
|
return;
|
|
}
|
|
billPaymentSuccessFragment.requestPermissions(fEF.c, 11);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void e() {
|
|
if (this.b.get() == null) {
|
|
return;
|
|
}
|
|
BillPaymentSuccessFragment.A();
|
|
}
|
|
|
|
@Override // o.InterfaceC15579guf
|
|
public final void a() {
|
|
BillPaymentSuccessFragment billPaymentSuccessFragment = this.b.get();
|
|
if (billPaymentSuccessFragment == null) {
|
|
return;
|
|
}
|
|
billPaymentSuccessFragment.b(this.e);
|
|
}
|
|
|
|
/* synthetic */ IeS(BillPaymentSuccessFragment billPaymentSuccessFragment, boolean z, byte b) {
|
|
this(billPaymentSuccessFragment, z);
|
|
}
|
|
}
|
|
}
|