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

115 lines
4.2 KiB
Java

package o;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.fragment.promptpay.PromptPayQRSuccessFragment;
import java.lang.ref.WeakReference;
/* renamed from: o.fvK, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C14547fvK {
private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] c = {"android.permission.READ_MEDIA_IMAGES"};
public static void e(PromptPayQRSuccessFragment promptPayQRSuccessFragment) {
FragmentActivity requireActivity = promptPayQRSuccessFragment.requireActivity();
String[] strArr = b;
if (C15581guh.b(requireActivity, strArr)) {
C7885cwl c7885cwl = promptPayQRSuccessFragment.promptPayQRSuccessPresenter;
C7891cwr c7891cwr = new C7891cwr(c7885cwl, true);
if (c7885cwl.f != 0) {
c7891cwr.e(c7885cwl.f);
return;
}
return;
}
if (C15581guh.e(promptPayQRSuccessFragment, strArr)) {
promptPayQRSuccessFragment.d(new IeS(promptPayQRSuccessFragment, (byte) 0));
} else {
promptPayQRSuccessFragment.requestPermissions(strArr, 99);
}
}
public static void d(PromptPayQRSuccessFragment promptPayQRSuccessFragment) {
FragmentActivity requireActivity = promptPayQRSuccessFragment.requireActivity();
String[] strArr = c;
if (!C15581guh.b(requireActivity, strArr)) {
if (!C15581guh.e(promptPayQRSuccessFragment, strArr)) {
promptPayQRSuccessFragment.requestPermissions(strArr, 100);
return;
} else {
promptPayQRSuccessFragment.d(new RVV(promptPayQRSuccessFragment, (byte) 0));
return;
}
}
C7885cwl c7885cwl = promptPayQRSuccessFragment.promptPayQRSuccessPresenter;
C7891cwr c7891cwr = new C7891cwr(c7885cwl, true);
if (c7885cwl.f != 0) {
c7891cwr.e(c7885cwl.f);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fvK$IeS */
/* loaded from: classes5.dex */
public static final class IeS implements InterfaceC15577gud {
private final WeakReference<PromptPayQRSuccessFragment> a;
private IeS(PromptPayQRSuccessFragment promptPayQRSuccessFragment) {
this.a = new WeakReference<>(promptPayQRSuccessFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
PromptPayQRSuccessFragment promptPayQRSuccessFragment = this.a.get();
if (promptPayQRSuccessFragment == null) {
return;
}
promptPayQRSuccessFragment.requestPermissions(C14547fvK.b, 99);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.a.get() == null) {
return;
}
PromptPayQRSuccessFragment.i();
}
/* synthetic */ IeS(PromptPayQRSuccessFragment promptPayQRSuccessFragment, byte b) {
this(promptPayQRSuccessFragment);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fvK$RVV */
/* loaded from: classes5.dex */
public static final class RVV implements InterfaceC15577gud {
private final WeakReference<PromptPayQRSuccessFragment> d;
private RVV(PromptPayQRSuccessFragment promptPayQRSuccessFragment) {
this.d = new WeakReference<>(promptPayQRSuccessFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
PromptPayQRSuccessFragment promptPayQRSuccessFragment = this.d.get();
if (promptPayQRSuccessFragment == null) {
return;
}
promptPayQRSuccessFragment.requestPermissions(C14547fvK.c, 100);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.d.get() == null) {
return;
}
PromptPayQRSuccessFragment.j();
}
/* synthetic */ RVV(PromptPayQRSuccessFragment promptPayQRSuccessFragment, byte b) {
this(promptPayQRSuccessFragment);
}
}
}