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

141 lines
5.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Intent;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.view.activity.ntb.ekyc.NationalIdActivity;
import com.scb.phone.view.fragment.ntb.ekyc.EkycFragment;
import java.lang.ref.WeakReference;
/* renamed from: o.fql, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C14309fql {
private static final String[] a = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] d = {"android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES"};
private static final String[] b = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] e = {"android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES"};
public static void c(EkycFragment ekycFragment, String str, cEC cec) {
FragmentActivity requireActivity = ekycFragment.requireActivity();
String[] strArr = b;
if (C15581guh.b(requireActivity, strArr)) {
ekycFragment.a(str, cec);
} else {
new Sts(ekycFragment, str, cec, (byte) 0);
ekycFragment.requestPermissions(strArr, 43);
}
}
public static void a(EkycFragment ekycFragment, String str, cEC cec) {
FragmentActivity requireActivity = ekycFragment.requireActivity();
String[] strArr = e;
if (C15581guh.b(requireActivity, strArr)) {
ekycFragment.d(str, cec);
} else {
new HBt(ekycFragment, str, cec, (byte) 0);
ekycFragment.requestPermissions(strArr, 44);
}
}
public static void e(EkycFragment ekycFragment) {
FragmentActivity requireActivity = ekycFragment.requireActivity();
String[] strArr = a;
if (!C15581guh.b(requireActivity, strArr)) {
ekycFragment.requestPermissions(strArr, 41);
} else {
ekycFragment.startActivityForResult(new Intent(ekycFragment.getActivity(), (Class<?>) NationalIdActivity.class), 2);
}
}
public static void a(EkycFragment ekycFragment) {
FragmentActivity requireActivity = ekycFragment.requireActivity();
String[] strArr = d;
if (!C15581guh.b(requireActivity, strArr)) {
ekycFragment.requestPermissions(strArr, 42);
} else {
ekycFragment.startActivityForResult(new Intent(ekycFragment.getActivity(), (Class<?>) NationalIdActivity.class), 2);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fql$Sts */
/* loaded from: classes5.dex */
public static final class Sts implements InterfaceC15579guf {
private final WeakReference<EkycFragment> c;
private final cEC d;
private final String e;
@Override // o.InterfaceC15577gud
public final void e() {
}
private Sts(EkycFragment ekycFragment, String str, cEC cec) {
this.c = new WeakReference<>(ekycFragment);
this.e = str;
this.d = cec;
}
@Override // o.InterfaceC15577gud
public final void c() {
EkycFragment ekycFragment = this.c.get();
if (ekycFragment == null) {
return;
}
ekycFragment.requestPermissions(C14309fql.b, 43);
}
@Override // o.InterfaceC15579guf
public final void a() {
EkycFragment ekycFragment = this.c.get();
if (ekycFragment == null) {
return;
}
ekycFragment.a(this.e, this.d);
}
/* synthetic */ Sts(EkycFragment ekycFragment, String str, cEC cec, byte b) {
this(ekycFragment, str, cec);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fql$HBt */
/* loaded from: classes5.dex */
public static final class HBt implements InterfaceC15579guf {
private final cEC b;
private final WeakReference<EkycFragment> c;
private final String e;
@Override // o.InterfaceC15577gud
public final void e() {
}
private HBt(EkycFragment ekycFragment, String str, cEC cec) {
this.c = new WeakReference<>(ekycFragment);
this.e = str;
this.b = cec;
}
@Override // o.InterfaceC15577gud
public final void c() {
EkycFragment ekycFragment = this.c.get();
if (ekycFragment == null) {
return;
}
ekycFragment.requestPermissions(C14309fql.e, 44);
}
@Override // o.InterfaceC15579guf
public final void a() {
EkycFragment ekycFragment = this.c.get();
if (ekycFragment == null) {
return;
}
ekycFragment.d(this.e, this.b);
}
/* synthetic */ HBt(EkycFragment ekycFragment, String str, cEC cec, byte b) {
this(ekycFragment, str, cec);
}
}
}