62 lines
1.5 KiB
Smali
62 lines
1.5 KiB
Smali
.class Lcom/moji/lottie/ShapePath$Factory;
|
|
.super Ljava/lang/Object;
|
|
.source "ShapePath.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/lottie/ShapePath;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "Factory"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/ShapePath;
|
|
.locals 3
|
|
|
|
const-string v0, "ks"
|
|
|
|
.line 22
|
|
invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/lottie/AnimatableShapeValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/AnimatableShapeValue;
|
|
|
|
move-result-object p1
|
|
|
|
.line 23
|
|
new-instance v0, Lcom/moji/lottie/ShapePath;
|
|
|
|
const-string v1, "nm"
|
|
|
|
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "ind"
|
|
|
|
invoke-virtual {p0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v0, v1, p0, p1, v2}, Lcom/moji/lottie/ShapePath;-><init>(Ljava/lang/String;ILcom/moji/lottie/AnimatableShapeValue;Lcom/moji/lottie/ShapePath$1;)V
|
|
|
|
return-object v0
|
|
.end method
|