package o; import androidx.fragment.app.FragmentActivity; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.fragment.registration.onboarding.RegistrationPushNotificationFragment; /* renamed from: o.fwZ, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C14615fwZ { private static final String[] b = {"android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"}; private static final String[] e = {"android.permission.POST_NOTIFICATIONS"}; public static void e(RegistrationPushNotificationFragment registrationPushNotificationFragment) { FragmentActivity requireActivity = registrationPushNotificationFragment.requireActivity(); String[] strArr = b; if (C15581guh.b(requireActivity, strArr)) { registrationPushNotificationFragment.h(); } else { registrationPushNotificationFragment.requestPermissions(strArr, 104); } } public static void d(RegistrationPushNotificationFragment registrationPushNotificationFragment) { FragmentActivity requireActivity = registrationPushNotificationFragment.requireActivity(); String[] strArr = e; if (!C15581guh.b(requireActivity, strArr)) { registrationPushNotificationFragment.requestPermissions(strArr, 105); } else { registrationPushNotificationFragment.registrationPushNotificationPresenter.a(true); } } public static void d(RegistrationPushNotificationFragment registrationPushNotificationFragment, int i, int[] iArr) { if (i != 104) { if (i == 105) { if (C15581guh.d(iArr)) { registrationPushNotificationFragment.registrationPushNotificationPresenter.a(true); return; } else { registrationPushNotificationFragment.registrationPushNotificationPresenter.e(true); return; } } return; } if (C15581guh.d(iArr)) { registrationPushNotificationFragment.h(); return; } if (!C15581guh.e(registrationPushNotificationFragment, b)) { RegistrationPushNotificationFragment.i(); return; } guQ.b("onPermissionDenied", new Object[0]); if (registrationPushNotificationFragment.getActivity() != null) { if (BaseActivity.P()) { fJA fja = registrationPushNotificationFragment.c; if (fja != null) { fja.e("RegistrationPushNotificationFragment"); return; } return; } } cAL cal = registrationPushNotificationFragment.registrationPushNotificationPresenter; cAL.a(new Object[]{cal}, -1162901698, 1162901698, System.identityHashCode(cal)); } }