97 lines
3.6 KiB
Java
97 lines
3.6 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.findus.BaseMapTabFragment;
|
||
|
import java.lang.ref.WeakReference;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class eZD {
|
||
|
private static final String[] b = {"android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"};
|
||
|
|
||
|
public static void b(BaseMapTabFragment baseMapTabFragment) {
|
||
|
FragmentActivity requireActivity = baseMapTabFragment.requireActivity();
|
||
|
String[] strArr = b;
|
||
|
if (C15581guh.b(requireActivity, strArr)) {
|
||
|
baseMapTabFragment.d();
|
||
|
return;
|
||
|
}
|
||
|
if (C15581guh.e(baseMapTabFragment, strArr)) {
|
||
|
final IeS ieS = new IeS(baseMapTabFragment, (byte) 0);
|
||
|
if (baseMapTabFragment.getUserVisibleHint()) {
|
||
|
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(baseMapTabFragment.getContext()).c(com.scb.phone.R.string.permission_location_title).d(com.scb.phone.R.string.permission_location_denied).aoT_(com.scb.phone.R.string.permission_allow, new DialogInterface.OnClickListener(ieS) { // from class: o.eZv
|
||
|
private InterfaceC15577gud d;
|
||
|
|
||
|
@Override // android.content.DialogInterface.OnClickListener
|
||
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
||
|
this.d.c();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = ieS;
|
||
|
}
|
||
|
}), Integer.valueOf(com.scb.phone.R.string.permission_deny), new DialogInterface.OnClickListener(ieS) { // from class: o.eZz
|
||
|
private InterfaceC15577gud e;
|
||
|
|
||
|
@Override // android.content.DialogInterface.OnClickListener
|
||
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
||
|
this.e.e();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = ieS;
|
||
|
}
|
||
|
}})).show();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
baseMapTabFragment.requestPermissions(strArr, 6);
|
||
|
}
|
||
|
|
||
|
public static void d(BaseMapTabFragment baseMapTabFragment, int i, int[] iArr) {
|
||
|
if (i == 6) {
|
||
|
if (C15581guh.d(iArr)) {
|
||
|
baseMapTabFragment.d();
|
||
|
} else if (!C15581guh.e(baseMapTabFragment, b)) {
|
||
|
baseMapTabFragment.j();
|
||
|
} else {
|
||
|
baseMapTabFragment.h();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class IeS implements InterfaceC15577gud {
|
||
|
private final WeakReference<BaseMapTabFragment> b;
|
||
|
|
||
|
private IeS(BaseMapTabFragment baseMapTabFragment) {
|
||
|
this.b = new WeakReference<>(baseMapTabFragment);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15577gud
|
||
|
public final void c() {
|
||
|
BaseMapTabFragment baseMapTabFragment = this.b.get();
|
||
|
if (baseMapTabFragment == null) {
|
||
|
return;
|
||
|
}
|
||
|
baseMapTabFragment.requestPermissions(eZD.b, 6);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15577gud
|
||
|
public final void e() {
|
||
|
BaseMapTabFragment baseMapTabFragment = this.b.get();
|
||
|
if (baseMapTabFragment == null) {
|
||
|
return;
|
||
|
}
|
||
|
baseMapTabFragment.h();
|
||
|
}
|
||
|
|
||
|
/* synthetic */ IeS(BaseMapTabFragment baseMapTabFragment, byte b) {
|
||
|
this(baseMapTabFragment);
|
||
|
}
|
||
|
}
|
||
|
}
|