BaseLayoutAnimation.smali
.class public abstract Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;
.super Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;
.source "BaseLayoutAnimation.java"
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;-><init>()V
return-void
.end method
# virtual methods
.method public createAnimationImpl(Landroid/view/View;IIII)Landroid/view/animation/Animation;
.registers 15
iget-object p2, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mAnimatedProperty:Lcom/facebook/react/uimanager/layoutanimation/AnimatedPropertyType;
if-eqz p2, :cond_bc
sget-object p3, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation$1;->$SwitchMap$com$facebook$react$uimanager$layoutanimation$AnimatedPropertyType:[I
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
move-result p2
aget p2, p3, p2
const/4 p3, 0x1
const/4 p4, 0x0
if-eq p2, p3, :cond_9f
const/4 p1, 0x2
const/high16 p3, 0x3f800000 # 1.0f
if-eq p2, p1, :cond_7c
const/4 p1, 0x3
if-eq p2, p1, :cond_58
const/4 p1, 0x4
if-ne p2, p1, :cond_3f
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_24
const/high16 v3, 0x3f800000 # 1.0f
goto :goto_25
:cond_24
const/4 v3, 0x0
:goto_25
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_2d
const/4 v4, 0x0
goto :goto_2f
:cond_2d
const/high16 v4, 0x3f800000 # 1.0f
:goto_2f
new-instance p1, Landroid/view/animation/ScaleAnimation;
const/high16 v1, 0x3f800000 # 1.0f
const/high16 v2, 0x3f800000 # 1.0f
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x1
const/high16 v8, 0x3f000000 # 0.5f
move-object v0, p1
invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
return-object p1
:cond_3f
new-instance p1, Lcom/facebook/react/uimanager/IllegalViewOperationException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "Missing animation for property : "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p3, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mAnimatedProperty:Lcom/facebook/react/uimanager/layoutanimation/AnimatedPropertyType;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/facebook/react/uimanager/IllegalViewOperationException;-><init>(Ljava/lang/String;)V
throw p1
:cond_58
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_61
const/high16 v1, 0x3f800000 # 1.0f
goto :goto_62
:cond_61
const/4 v1, 0x0
:goto_62
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_6a
const/4 v2, 0x0
goto :goto_6c
:cond_6a
const/high16 v2, 0x3f800000 # 1.0f
:goto_6c
new-instance p1, Landroid/view/animation/ScaleAnimation;
const/high16 v3, 0x3f800000 # 1.0f
const/high16 v4, 0x3f800000 # 1.0f
const/4 v5, 0x1
const/high16 v6, 0x3f000000 # 0.5f
const/4 v7, 0x1
const/4 v8, 0x0
move-object v0, p1
invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
return-object p1
:cond_7c
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_85
const/high16 v3, 0x3f800000 # 1.0f
goto :goto_86
:cond_85
const/4 v3, 0x0
:goto_86
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_8e
const/4 v4, 0x0
goto :goto_90
:cond_8e
const/high16 v4, 0x3f800000 # 1.0f
:goto_90
new-instance p1, Landroid/view/animation/ScaleAnimation;
const/4 v5, 0x1
const/high16 v6, 0x3f000000 # 0.5f
const/4 v7, 0x1
const/high16 v8, 0x3f000000 # 0.5f
move-object v0, p1
move v1, v3
move v2, v4
invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
return-object p1
:cond_9f
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p2
if-eqz p2, :cond_aa
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
move-result p2
goto :goto_ab
:cond_aa
const/4 p2, 0x0
:goto_ab
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p3
if-eqz p3, :cond_b2
goto :goto_b6
:cond_b2
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
move-result p4
:goto_b6
new-instance p3, Lcom/facebook/react/uimanager/layoutanimation/OpacityAnimation;
invoke-direct {p3, p1, p2, p4}, Lcom/facebook/react/uimanager/layoutanimation/OpacityAnimation;-><init>(Landroid/view/View;FF)V
return-object p3
:cond_bc
new-instance p1, Lcom/facebook/react/uimanager/IllegalViewOperationException;
const-string p2, "Missing animated property from animation config"
invoke-direct {p1, p2}, Lcom/facebook/react/uimanager/IllegalViewOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public abstract isReverse()Z
.end method
.method public isValid()Z
.registers 2
iget v0, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mDurationMs:I
if-lez v0, :cond_a
iget-object v0, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mAnimatedProperty:Lcom/facebook/react/uimanager/layoutanimation/AnimatedPropertyType;
if-eqz v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method