what-the-bank/sources/o/C14787fzm.java

102 lines
4.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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.requesttopay.EnterProxyFragment;
import java.lang.ref.WeakReference;
/* renamed from: o.fzm, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C14787fzm {
private static final String[] c = {"android.permission.READ_CONTACTS"};
public static void a(EnterProxyFragment enterProxyFragment) {
FragmentActivity requireActivity = enterProxyFragment.requireActivity();
String[] strArr = c;
if (C15581guh.b(requireActivity, strArr)) {
enterProxyFragment.j();
return;
}
if (C15581guh.e(enterProxyFragment, strArr)) {
final RVV rvv = new RVV(enterProxyFragment, (byte) 0);
if (enterProxyFragment.getUserVisibleHint()) {
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(enterProxyFragment.getContext()).c(com.scb.phone.R.string.permission_read_contacts_title).d(com.scb.phone.R.string.permission_read_contacts).aoT_(com.scb.phone.R.string.permission_allow, new DialogInterface.OnClickListener(rvv) { // from class: o.fzf
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
this.b.c();
}
{
this.b = rvv;
}
}), Integer.valueOf(com.scb.phone.R.string.permission_deny), new DialogInterface.OnClickListener(rvv) { // from class: o.fzj
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
this.b.e();
}
{
this.b = rvv;
}
}})).show();
return;
}
return;
}
enterProxyFragment.requestPermissions(strArr, 45);
}
public static void e(EnterProxyFragment enterProxyFragment, int i, int[] iArr) {
if (i == 45) {
if (C15581guh.d(iArr)) {
enterProxyFragment.j();
return;
}
if (!C15581guh.e(enterProxyFragment, c)) {
if (enterProxyFragment.getUserVisibleHint()) {
enterProxyFragment.e(com.scb.phone.R.string.permission_read_contacts_never_ask_again, EnumC8951daY.ERROR);
}
} else if (enterProxyFragment.getUserVisibleHint()) {
enterProxyFragment.e(com.scb.phone.R.string.permission_read_contacts_denied, EnumC8951daY.ERROR);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fzm$RVV */
/* loaded from: classes5.dex */
public static final class RVV implements InterfaceC15577gud {
private final WeakReference<EnterProxyFragment> d;
private RVV(EnterProxyFragment enterProxyFragment) {
this.d = new WeakReference<>(enterProxyFragment);
}
@Override // o.InterfaceC15577gud
public final void c() {
EnterProxyFragment enterProxyFragment = this.d.get();
if (enterProxyFragment == null) {
return;
}
enterProxyFragment.requestPermissions(C14787fzm.c, 45);
}
@Override // o.InterfaceC15577gud
public final void e() {
EnterProxyFragment enterProxyFragment = this.d.get();
if (enterProxyFragment != null && enterProxyFragment.getUserVisibleHint()) {
enterProxyFragment.e(com.scb.phone.R.string.permission_read_contacts_denied, EnumC8951daY.ERROR);
}
}
/* synthetic */ RVV(EnterProxyFragment enterProxyFragment, byte b) {
this(enterProxyFragment);
}
}
}