2019-02-04 20:08:30 +00:00
|
|
|
.class public Lcom/lytefast/flexinput/managers/b;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "SimpleFileManager.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/lytefast/flexinput/managers/FileManager;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/lytefast/flexinput/managers/b$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field private static final TAG:Ljava/lang/String;
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
.field public static final aWk:Lcom/lytefast/flexinput/managers/b$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-05-24 03:06:45 +00:00
|
|
|
.field private final aWh:Ljava/lang/String;
|
|
|
|
|
2019-05-16 22:41:35 +00:00
|
|
|
.field private final aWi:Ljava/lang/String;
|
2019-05-08 22:54:48 +00:00
|
|
|
|
2019-05-16 22:41:35 +00:00
|
|
|
.field private final aWj:Ljava/lang/String;
|
2019-03-26 19:13:28 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/managers/b$a;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/lytefast/flexinput/managers/b$a;-><init>(B)V
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
sput-object v0, Lcom/lytefast/flexinput/managers/b;->aWk:Lcom/lytefast/flexinput/managers/b$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v0, Lcom/lytefast/flexinput/managers/b;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sput-object v0, Lcom/lytefast/flexinput/managers/b;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "JPEG_"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/lytefast/flexinput/managers/b;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "providerAuthority"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "imageDirName"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "imagePrefix"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
iput-object p1, p0, Lcom/lytefast/flexinput/managers/b;->aWh:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
iput-object p2, p0, Lcom/lytefast/flexinput/managers/b;->aWi:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
iput-object p3, p0, Lcom/lytefast/flexinput/managers/b;->aWj:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final b(Landroid/content/Context;Ljava/io/File;)Landroid/net/Uri;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
const-string v0, "file"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/managers/b;->aWh:Ljava/lang/String;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0, p2}, Landroidx/core/content/FileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "FileProvider.getUriForFi\u2026 providerAuthority, file)"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
.method public final xK()Ljava/io/File;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
new-instance v0, Ljava/text/SimpleDateFormat;
|
|
|
|
|
|
|
|
const-string v1, "yyyyMMdd_HHmmss"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/Date;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/Date;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
iget-object v2, p0, Lcom/lytefast/flexinput/managers/b;->aWj:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, ".jpg"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
|
|
|
|
new-instance v2, Ljava/io/File;
|
|
|
|
|
|
|
|
sget-object v3, Landroid/os/Environment;->DIRECTORY_PICTURES:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-static {v3}, Landroid/os/Environment;->getExternalStoragePublicDirectory(Ljava/lang/String;)Ljava/io/File;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
iget-object v4, p0, Lcom/lytefast/flexinput/managers/b;->aWi:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/io/File;->mkdirs()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/io/File;->isDirectory()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
|
|
|
|
sget-object v3, Lcom/lytefast/flexinput/managers/b;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v4, "Directory not created"
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {v1, v2, v0}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|