129 lines
4.4 KiB
Java
129 lines
4.4 KiB
Java
package o;
|
|
|
|
import androidx.core.app.ActivityCompat;
|
|
import com.scb.phone.view.activity.cardmanagement.SaveSlipBaseActivity;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* renamed from: o.dvE, reason: case insensitive filesystem */
|
|
/* loaded from: classes4.dex */
|
|
public final class C10035dvE {
|
|
private static final String[] c = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
|
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
|
|
|
|
public static <T> void b(SaveSlipBaseActivity<T> saveSlipBaseActivity) {
|
|
String[] strArr = c;
|
|
if (C15581guh.b(saveSlipBaseActivity, strArr)) {
|
|
saveSlipBaseActivity.M();
|
|
} else if (C15581guh.aDf_(saveSlipBaseActivity, strArr)) {
|
|
saveSlipBaseActivity.c(new LWm(saveSlipBaseActivity, (byte) 0));
|
|
} else {
|
|
ActivityCompat.lM_(saveSlipBaseActivity, strArr, 119);
|
|
}
|
|
}
|
|
|
|
public static <T> void a(SaveSlipBaseActivity<T> saveSlipBaseActivity) {
|
|
String[] strArr = b;
|
|
if (!C15581guh.b(saveSlipBaseActivity, strArr)) {
|
|
if (!C15581guh.aDf_(saveSlipBaseActivity, strArr)) {
|
|
ActivityCompat.lM_(saveSlipBaseActivity, strArr, 120);
|
|
return;
|
|
} else {
|
|
saveSlipBaseActivity.c(new RVV(saveSlipBaseActivity, (byte) 0));
|
|
return;
|
|
}
|
|
}
|
|
saveSlipBaseActivity.M();
|
|
}
|
|
|
|
public static <T> void b(SaveSlipBaseActivity<T> saveSlipBaseActivity, int i, int[] iArr) {
|
|
if (i == 119) {
|
|
if (C15581guh.d(iArr)) {
|
|
saveSlipBaseActivity.M();
|
|
return;
|
|
} else if (!C15581guh.aDf_(saveSlipBaseActivity, c)) {
|
|
SaveSlipBaseActivity.b(new Object[0], 585433974, -585433974, (int) System.currentTimeMillis());
|
|
return;
|
|
} else {
|
|
SaveSlipBaseActivity.r();
|
|
return;
|
|
}
|
|
}
|
|
if (i == 120) {
|
|
if (!C15581guh.d(iArr)) {
|
|
if (!C15581guh.aDf_(saveSlipBaseActivity, b)) {
|
|
SaveSlipBaseActivity.l();
|
|
return;
|
|
} else {
|
|
SaveSlipBaseActivity.s();
|
|
return;
|
|
}
|
|
}
|
|
saveSlipBaseActivity.M();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.dvE$LWm */
|
|
/* loaded from: classes4.dex */
|
|
public static final class LWm<T> implements InterfaceC15577gud {
|
|
private final WeakReference<SaveSlipBaseActivity<T>> b;
|
|
|
|
private LWm(SaveSlipBaseActivity<T> saveSlipBaseActivity) {
|
|
this.b = new WeakReference<>(saveSlipBaseActivity);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void c() {
|
|
SaveSlipBaseActivity<T> saveSlipBaseActivity = this.b.get();
|
|
if (saveSlipBaseActivity == null) {
|
|
return;
|
|
}
|
|
ActivityCompat.lM_(saveSlipBaseActivity, C10035dvE.c, 119);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void e() {
|
|
if (this.b.get() == null) {
|
|
return;
|
|
}
|
|
SaveSlipBaseActivity.r();
|
|
}
|
|
|
|
/* synthetic */ LWm(SaveSlipBaseActivity saveSlipBaseActivity, byte b) {
|
|
this(saveSlipBaseActivity);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.dvE$RVV */
|
|
/* loaded from: classes4.dex */
|
|
public static final class RVV<T> implements InterfaceC15577gud {
|
|
private final WeakReference<SaveSlipBaseActivity<T>> d;
|
|
|
|
private RVV(SaveSlipBaseActivity<T> saveSlipBaseActivity) {
|
|
this.d = new WeakReference<>(saveSlipBaseActivity);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void c() {
|
|
SaveSlipBaseActivity<T> saveSlipBaseActivity = this.d.get();
|
|
if (saveSlipBaseActivity == null) {
|
|
return;
|
|
}
|
|
ActivityCompat.lM_(saveSlipBaseActivity, C10035dvE.b, 120);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void e() {
|
|
if (this.d.get() == null) {
|
|
return;
|
|
}
|
|
SaveSlipBaseActivity.s();
|
|
}
|
|
|
|
/* synthetic */ RVV(SaveSlipBaseActivity saveSlipBaseActivity, byte b) {
|
|
this(saveSlipBaseActivity);
|
|
}
|
|
}
|
|
}
|