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

163 lines
5.7 KiB
Java
Raw Normal View History

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