h$f$a.smali
.class final Lcom/opensource/svgaplayer/h$f$a;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/opensource/svgaplayer/h$f;->run()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic a:[B
.field final synthetic b:Lcom/opensource/svgaplayer/h$f;
# direct methods
.method constructor <init>([BLcom/opensource/svgaplayer/h$f;)V
.registers 3
iput-object p1, p0, Lcom/opensource/svgaplayer/h$f$a;->a:[B
iput-object p2, p0, Lcom/opensource/svgaplayer/h$f$a;->b:Lcom/opensource/svgaplayer/h$f;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.registers 5
.line 240
sget-object v0, Lcom/opensource/svgaplayer/c;->c:Lcom/opensource/svgaplayer/c;
iget-object v0, p0, Lcom/opensource/svgaplayer/h$f$a;->b:Lcom/opensource/svgaplayer/h$f;
iget-object v0, v0, Lcom/opensource/svgaplayer/h$f;->c:Ljava/lang/String;
invoke-static {v0}, Lcom/opensource/svgaplayer/c;->d(Ljava/lang/String;)Ljava/io/File;
move-result-object v0
.line 242
:try_start_a
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v1
xor-int/lit8 v1, v1, 0x1
if-eqz v1, :cond_14
move-object v1, v0
goto :goto_15
:cond_14
const/4 v1, 0x0
:goto_15
if-eqz v1, :cond_1a
invoke-virtual {v1}, Ljava/io/File;->createNewFile()Z
.line 243
:cond_1a
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
iget-object v2, p0, Lcom/opensource/svgaplayer/h$f$a;->a:[B
invoke-virtual {v1, v2}, Ljava/io/FileOutputStream;->write([B)V
sget-object v0, Lkotlin/w;->a:Lkotlin/w;
:try_end_26
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_26} :catch_27
return-void
:catch_27
move-exception v1
.line 245
sget-object v2, Lcom/opensource/svgaplayer/d/a/c;->a:Lcom/opensource/svgaplayer/d/a/c;
check-cast v1, Ljava/lang/Throwable;
const-string v2, "SVGAParser"
const-string v3, "create cache file fail."
invoke-static {v2, v3, v1}, Lcom/opensource/svgaplayer/d/a/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
.line 246
invoke-virtual {v0}, Ljava/io/File;->delete()Z
return-void
.end method