apkfuckery/com.discord/smali/androidx/transition/ChangeScroll.smali
2019-02-04 21:08:30 +01:00

264 lines
6.8 KiB
Smali

.class public Landroidx/transition/ChangeScroll;
.super Landroidx/transition/Transition;
# static fields
.field private static final PROPERTIES:[Ljava/lang/String;
.field private static final PROPNAME_SCROLL_X:Ljava/lang/String; = "android:changeScroll:x"
.field private static final PROPNAME_SCROLL_Y:Ljava/lang/String; = "android:changeScroll:y"
# direct methods
.method static constructor <clinit>()V
.locals 3
const/4 v0, 0x2
new-array v0, v0, [Ljava/lang/String;
const-string v1, "android:changeScroll:x"
const/4 v2, 0x0
aput-object v1, v0, v2
const-string v1, "android:changeScroll:y"
const/4 v2, 0x1
aput-object v1, v0, v2
sput-object v0, Landroidx/transition/ChangeScroll;->PROPERTIES:[Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroidx/transition/Transition;-><init>()V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
invoke-direct {p0, p1, p2}, Landroidx/transition/Transition;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method private captureValues(Landroidx/transition/TransitionValues;)V
.locals 3
iget-object v0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v1, "android:changeScroll:x"
iget-object v2, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getScrollX()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v1, "android:changeScroll:y"
iget-object p1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
invoke-virtual {p1}, Landroid/view/View;->getScrollY()I
move-result p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public captureEndValues(Landroidx/transition/TransitionValues;)V
.locals 0
.param p1 # Landroidx/transition/TransitionValues;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0, p1}, Landroidx/transition/ChangeScroll;->captureValues(Landroidx/transition/TransitionValues;)V
return-void
.end method
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
.locals 0
.param p1 # Landroidx/transition/TransitionValues;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0, p1}, Landroidx/transition/ChangeScroll;->captureValues(Landroidx/transition/TransitionValues;)V
return-void
.end method
.method public createAnimator(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
.locals 8
.param p1 # Landroid/view/ViewGroup;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/transition/TransitionValues;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroidx/transition/TransitionValues;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
const/4 p1, 0x0
if-eqz p2, :cond_3
if-nez p3, :cond_0
goto :goto_1
:cond_0
iget-object v0, p3, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
iget-object v1, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v2, "android:changeScroll:x"
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
iget-object v2, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v3, "android:changeScroll:x"
invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
iget-object p2, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v3, "android:changeScroll:y"
invoke-interface {p2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/Integer;
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p2
iget-object p3, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v3, "android:changeScroll:y"
invoke-interface {p3, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p3
check-cast p3, Ljava/lang/Integer;
invoke-virtual {p3}, Ljava/lang/Integer;->intValue()I
move-result p3
const/4 v3, 0x1
const/4 v4, 0x0
const/4 v5, 0x2
if-eq v1, v2, :cond_1
invoke-virtual {v0, v1}, Landroid/view/View;->setScrollX(I)V
const-string v6, "scrollX"
new-array v7, v5, [I
aput v1, v7, v4
aput v2, v7, v3
invoke-static {v0, v6, v7}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object v1
goto :goto_0
:cond_1
move-object v1, p1
:goto_0
if-eq p2, p3, :cond_2
invoke-virtual {v0, p2}, Landroid/view/View;->setScrollY(I)V
const-string p1, "scrollY"
new-array v2, v5, [I
aput p2, v2, v4
aput p3, v2, v3
invoke-static {v0, p1, v2}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object p1
:cond_2
invoke-static {v1, p1}, Landroidx/transition/TransitionUtils;->mergeAnimators(Landroid/animation/Animator;Landroid/animation/Animator;)Landroid/animation/Animator;
move-result-object p1
:cond_3
:goto_1
return-object p1
.end method
.method public getTransitionProperties()[Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
sget-object v0, Landroidx/transition/ChangeScroll;->PROPERTIES:[Ljava/lang/String;
return-object v0
.end method