Rabbit-R1/original r1/smali/smali_classes2/androidx/transition/ChangeScroll.smali

237 lines
5.9 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public Landroidx/transition/ChangeScroll;
.super Landroidx/transition/Transition;
.source "ChangeScroll.java"
# 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 2
const-string v0, "android:changeScroll:x"
const-string v1, "android:changeScroll:y"
.line 39
filled-new-array {v0, v1}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Landroidx/transition/ChangeScroll;->PROPERTIES:[Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 44
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
.line 47
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 2
.line 67
iget-object p0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getScrollX()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "android:changeScroll:x"
invoke-interface {p0, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 68
iget-object p0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
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
const-string v0, "android:changeScroll:y"
invoke-interface {p0, v0, 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
.line 57
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
.line 52
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 3
const/4 p0, 0x0
if-eqz p2, :cond_3
if-nez p3, :cond_0
goto :goto_1
.line 78
:cond_0
iget-object p1, p3, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
.line 79
iget-object v0, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v1, "android:changeScroll:x"
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
.line 80
iget-object v2, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
invoke-interface {v2, v1}, 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
.line 81
iget-object p2, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v2, "android:changeScroll:y"
invoke-interface {p2, v2}, 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
.line 82
iget-object p3, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
invoke-interface {p3, v2}, 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
if-eq v0, v1, :cond_1
.line 86
invoke-virtual {p1, v0}, Landroid/view/View;->setScrollX(I)V
const-string v2, "scrollX"
filled-new-array {v0, v1}, [I
move-result-object v0
.line 87
invoke-static {p1, v2, v0}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object v0
goto :goto_0
:cond_1
move-object v0, p0
:goto_0
if-eq p2, p3, :cond_2
.line 90
invoke-virtual {p1, p2}, Landroid/view/View;->setScrollY(I)V
const-string p0, "scrollY"
filled-new-array {p2, p3}, [I
move-result-object p2
.line 91
invoke-static {p1, p0, p2}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object p0
.line 93
:cond_2
invoke-static {v0, p0}, Landroidx/transition/TransitionUtils;->mergeAnimators(Landroid/animation/Animator;Landroid/animation/Animator;)Landroid/animation/Animator;
move-result-object p0
:cond_3
:goto_1
return-object p0
.end method
.method public getTransitionProperties()[Ljava/lang/String;
.locals 0
sget-object p0, Landroidx/transition/ChangeScroll;->PROPERTIES:[Ljava/lang/String;
return-object p0
.end method