PermissionUtils.smali
.class public Lcom/sdk/orion/ui/baselibrary/utils/PermissionUtils;
.super Ljava/lang/Object;
# static fields
.field public static PERMISSIONS_STORAGE:[Ljava/lang/String; = null
.field public static final REQUEST_EXTERNAL_STORAGE:I = 0x1
# direct methods
.method static constructor <clinit>()V
.registers 3
const/4 v0, 0x2
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string/jumbo v2, "android.permission.READ_EXTERNAL_STORAGE"
aput-object v2, v0, v1
const/4 v1, 0x1
const-string/jumbo v2, "android.permission.WRITE_EXTERNAL_STORAGE"
aput-object v2, v0, v1
sput-object v0, Lcom/sdk/orion/ui/baselibrary/utils/PermissionUtils;->PERMISSIONS_STORAGE:[Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkPermission(Landroid/content/Context;Ljava/lang/String;)Z
.registers 5
const/4 v0, 0x1
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x17
if-ge v1, v2, :cond_8
:cond_7
:goto_7
return v0
:cond_8
invoke-static {p0, p1}, Landroid/support/v4/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I
move-result v1
if-eqz v1, :cond_7
const/4 v0, 0x0
goto :goto_7
.end method