what-the-bank/sources/com/scb/phone/view/fragment/ScreenShotFragment.java

81 lines
2.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment;
import android.content.DialogInterface;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import o.EO;
import o.InterfaceC15577gud;
import o.InterfaceC8936daJ;
import o.eEX;
import o.guQ;
/* loaded from: classes5.dex */
public abstract class ScreenShotFragment<T extends EO> extends BaseFragment implements InterfaceC8936daJ {
protected abstract void d(T t, boolean z, boolean z2);
public final void b(final InterfaceC15577gud interfaceC15577gud) {
guQ.b("onShowRationale", new Object[0]);
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.permission_storage_title).d(R.string.permission_storage).aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.eEQ
private InterfaceC15577gud e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
this.e.c();
}
{
this.e = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.eET
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
this.b.e();
}
{
this.b = interfaceC15577gud;
}
}})).show();
}
public static void r() {
guQ.b("onNeverAskAgainAndroid13", new Object[0]);
}
public static void bg_() {
guQ.b("onNeverAskAgain", new Object[0]);
}
public static void A() {
guQ.b("onPermissionDeniedAndroid13", new Object[0]);
}
public static void w() {
guQ.b("onPermissionDenied", new Object[0]);
}
@Override // androidx.fragment.app.Fragment
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i, strArr, iArr);
eEX.b(this, i, iArr);
}
/* renamed from: a */
public void d(T t, boolean z, boolean z2) {
d(t, z, z2);
}
public final void c(T t, boolean z) {
if (getActivity() != null) {
if (BaseActivity.P()) {
eEX.e(this, t, false, z);
return;
}
}
eEX.d(this, t, false, z);
}
}