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

163 lines
6.3 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.mwpartner.MwCreateQrActivity;
import java.lang.ref.WeakReference;
/* renamed from: o.dZz, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C8925dZz {
private static InterfaceC15579guf a;
private static InterfaceC15579guf d;
private static final String[] c = {"android.permission.WRITE_EXTERNAL_STORAGE"};
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
public static void d(MwCreateQrActivity mwCreateQrActivity, boolean z) {
String[] strArr = b;
byte b2 = 0;
if (!C15581guh.b(mwCreateQrActivity, strArr)) {
d = new Sts(mwCreateQrActivity, z, b2);
if (!C15581guh.aDf_(mwCreateQrActivity, strArr)) {
ActivityCompat.lM_(mwCreateQrActivity, strArr, 77);
return;
} else {
mwCreateQrActivity.c(d);
return;
}
}
MwCreateQrActivity.c(new Object[]{mwCreateQrActivity, Boolean.valueOf(z)}, 1871797632, -1871797630, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) + 462083414);
}
public static void a(MwCreateQrActivity mwCreateQrActivity, boolean z) {
String[] strArr = c;
byte b2 = 0;
if (C15581guh.b(mwCreateQrActivity, strArr)) {
MwCreateQrActivity.c(new Object[]{mwCreateQrActivity, Boolean.valueOf(z)}, 1871797632, -1871797630, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) + 462083414);
return;
}
a = new HBt(mwCreateQrActivity, z, b2);
if (C15581guh.aDf_(mwCreateQrActivity, strArr)) {
mwCreateQrActivity.c(a);
} else {
ActivityCompat.lM_(mwCreateQrActivity, strArr, 76);
}
}
public static void a(MwCreateQrActivity mwCreateQrActivity, int i, int[] iArr) {
if (i == 76) {
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf = a;
if (interfaceC15579guf != null) {
interfaceC15579guf.a();
}
} else if (!C15581guh.aDf_(mwCreateQrActivity, c)) {
MwCreateQrActivity.f();
} else {
MwCreateQrActivity.j();
}
a = null;
return;
}
if (i == 77) {
if (C15581guh.d(iArr)) {
InterfaceC15579guf interfaceC15579guf2 = d;
if (interfaceC15579guf2 != null) {
interfaceC15579guf2.a();
}
} else if (!C15581guh.aDf_(mwCreateQrActivity, b)) {
MwCreateQrActivity.g();
} else {
MwCreateQrActivity.h();
}
d = null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.dZz$Sts */
/* loaded from: classes5.dex */
public static final class Sts implements InterfaceC15579guf {
private final WeakReference<MwCreateQrActivity> b;
private final boolean c;
private Sts(MwCreateQrActivity mwCreateQrActivity, boolean z) {
this.b = new WeakReference<>(mwCreateQrActivity);
this.c = z;
}
@Override // o.InterfaceC15577gud
public final void c() {
MwCreateQrActivity mwCreateQrActivity = this.b.get();
if (mwCreateQrActivity == null) {
return;
}
ActivityCompat.lM_(mwCreateQrActivity, C8925dZz.b, 77);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.b.get() == null) {
return;
}
MwCreateQrActivity.h();
}
@Override // o.InterfaceC15579guf
public final void a() {
MwCreateQrActivity mwCreateQrActivity = this.b.get();
if (mwCreateQrActivity == null) {
return;
}
MwCreateQrActivity.c(new Object[]{mwCreateQrActivity, Boolean.valueOf(this.c)}, 1871797632, -1871797630, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) + 462083414);
}
/* synthetic */ Sts(MwCreateQrActivity mwCreateQrActivity, boolean z, byte b) {
this(mwCreateQrActivity, z);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.dZz$HBt */
/* loaded from: classes5.dex */
public static final class HBt implements InterfaceC15579guf {
private final WeakReference<MwCreateQrActivity> a;
private final boolean b;
private HBt(MwCreateQrActivity mwCreateQrActivity, boolean z) {
this.a = new WeakReference<>(mwCreateQrActivity);
this.b = z;
}
@Override // o.InterfaceC15577gud
public final void c() {
MwCreateQrActivity mwCreateQrActivity = this.a.get();
if (mwCreateQrActivity == null) {
return;
}
ActivityCompat.lM_(mwCreateQrActivity, C8925dZz.c, 76);
}
@Override // o.InterfaceC15577gud
public final void e() {
if (this.a.get() == null) {
return;
}
MwCreateQrActivity.j();
}
@Override // o.InterfaceC15579guf
public final void a() {
MwCreateQrActivity mwCreateQrActivity = this.a.get();
if (mwCreateQrActivity == null) {
return;
}
MwCreateQrActivity.c(new Object[]{mwCreateQrActivity, Boolean.valueOf(this.b)}, 1871797632, -1871797630, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) + 462083414);
}
/* synthetic */ HBt(MwCreateQrActivity mwCreateQrActivity, boolean z, byte b) {
this(mwCreateQrActivity, z);
}
}
}