168 lines
5.8 KiB
Java
168 lines
5.8 KiB
Java
|
package o;
|
||
|
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import com.scb.phone.view.fragment.ScreenShotFragment;
|
||
|
import java.lang.ref.WeakReference;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class eEX {
|
||
|
private static InterfaceC15579guf a;
|
||
|
private static InterfaceC15579guf c;
|
||
|
private static final String[] e = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
||
|
private static final String[] d = {"android.permission.READ_MEDIA_IMAGES"};
|
||
|
|
||
|
public static <T extends EO> void d(ScreenShotFragment<T> screenShotFragment, T t, boolean z, boolean z2) {
|
||
|
FragmentActivity requireActivity = screenShotFragment.requireActivity();
|
||
|
String[] strArr = e;
|
||
|
if (C15581guh.b(requireActivity, strArr)) {
|
||
|
screenShotFragment.d(t, false, z2);
|
||
|
return;
|
||
|
}
|
||
|
c = new RVV(screenShotFragment, t, false, z2, (byte) 0);
|
||
|
if (C15581guh.e(screenShotFragment, strArr)) {
|
||
|
screenShotFragment.b(c);
|
||
|
} else {
|
||
|
screenShotFragment.requestPermissions(strArr, 124);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static <T extends EO> void e(ScreenShotFragment<T> screenShotFragment, T t, boolean z, boolean z2) {
|
||
|
FragmentActivity requireActivity = screenShotFragment.requireActivity();
|
||
|
String[] strArr = d;
|
||
|
if (!C15581guh.b(requireActivity, strArr)) {
|
||
|
a = new Sts(screenShotFragment, t, false, z2, (byte) 0);
|
||
|
if (!C15581guh.e(screenShotFragment, strArr)) {
|
||
|
screenShotFragment.requestPermissions(strArr, 125);
|
||
|
return;
|
||
|
}
|
||
|
InterfaceC15579guf interfaceC15579guf = a;
|
||
|
guQ.b("onShowRationaleAndroid13", new Object[0]);
|
||
|
screenShotFragment.b(interfaceC15579guf);
|
||
|
return;
|
||
|
}
|
||
|
screenShotFragment.d(t, false, z2);
|
||
|
}
|
||
|
|
||
|
public static <T extends EO> void b(ScreenShotFragment<T> screenShotFragment, int i, int[] iArr) {
|
||
|
if (i == 124) {
|
||
|
if (C15581guh.d(iArr)) {
|
||
|
InterfaceC15579guf interfaceC15579guf = c;
|
||
|
if (interfaceC15579guf != null) {
|
||
|
interfaceC15579guf.a();
|
||
|
}
|
||
|
} else if (!C15581guh.e(screenShotFragment, e)) {
|
||
|
ScreenShotFragment.bg_();
|
||
|
} else {
|
||
|
ScreenShotFragment.w();
|
||
|
}
|
||
|
c = null;
|
||
|
return;
|
||
|
}
|
||
|
if (i == 125) {
|
||
|
if (C15581guh.d(iArr)) {
|
||
|
InterfaceC15579guf interfaceC15579guf2 = a;
|
||
|
if (interfaceC15579guf2 != null) {
|
||
|
interfaceC15579guf2.a();
|
||
|
}
|
||
|
} else if (!C15581guh.e(screenShotFragment, d)) {
|
||
|
ScreenShotFragment.r();
|
||
|
} else {
|
||
|
ScreenShotFragment.A();
|
||
|
}
|
||
|
a = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class RVV<T extends EO> implements InterfaceC15579guf {
|
||
|
private final T a;
|
||
|
private final boolean b;
|
||
|
private final WeakReference<ScreenShotFragment<T>> c;
|
||
|
private final boolean d;
|
||
|
|
||
|
private RVV(ScreenShotFragment<T> screenShotFragment, T t, boolean z, boolean z2) {
|
||
|
this.c = new WeakReference<>(screenShotFragment);
|
||
|
this.a = t;
|
||
|
this.d = z;
|
||
|
this.b = z2;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15577gud
|
||
|
public final void c() {
|
||
|
ScreenShotFragment<T> screenShotFragment = this.c.get();
|
||
|
if (screenShotFragment == null) {
|
||
|
return;
|
||
|
}
|
||
|
screenShotFragment.requestPermissions(eEX.e, 124);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15577gud
|
||
|
public final void e() {
|
||
|
if (this.c.get() == null) {
|
||
|
return;
|
||
|
}
|
||
|
ScreenShotFragment.w();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15579guf
|
||
|
public final void a() {
|
||
|
ScreenShotFragment<T> screenShotFragment = this.c.get();
|
||
|
if (screenShotFragment == null) {
|
||
|
return;
|
||
|
}
|
||
|
screenShotFragment.d(this.a, this.d, this.b);
|
||
|
}
|
||
|
|
||
|
/* synthetic */ RVV(ScreenShotFragment screenShotFragment, EO eo, boolean z, boolean z2, byte b) {
|
||
|
this(screenShotFragment, eo, z, z2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class Sts<T extends EO> implements InterfaceC15579guf {
|
||
|
private final boolean a;
|
||
|
private final boolean b;
|
||
|
private final T c;
|
||
|
private final WeakReference<ScreenShotFragment<T>> d;
|
||
|
|
||
|
private Sts(ScreenShotFragment<T> screenShotFragment, T t, boolean z, boolean z2) {
|
||
|
this.d = new WeakReference<>(screenShotFragment);
|
||
|
this.c = t;
|
||
|
this.b = z;
|
||
|
this.a = z2;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15577gud
|
||
|
public final void c() {
|
||
|
ScreenShotFragment<T> screenShotFragment = this.d.get();
|
||
|
if (screenShotFragment == null) {
|
||
|
return;
|
||
|
}
|
||
|
screenShotFragment.requestPermissions(eEX.d, 125);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15577gud
|
||
|
public final void e() {
|
||
|
if (this.d.get() == null) {
|
||
|
return;
|
||
|
}
|
||
|
ScreenShotFragment.A();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15579guf
|
||
|
public final void a() {
|
||
|
ScreenShotFragment<T> screenShotFragment = this.d.get();
|
||
|
if (screenShotFragment == null) {
|
||
|
return;
|
||
|
}
|
||
|
screenShotFragment.d(this.c, this.b, this.a);
|
||
|
}
|
||
|
|
||
|
/* synthetic */ Sts(ScreenShotFragment screenShotFragment, EO eo, boolean z, boolean z2, byte b) {
|
||
|
this(screenShotFragment, eo, z, z2);
|
||
|
}
|
||
|
}
|
||
|
}
|