apkfuckery/com.discord/smali_classes2/com/google/android/material/transformation/FabTransformationScrimBehavior.smali
2019-02-04 21:29:01 +01:00

205 lines
6.7 KiB
Smali

.class public Lcom/google/android/material/transformation/FabTransformationScrimBehavior;
.super Lcom/google/android/material/transformation/ExpandableTransformationBehavior;
.source "FabTransformationScrimBehavior.java"
# static fields
.field public static final COLLAPSE_DELAY:J = 0x0L
.field public static final COLLAPSE_DURATION:J = 0x96L
.field public static final EXPAND_DELAY:J = 0x4bL
.field public static final EXPAND_DURATION:J = 0x96L
# instance fields
.field private final collapseTiming:Lcom/google/android/material/animation/MotionTiming;
.field private final expandTiming:Lcom/google/android/material/animation/MotionTiming;
# direct methods
.method public constructor <init>()V
.locals 5
invoke-direct {p0}, Lcom/google/android/material/transformation/ExpandableTransformationBehavior;-><init>()V
new-instance v0, Lcom/google/android/material/animation/MotionTiming;
const-wide/16 v1, 0x96
const-wide/16 v3, 0x4b
invoke-direct {v0, v3, v4, v1, v2}, Lcom/google/android/material/animation/MotionTiming;-><init>(JJ)V
iput-object v0, p0, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->expandTiming:Lcom/google/android/material/animation/MotionTiming;
new-instance v0, Lcom/google/android/material/animation/MotionTiming;
const-wide/16 v3, 0x0
invoke-direct {v0, v3, v4, v1, v2}, Lcom/google/android/material/animation/MotionTiming;-><init>(JJ)V
iput-object v0, p0, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->collapseTiming:Lcom/google/android/material/animation/MotionTiming;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 4
invoke-direct {p0, p1, p2}, Lcom/google/android/material/transformation/ExpandableTransformationBehavior;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
new-instance p1, Lcom/google/android/material/animation/MotionTiming;
const-wide/16 v0, 0x96
const-wide/16 v2, 0x4b
invoke-direct {p1, v2, v3, v0, v1}, Lcom/google/android/material/animation/MotionTiming;-><init>(JJ)V
iput-object p1, p0, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->expandTiming:Lcom/google/android/material/animation/MotionTiming;
new-instance p1, Lcom/google/android/material/animation/MotionTiming;
const-wide/16 v2, 0x0
invoke-direct {p1, v2, v3, v0, v1}, Lcom/google/android/material/animation/MotionTiming;-><init>(JJ)V
iput-object p1, p0, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->collapseTiming:Lcom/google/android/material/animation/MotionTiming;
return-void
.end method
.method private createScrimAnimation(Landroid/view/View;ZZLjava/util/List;Ljava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/view/View;",
"ZZ",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;",
"Ljava/util/List<",
"Landroid/animation/Animator$AnimatorListener;",
">;)V"
}
.end annotation
if-eqz p2, :cond_0
iget-object p5, p0, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->expandTiming:Lcom/google/android/material/animation/MotionTiming;
goto :goto_0
:cond_0
iget-object p5, p0, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->collapseTiming:Lcom/google/android/material/animation/MotionTiming;
:goto_0
const/4 v0, 0x0
const/4 v1, 0x0
const/4 v2, 0x1
if-eqz p2, :cond_2
if-nez p3, :cond_1
invoke-virtual {p1, v0}, Landroid/view/View;->setAlpha(F)V
:cond_1
sget-object p2, Landroid/view/View;->ALPHA:Landroid/util/Property;
new-array p3, v2, [F
const/high16 v0, 0x3f800000 # 1.0f
aput v0, p3, v1
invoke-static {p1, p2, p3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object p1
goto :goto_1
:cond_2
sget-object p2, Landroid/view/View;->ALPHA:Landroid/util/Property;
new-array p3, v2, [F
aput v0, p3, v1
invoke-static {p1, p2, p3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object p1
:goto_1
invoke-virtual {p5, p1}, Lcom/google/android/material/animation/MotionTiming;->apply(Landroid/animation/Animator;)V
invoke-interface {p4, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
# virtual methods
.method public layoutDependsOn(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)Z
.locals 0
instance-of p1, p3, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
return p1
.end method
.method protected onCreateExpandedStateChangeAnimation(Landroid/view/View;Landroid/view/View;ZZ)Landroid/animation/AnimatorSet;
.locals 6
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
new-instance v5, Ljava/util/ArrayList;
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
move-object v0, p0
move-object v1, p2
move v2, p3
move v3, p4
move-object v4, p1
invoke-direct/range {v0 .. v5}, Lcom/google/android/material/transformation/FabTransformationScrimBehavior;->createScrimAnimation(Landroid/view/View;ZZLjava/util/List;Ljava/util/List;)V
new-instance p4, Landroid/animation/AnimatorSet;
invoke-direct {p4}, Landroid/animation/AnimatorSet;-><init>()V
invoke-static {p4, p1}, Lcom/google/android/material/animation/AnimatorSetCompat;->playTogether(Landroid/animation/AnimatorSet;Ljava/util/List;)V
new-instance p1, Lcom/google/android/material/transformation/FabTransformationScrimBehavior$1;
invoke-direct {p1, p0, p3, p2}, Lcom/google/android/material/transformation/FabTransformationScrimBehavior$1;-><init>(Lcom/google/android/material/transformation/FabTransformationScrimBehavior;ZLandroid/view/View;)V
invoke-virtual {p4, p1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
return-object p4
.end method
.method public onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
.locals 0
invoke-super {p0, p1, p2, p3}, Lcom/google/android/material/transformation/ExpandableTransformationBehavior;->onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
move-result p1
return p1
.end method