97 lines
3.9 KiB
Java
97 lines
3.9 KiB
Java
package o;
|
|
|
|
import android.content.DialogInterface;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import com.scb.phone.view.custom.common.CustomDialog;
|
|
import com.scb.phone.view.fragment.landingpage.PartnerWebViewFragment;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* renamed from: o.fmi, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C14095fmi {
|
|
private static final String[] c = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE"};
|
|
private static final String[] e = {"android.permission.CAMERA"};
|
|
|
|
public static void a(PartnerWebViewFragment partnerWebViewFragment) {
|
|
FragmentActivity requireActivity = partnerWebViewFragment.requireActivity();
|
|
String[] strArr = c;
|
|
if (!C15581guh.b(requireActivity, strArr)) {
|
|
if (C15581guh.e(partnerWebViewFragment, strArr)) {
|
|
final HBt hBt = new HBt(partnerWebViewFragment, (byte) 0);
|
|
if (partnerWebViewFragment.getUserVisibleHint()) {
|
|
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(partnerWebViewFragment.getContext()).c(com.scb.phone.R.string.permission_storage_camera_title).d(com.scb.phone.R.string.permission_storage_camera).aoT_(com.scb.phone.R.string.permission_allow, new DialogInterface.OnClickListener(hBt) { // from class: o.fme
|
|
private InterfaceC15577gud a;
|
|
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
this.a.c();
|
|
}
|
|
|
|
{
|
|
this.a = hBt;
|
|
}
|
|
}), Integer.valueOf(com.scb.phone.R.string.permission_deny), new DialogInterface.OnClickListener(hBt) { // from class: o.fmh
|
|
private InterfaceC15577gud d;
|
|
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
this.d.e();
|
|
}
|
|
|
|
{
|
|
this.d = hBt;
|
|
}
|
|
}})).show();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
partnerWebViewFragment.requestPermissions(strArr, 95);
|
|
return;
|
|
}
|
|
partnerWebViewFragment.i();
|
|
}
|
|
|
|
public static void c(PartnerWebViewFragment partnerWebViewFragment) {
|
|
FragmentActivity requireActivity = partnerWebViewFragment.requireActivity();
|
|
String[] strArr = e;
|
|
if (!C15581guh.b(requireActivity, strArr)) {
|
|
partnerWebViewFragment.requestPermissions(strArr, 96);
|
|
} else {
|
|
partnerWebViewFragment.i();
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.fmi$HBt */
|
|
/* loaded from: classes5.dex */
|
|
static final class HBt implements InterfaceC15577gud {
|
|
private final WeakReference<PartnerWebViewFragment> d;
|
|
|
|
private HBt(PartnerWebViewFragment partnerWebViewFragment) {
|
|
this.d = new WeakReference<>(partnerWebViewFragment);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void c() {
|
|
PartnerWebViewFragment partnerWebViewFragment = this.d.get();
|
|
if (partnerWebViewFragment == null) {
|
|
return;
|
|
}
|
|
partnerWebViewFragment.requestPermissions(C14095fmi.c, 95);
|
|
}
|
|
|
|
@Override // o.InterfaceC15577gud
|
|
public final void e() {
|
|
PartnerWebViewFragment partnerWebViewFragment = this.d.get();
|
|
if (partnerWebViewFragment == null) {
|
|
return;
|
|
}
|
|
partnerWebViewFragment.getUserVisibleHint();
|
|
}
|
|
|
|
/* synthetic */ HBt(PartnerWebViewFragment partnerWebViewFragment, byte b) {
|
|
this(partnerWebViewFragment);
|
|
}
|
|
}
|
|
}
|