apkfuckery/com.discord/smali_classes2/com/lytefast/flexinput/fragment/CameraFragment$f$a.smali

156 lines
5 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "CameraFragment.kt"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2019-12-06 03:29:40 +00:00
value = Lcom/lytefast/flexinput/fragment/CameraFragment$f;->a(Lcom/camerakit/CameraKitView;[B)V
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = null
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic d:Lcom/lytefast/flexinput/fragment/CameraFragment$f;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic e:[B
2019-10-03 02:31:26 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic f:Landroid/content/Context;
2019-10-03 02:31:26 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic g:Lcom/camerakit/CameraKitView;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/CameraFragment$f;[BLandroid/content/Context;Lcom/camerakit/CameraKitView;)V
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->d:Lcom/lytefast/flexinput/fragment/CameraFragment$f;
2019-10-03 02:31:26 +00:00
2019-12-06 03:29:40 +00:00
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->e:[B
2019-10-03 02:31:26 +00:00
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->f:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object p4, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->g:Lcom/camerakit/CameraKitView;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
2019-12-06 03:29:40 +00:00
.locals 5
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->d:Lcom/lytefast/flexinput/fragment/CameraFragment$f;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, v0, Lcom/lytefast/flexinput/fragment/CameraFragment$f;->a:Lcom/lytefast/flexinput/fragment/CameraFragment;
2019-07-24 11:27:29 +00:00
invoke-static {v0}, Lcom/lytefast/flexinput/fragment/CameraFragment;->access$getFlexInputCoordinator$p(Lcom/lytefast/flexinput/fragment/CameraFragment;)Lcom/lytefast/flexinput/FlexInputCoordinator;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/lytefast/flexinput/FlexInputCoordinator;->getFileManager()Lcom/lytefast/flexinput/managers/FileManager;
move-result-object v0
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Lcom/lytefast/flexinput/managers/FileManager;->a()Ljava/io/File;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
:try_start_0
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
:try_end_0
2019-08-30 20:04:20 +00:00
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:try_start_1
iget-object v3, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->e:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v3}, Ljava/io/FileOutputStream;->write([B)V
2019-07-24 11:27:29 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
2020-02-20 19:33:18 +00:00
invoke-static {v1, v2}, Le/k/a/c/e/p/g;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
sget-object v1, Lcom/lytefast/flexinput/fragment/CameraFragment;->Companion:Lcom/lytefast/flexinput/fragment/CameraFragment$Companion;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v2, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->f:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2, v0}, Lcom/lytefast/flexinput/fragment/CameraFragment$Companion;->a(Landroid/content/Context;Ljava/io/File;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->g:Lcom/camerakit/CameraKitView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v2, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, v0, p0}, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a$a;-><init>(Ljava/io/File;Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
2019-07-24 11:27:29 +00:00
:try_end_2
2019-08-30 20:04:20 +00:00
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:catchall_0
move-exception v2
:try_start_3
throw v2
:try_end_3
2019-08-30 20:04:20 +00:00
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v3
2019-07-24 11:27:29 +00:00
:try_start_4
2020-02-20 19:33:18 +00:00
invoke-static {v1, v2}, Le/k/a/c/e/p/g;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
throw v3
:try_end_4
2019-08-30 20:04:20 +00:00
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
:catch_0
2019-07-24 11:27:29 +00:00
move-exception v1
invoke-static {}, Lcom/lytefast/flexinput/fragment/CameraFragment;->access$getTAG$cp()Ljava/lang/String;
move-result-object v2
2019-12-06 03:29:40 +00:00
new-instance v3, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "Cannot write to "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
2019-07-24 11:27:29 +00:00
invoke-static {v2, v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method