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

83 lines
4.1 KiB
Java

package o;
import android.content.Context;
import android.content.DialogInterface;
import androidx.core.app.ActivityCompat;
import com.scb.phone.view.activity.NhoxActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import java.util.Arrays;
/* renamed from: o.dra, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C9845dra {
private static final String[] d = {"android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"};
private static InterfaceC15579guf e;
public static final void c(NhoxActivity nhoxActivity, boolean z) {
C14957gcv.e(nhoxActivity, "");
NhoxActivity nhoxActivity2 = nhoxActivity;
String[] strArr = d;
if (C15581guh.b(nhoxActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) {
NhoxActivity.c(new Object[]{nhoxActivity, Boolean.valueOf(z)}, 315286432, -315286428, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.e_document_description_mcmc).substring(49, 50).length() - 1621309538);
return;
}
e = new C9787dqV(nhoxActivity, z);
NhoxActivity nhoxActivity3 = nhoxActivity;
if (!C15581guh.aDf_(nhoxActivity3, (String[]) Arrays.copyOf(strArr, strArr.length))) {
ActivityCompat.lM_(nhoxActivity3, strArr, 94);
return;
}
InterfaceC15579guf interfaceC15579guf = e;
if (interfaceC15579guf != null) {
final InterfaceC15579guf interfaceC15579guf2 = interfaceC15579guf;
C14957gcv.e(interfaceC15579guf2, "");
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(nhoxActivity2).c(com.scb.phone.R.string.permission_location_title).d(com.scb.phone.R.string.permission_location_denied).aoT_(com.scb.phone.R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15579guf2) { // from class: o.dqI
private InterfaceC15577gud a;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
NhoxActivity.c(new Object[]{this.a}, 1107704045, -1107704040, (int) System.currentTimeMillis());
}
{
this.a = interfaceC15579guf2;
}
}), Integer.valueOf(com.scb.phone.R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15579guf2) { // from class: o.dqP
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
NhoxActivity.a(this.b);
}
{
this.b = interfaceC15579guf2;
}
}})).show();
}
}
public static final void e(NhoxActivity nhoxActivity, int i, int[] iArr) {
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(iArr, "");
if (i == 94) {
if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) {
InterfaceC15579guf interfaceC15579guf = e;
if (interfaceC15579guf != null) {
interfaceC15579guf.a();
}
} else {
String[] strArr = d;
if (!C15581guh.aDf_(nhoxActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) {
Boolean bool = Boolean.TRUE;
NhoxActivity.c(new Object[]{"requestPermissionStatus", NhoxActivity.a(bool, Boolean.FALSE, bool, null, null, null, 56)}, 843040277, -843040276, (int) System.currentTimeMillis());
} else {
Boolean bool2 = Boolean.FALSE;
NhoxActivity.c(new Object[]{"requestPermissionStatus", NhoxActivity.a(Boolean.TRUE, bool2, bool2, null, null, null, 56)}, 843040277, -843040276, (int) System.currentTimeMillis());
}
}
e = null;
}
}
}