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

161 lines
5.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.investment.FundActionsSuccessFragment;
import java.lang.ref.WeakReference;
/* renamed from: o.ffM, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C13702ffM {
private static InterfaceC15579guf a;
private static InterfaceC15579guf c;
private static final String[] e = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
public static void a(FundActionsSuccessFragment fundActionsSuccessFragment, boolean z) {
FragmentActivity requireActivity = fundActionsSuccessFragment.requireActivity();
String[] strArr = e;
if (C15581guh.b(requireActivity, strArr)) {
fundActionsSuccessFragment.e(z);
return;
}
a = new Sts(fundActionsSuccessFragment, z, (byte) 0);
if (C15581guh.e(fundActionsSuccessFragment, strArr)) {
fundActionsSuccessFragment.a(a);
} else {
fundActionsSuccessFragment.requestPermissions(strArr, 54);
}
}
public static void c(FundActionsSuccessFragment fundActionsSuccessFragment, boolean z) {
FragmentActivity requireActivity = fundActionsSuccessFragment.requireActivity();
String[] strArr = b;
if (!C15581guh.b(requireActivity, strArr)) {
c = new LWm(fundActionsSuccessFragment, z, (byte) 0);
if (!C15581guh.e(fundActionsSuccessFragment, strArr)) {
fundActionsSuccessFragment.requestPermissions(strArr, 55);
return;
}
InterfaceC15579guf interfaceC15579guf = c;
guQ.b("onShowRationaleAndroid13", new Object[0]);
fundActionsSuccessFragment.a(interfaceC15579guf);
return;
}
fundActionsSuccessFragment.e(z);
}
public static void a(FundActionsSuccessFragment fundActionsSuccessFragment, int i, int[] iArr) {
if (i == 54) {
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf = a;
if (interfaceC15579guf != null) {
interfaceC15579guf.a();
}
} else if (!C15581guh.e(fundActionsSuccessFragment, e)) {
FundActionsSuccessFragment.j();
} else {
FundActionsSuccessFragment.f();
}
a = null;
return;
}
if (i == 55) {
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf2 = c;
if (interfaceC15579guf2 != null) {
interfaceC15579guf2.a();
}
} else if (!C15581guh.e(fundActionsSuccessFragment, b)) {
FundActionsSuccessFragment.h();
} else {
FundActionsSuccessFragment.i();
}
c = null;
}
}
/* renamed from: o.ffM$Sts */
/* loaded from: classes5.dex */
static final class Sts implements InterfaceC15579guf {
private final WeakReference<FundActionsSuccessFragment> a;
private final boolean b;
private Sts(FundActionsSuccessFragment fundActionsSuccessFragment, boolean z) {
this.a = new WeakReference<>(fundActionsSuccessFragment);
this.b = z;
}
@Override // o.InterfaceC15577gud
public final void c() {
FundActionsSuccessFragment fundActionsSuccessFragment = this.a.get();
if (fundActionsSuccessFragment == null) {
return;
}
fundActionsSuccessFragment.requestPermissions(C13702ffM.e, 54);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.a.get() == null) {
return;
}
FundActionsSuccessFragment.f();
}
@Override // o.InterfaceC15579guf
public final void a() {
FundActionsSuccessFragment fundActionsSuccessFragment = this.a.get();
if (fundActionsSuccessFragment == null) {
return;
}
fundActionsSuccessFragment.e(this.b);
}
/* synthetic */ Sts(FundActionsSuccessFragment fundActionsSuccessFragment, boolean z, byte b) {
this(fundActionsSuccessFragment, z);
}
}
/* renamed from: o.ffM$LWm */
/* loaded from: classes5.dex */
static final class LWm implements InterfaceC15579guf {
private final boolean a;
private final WeakReference<FundActionsSuccessFragment> b;
private LWm(FundActionsSuccessFragment fundActionsSuccessFragment, boolean z) {
this.b = new WeakReference<>(fundActionsSuccessFragment);
this.a = z;
}
@Override // o.InterfaceC15577gud
public final void c() {
FundActionsSuccessFragment fundActionsSuccessFragment = this.b.get();
if (fundActionsSuccessFragment == null) {
return;
}
fundActionsSuccessFragment.requestPermissions(C13702ffM.b, 55);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.b.get() == null) {
return;
}
FundActionsSuccessFragment.i();
}
@Override // o.InterfaceC15579guf
public final void a() {
FundActionsSuccessFragment fundActionsSuccessFragment = this.b.get();
if (fundActionsSuccessFragment == null) {
return;
}
fundActionsSuccessFragment.e(this.a);
}
/* synthetic */ LWm(FundActionsSuccessFragment fundActionsSuccessFragment, boolean z, byte b) {
this(fundActionsSuccessFragment, z);
}
}
}