61 lines
2.1 KiB
Java
61 lines
2.1 KiB
Java
|
package o;
|
||
|
|
||
|
import androidx.core.app.ActivityCompat;
|
||
|
import com.scb.phone.view.activity.personalize.ShortcutRouterActivity;
|
||
|
|
||
|
/* renamed from: o.efL, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C11435efL {
|
||
|
private static final String[] e = {"android.permission.WRITE_EXTERNAL_STORAGE"};
|
||
|
private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"};
|
||
|
|
||
|
public static void e(ShortcutRouterActivity shortcutRouterActivity) {
|
||
|
String[] strArr = e;
|
||
|
if (C15581guh.b(shortcutRouterActivity, strArr)) {
|
||
|
shortcutRouterActivity.g();
|
||
|
} else {
|
||
|
ActivityCompat.lM_(shortcutRouterActivity, strArr, 128);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static void a(ShortcutRouterActivity shortcutRouterActivity) {
|
||
|
String[] strArr = b;
|
||
|
if (!C15581guh.b(shortcutRouterActivity, strArr)) {
|
||
|
ActivityCompat.lM_(shortcutRouterActivity, strArr, 129);
|
||
|
} else {
|
||
|
shortcutRouterActivity.g();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static void d(ShortcutRouterActivity shortcutRouterActivity, int i, int[] iArr) {
|
||
|
if (i == 128) {
|
||
|
if (C15581guh.d(iArr)) {
|
||
|
shortcutRouterActivity.g();
|
||
|
return;
|
||
|
} else if (!C15581guh.aDf_(shortcutRouterActivity, e)) {
|
||
|
guQ.b("onNeverAskAgain", new Object[0]);
|
||
|
shortcutRouterActivity.finish();
|
||
|
return;
|
||
|
} else {
|
||
|
guQ.b("onPermissionDenied", new Object[0]);
|
||
|
shortcutRouterActivity.finish();
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
if (i == 129) {
|
||
|
if (!C15581guh.d(iArr)) {
|
||
|
if (!C15581guh.aDf_(shortcutRouterActivity, b)) {
|
||
|
guQ.b("onNeverAskAgainAndroid13", new Object[0]);
|
||
|
shortcutRouterActivity.finish();
|
||
|
return;
|
||
|
} else {
|
||
|
guQ.b("onPermissionDeniedAndroid13", new Object[0]);
|
||
|
shortcutRouterActivity.finish();
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
shortcutRouterActivity.g();
|
||
|
}
|
||
|
}
|
||
|
}
|