apkfuckery/com.discord/smali/f/d/a/u/b.smali

176 lines
4 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Lf/d/a/u/b;
.super Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
.source "ImageAssetManager.java"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# static fields
.field public static final e:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
# instance fields
2020-07-08 16:44:49 +00:00
.field public final a:Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.field public b:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.field public c:Lf/d/a/b;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final d:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lf/d/a/h;",
">;"
}
.end annotation
.end field
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# direct methods
.method public static constructor <clinit>()V
.locals 1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v0, Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sput-object v0, Lf/d/a/u/b;->e:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
.end method
.method public constructor <init>(Landroid/graphics/drawable/Drawable$Callback;Ljava/lang/String;Lf/d/a/b;Ljava/util/Map;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/drawable/Drawable$Callback;",
"Ljava/lang/String;",
"Lf/d/a/b;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lf/d/a/h;",
">;)V"
}
2020-05-17 12:40:10 +00:00
.end annotation
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p2, p0, Lf/d/a/u/b;->b:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p2, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p2, p0, Lf/d/a/u/b;->b:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2}, Ljava/lang/String;->length()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
add-int/lit8 v0, v0, -0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, v0}, Ljava/lang/String;->charAt(I)C
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v0, 0x2f
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p2, v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance p2, Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lf/d/a/u/b;->b:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p2, p0, Lf/d/a/u/b;->b:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
instance-of p2, p1, Landroid/view/View;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p2, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string p1, "LottieDrawable must be inside of a view for images to work."
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p1}, Lf/d/a/y/c;->b(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance p1, Ljava/util/HashMap;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p1, p0, Lf/d/a/u/b;->d:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p1, p0, Lf/d/a/u/b;->a:Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
check-cast p1, Landroid/view/View;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p1, p0, Lf/d/a/u/b;->a:Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p4, p0, Lf/d/a/u/b;->d:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p3, p0, Lf/d/a/u/b;->c:Lf/d/a/b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# virtual methods
.method public final a(Ljava/lang/String;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
.locals 2
.param p2 # Landroid/graphics/Bitmap;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v0, Lf/d/a/u/b;->e:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
monitor-enter v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:try_start_0
iget-object v1, p0, Lf/d/a/u/b;->d:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p1, Lf/d/a/h;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p2, p1, Lf/d/a/h;->e:Landroid/graphics/Bitmap;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
monitor-exit v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:catchall_0
move-exception p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p1
2020-05-17 12:40:10 +00:00
.end method