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