apkfuckery/com.discord/smali/com/airbnb/lottie/e$1.smali

156 lines
4.1 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lcom/airbnb/lottie/e$1;
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/airbnb/lottie/e;->b(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/l;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/concurrent/Callable<",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;>;"
}
.end annotation
# instance fields
2019-10-23 04:50:18 +00:00
.field final synthetic eo:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
.field final synthetic val$context:Landroid/content/Context;
# direct methods
.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/airbnb/lottie/e$1;->val$context:Landroid/content/Context;
2019-10-23 04:50:18 +00:00
iput-object p2, p0, Lcom/airbnb/lottie/e$1;->eo:Ljava/lang/String;
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 synthetic call()Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/e$1;->val$context:Landroid/content/Context;
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/e$1;->eo:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
new-instance v2, Lcom/airbnb/lottie/d/c;
invoke-direct {v2, v0, v1}, Lcom/airbnb/lottie/d/c;-><init>(Landroid/content/Context;Ljava/lang/String;)V
2019-10-23 04:50:18 +00:00
iget-object v0, v2, Lcom/airbnb/lottie/d/c;->lg:Lcom/airbnb/lottie/d/b;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/d/b;->bv()Landroidx/core/util/Pair;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-eqz v0, :cond_1
iget-object v1, v0, Landroidx/core/util/Pair;->first:Ljava/lang/Object;
check-cast v1, Lcom/airbnb/lottie/d/a;
iget-object v0, v0, Landroidx/core/util/Pair;->second:Ljava/lang/Object;
check-cast v0, Ljava/io/InputStream;
2019-10-23 04:50:18 +00:00
sget-object v3, Lcom/airbnb/lottie/d/a;->ld:Lcom/airbnb/lottie/d/a;
2019-07-24 11:27:29 +00:00
if-ne v1, v3, :cond_0
new-instance v1, Ljava/util/zip/ZipInputStream;
invoke-direct {v1, v0}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
iget-object v0, v2, Lcom/airbnb/lottie/d/c;->url:Ljava/lang/String;
invoke-static {v1, v0}, Lcom/airbnb/lottie/e;->a(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object v0
goto :goto_0
:cond_0
iget-object v1, v2, Lcom/airbnb/lottie/d/c;->url:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/airbnb/lottie/e;->a(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object v0
:goto_0
iget-object v1, v0, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
if-eqz v1, :cond_1
iget-object v0, v0, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
check-cast v0, Lcom/airbnb/lottie/d;
goto :goto_1
:cond_1
const/4 v0, 0x0
:goto_1
if-eqz v0, :cond_2
new-instance v1, Lcom/airbnb/lottie/k;
invoke-direct {v1, v0}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Object;)V
return-object v1
:cond_2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Animation for "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, v2, Lcom/airbnb/lottie/d/c;->url:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " not found in cache. Fetching from network."
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-static {v0}, Lcom/airbnb/lottie/f/d;->v(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v2}, Lcom/airbnb/lottie/d/c;->bw()Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
.end method