a$a.smali

.class public final Lcom/singbox/component/storage/a$a;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/singbox/component/storage/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "a"
.end annotation


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/io/File;


# direct methods
.method public constructor <init>(Ljava/io/File;)V
    .registers 3

    .line 110
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 107
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/singbox/component/storage/a$a;->a:Ljava/util/List;

    .line 111
    iput-object p1, p0, Lcom/singbox/component/storage/a$a;->b:Ljava/io/File;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/singbox/component/storage/a$a;
    .registers 2

    .line 124
    invoke-static {}, Lcom/singbox/component/storage/a;->a()Z

    move-result v0

    if-eqz v0, :cond_13

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Landroid/content/Context;->getExternalFilesDir(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_13

    new-instance p0, Lcom/singbox/component/storage/a$a;

    invoke-direct {p0, v0}, Lcom/singbox/component/storage/a$a;-><init>(Ljava/io/File;)V

    return-object p0

    :cond_13
    invoke-static {p0}, Lcom/singbox/component/storage/a$a;->b(Landroid/content/Context;)Lcom/singbox/component/storage/a$a;

    move-result-object p0

    return-object p0
.end method

.method private static b(Landroid/content/Context;)Lcom/singbox/component/storage/a$a;
    .registers 2

    .line 115
    new-instance v0, Lcom/singbox/component/storage/a$a;

    invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object p0

    invoke-direct {v0, p0}, Lcom/singbox/component/storage/a$a;-><init>(Ljava/io/File;)V

    return-object v0
.end method


# virtual methods
.method public final a()Lcom/singbox/component/storage/a;
    .registers 5

    .line 139
    iget-object v0, p0, Lcom/singbox/component/storage/a$a;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    new-array v1, v0, [Ljava/lang/String;

    if-lez v0, :cond_f

    .line 141
    iget-object v0, p0, Lcom/singbox/component/storage/a$a;->a:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    .line 143
    :cond_f
    new-instance v0, Lcom/singbox/component/storage/a;

    iget-object v2, p0, Lcom/singbox/component/storage/a$a;->b:Ljava/io/File;

    const/4 v3, 0x0

    invoke-direct {v0, v2, v1, v3}, Lcom/singbox/component/storage/a;-><init>(Ljava/io/File;[Ljava/lang/String;B)V

    return-object v0
.end method