apkfuckery/com.discord/smali_classes2/com/lytefast/flexinput/fragment/CameraFragment$f$a.smali
2020-04-17 19:35:24 +02:00

155 lines
5 KiB
Smali

.class public final Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;
.super Ljava/lang/Object;
.source "CameraFragment.kt"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/lytefast/flexinput/fragment/CameraFragment$f;->a(Lcom/camerakit/CameraKitView;[B)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic d:Lcom/lytefast/flexinput/fragment/CameraFragment$f;
.field public final synthetic e:[B
.field public final synthetic f:Landroid/content/Context;
.field public final synthetic g:Lcom/camerakit/CameraKitView;
# direct methods
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/CameraFragment$f;[BLandroid/content/Context;Lcom/camerakit/CameraKitView;)V
.locals 0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->d:Lcom/lytefast/flexinput/fragment/CameraFragment$f;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->e:[B
iput-object p3, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->f:Landroid/content/Context;
iput-object p4, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->g:Lcom/camerakit/CameraKitView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.locals 5
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->d:Lcom/lytefast/flexinput/fragment/CameraFragment$f;
iget-object v0, v0, Lcom/lytefast/flexinput/fragment/CameraFragment$f;->a:Lcom/lytefast/flexinput/fragment/CameraFragment;
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
invoke-interface {v0}, Lcom/lytefast/flexinput/managers/FileManager;->a()Ljava/io/File;
move-result-object v0
if-eqz v0, :cond_0
:try_start_0
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
const/4 v2, 0x0
:try_start_1
iget-object v3, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->e:[B
invoke-virtual {v1, v3}, Ljava/io/FileOutputStream;->write([B)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
invoke-static {v1, v2}, Lf/n/a/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
sget-object v1, Lcom/lytefast/flexinput/fragment/CameraFragment;->Companion:Lcom/lytefast/flexinput/fragment/CameraFragment$Companion;
iget-object v2, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->f:Landroid/content/Context;
invoke-virtual {v1, v2, v0}, Lcom/lytefast/flexinput/fragment/CameraFragment$Companion;->a(Landroid/content/Context;Ljava/io/File;)V
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a;->g:Lcom/camerakit/CameraKitView;
new-instance v2, Lcom/lytefast/flexinput/fragment/CameraFragment$f$a$a;
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
invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_0
:catchall_0
move-exception v2
:try_start_3
throw v2
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v3
:try_start_4
invoke-static {v1, v2}, Lf/n/a/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v3
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
move-exception v1
invoke-static {}, Lcom/lytefast/flexinput/fragment/CameraFragment;->access$getTAG$cp()Ljava/lang/String;
move-result-object v2
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Cannot write to "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v2, v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
:goto_0
return-void
.end method