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

102 lines
3.7 KiB
Java

package o;
import androidx.core.app.ActivityCompat;
import com.scb.phone.view.activity.ndid.NationalIdCameraActivity;
import java.lang.ref.WeakReference;
/* renamed from: o.ebT, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C11231ebT {
private static final String[] e = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] b = {"android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES"};
public static void a(NationalIdCameraActivity nationalIdCameraActivity) {
String[] strArr = b;
if (!C15581guh.b(nationalIdCameraActivity, strArr)) {
if (!C15581guh.aDf_(nationalIdCameraActivity, strArr)) {
ActivityCompat.lM_(nationalIdCameraActivity, strArr, 83);
return;
} else {
nationalIdCameraActivity.b(new Sts(nationalIdCameraActivity, (byte) 0));
return;
}
}
nationalIdCameraActivity.f();
}
public static void b(NationalIdCameraActivity nationalIdCameraActivity) {
String[] strArr = e;
if (C15581guh.b(nationalIdCameraActivity, strArr)) {
nationalIdCameraActivity.f();
} else if (C15581guh.aDf_(nationalIdCameraActivity, strArr)) {
nationalIdCameraActivity.b(new IeS(nationalIdCameraActivity, (byte) 0));
} else {
ActivityCompat.lM_(nationalIdCameraActivity, strArr, 82);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.ebT$Sts */
/* loaded from: classes5.dex */
public static final class Sts implements InterfaceC15577gud {
private final WeakReference<NationalIdCameraActivity> d;
private Sts(NationalIdCameraActivity nationalIdCameraActivity) {
this.d = new WeakReference<>(nationalIdCameraActivity);
}
@Override // o.InterfaceC15577gud
public final void c() {
NationalIdCameraActivity nationalIdCameraActivity = this.d.get();
if (nationalIdCameraActivity == null) {
return;
}
ActivityCompat.lM_(nationalIdCameraActivity, C11231ebT.b, 83);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.d.get() == null) {
return;
}
NationalIdCameraActivity.h();
}
/* synthetic */ Sts(NationalIdCameraActivity nationalIdCameraActivity, byte b) {
this(nationalIdCameraActivity);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.ebT$IeS */
/* loaded from: classes5.dex */
public static final class IeS implements InterfaceC15577gud {
private final WeakReference<NationalIdCameraActivity> e;
private IeS(NationalIdCameraActivity nationalIdCameraActivity) {
this.e = new WeakReference<>(nationalIdCameraActivity);
}
@Override // o.InterfaceC15577gud
public final void c() {
NationalIdCameraActivity nationalIdCameraActivity = this.e.get();
if (nationalIdCameraActivity == null) {
return;
}
ActivityCompat.lM_(nationalIdCameraActivity, C11231ebT.e, 82);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.e.get() == null) {
return;
}
NationalIdCameraActivity.c(new Object[0], 688462049, -688462047, (int) System.currentTimeMillis());
}
/* synthetic */ IeS(NationalIdCameraActivity nationalIdCameraActivity, byte b) {
this(nationalIdCameraActivity);
}
}
}