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

99 lines
4.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import androidx.core.app.ActivityCompat;
import com.scb.phone.view.activity.easycash.EasycashNcbSlipActivity;
import java.util.Arrays;
/* renamed from: o.dJt, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C8394dJt {
private static InterfaceC15579guf c;
private static InterfaceC15579guf e;
private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] d = {"android.permission.READ_MEDIA_IMAGES"};
public static final void e(EasycashNcbSlipActivity easycashNcbSlipActivity, String str) {
C14957gcv.e(easycashNcbSlipActivity, "");
C14957gcv.e(str, "");
String[] strArr = d;
if (C15581guh.b(easycashNcbSlipActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
C14957gcv.e(str, "");
easycashNcbSlipActivity.c(str);
return;
}
c = new C8391dJq(easycashNcbSlipActivity, str);
EasycashNcbSlipActivity easycashNcbSlipActivity2 = easycashNcbSlipActivity;
if (!C15581guh.aDf_(easycashNcbSlipActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) {
ActivityCompat.lM_(easycashNcbSlipActivity2, strArr, 38);
return;
}
InterfaceC15579guf interfaceC15579guf = c;
if (interfaceC15579guf != null) {
InterfaceC15579guf interfaceC15579guf2 = interfaceC15579guf;
C14957gcv.e(interfaceC15579guf2, "");
easycashNcbSlipActivity.b(interfaceC15579guf2);
}
}
public static final void d(EasycashNcbSlipActivity easycashNcbSlipActivity, String str) {
C14957gcv.e(easycashNcbSlipActivity, "");
C14957gcv.e(str, "");
String[] strArr = b;
if (C15581guh.b(easycashNcbSlipActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
easycashNcbSlipActivity.c(str);
return;
}
e = new C8397dJw(easycashNcbSlipActivity, str);
EasycashNcbSlipActivity easycashNcbSlipActivity2 = easycashNcbSlipActivity;
if (!C15581guh.aDf_(easycashNcbSlipActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) {
ActivityCompat.lM_(easycashNcbSlipActivity2, strArr, 37);
return;
}
InterfaceC15579guf interfaceC15579guf = e;
if (interfaceC15579guf != null) {
easycashNcbSlipActivity.b(interfaceC15579guf);
}
}
public static final void e(EasycashNcbSlipActivity easycashNcbSlipActivity, int i, int[] iArr) {
C14957gcv.e(easycashNcbSlipActivity, "");
C14957gcv.e(iArr, "");
if (i == 37) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
InterfaceC15579guf interfaceC15579guf = e;
if (interfaceC15579guf != null) {
interfaceC15579guf.a();
}
} else {
String[] strArr = b;
if (!C15581guh.aDf_(easycashNcbSlipActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
EasycashNcbSlipActivity.b(new Object[]{easycashNcbSlipActivity}, 1801756512, -1801756512, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 1673105959);
} else {
easycashNcbSlipActivity.j();
}
}
e = null;
return;
}
if (i == 38) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
InterfaceC15579guf interfaceC15579guf2 = c;
if (interfaceC15579guf2 != null) {
interfaceC15579guf2.a();
}
} else {
String[] strArr2 = d;
if (!C15581guh.aDf_(easycashNcbSlipActivity, (String[]) Arrays.copyOf(strArr2, strArr2.length))) {
guQ.b("onNeverAskAgainAndroid13", new Object[0]);
EasycashNcbSlipActivity.b(new Object[]{easycashNcbSlipActivity}, 1801756512, -1801756512, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 1673105959);
} else {
guQ.b("onPermissionDeniedAndroid13", new Object[0]);
easycashNcbSlipActivity.j();
}
}
c = null;
}
}
}