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 void b(SaveSlipBaseActivity 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 void a(SaveSlipBaseActivity 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 void b(SaveSlipBaseActivity 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 implements InterfaceC15577gud { private final WeakReference> b; private LWm(SaveSlipBaseActivity saveSlipBaseActivity) { this.b = new WeakReference<>(saveSlipBaseActivity); } @Override // o.InterfaceC15577gud public final void c() { SaveSlipBaseActivity 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 implements InterfaceC15577gud { private final WeakReference> d; private RVV(SaveSlipBaseActivity saveSlipBaseActivity) { this.d = new WeakReference<>(saveSlipBaseActivity); } @Override // o.InterfaceC15577gud public final void c() { SaveSlipBaseActivity 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); } } }