2019-02-04 20:08:30 +00:00
|
|
|
.class Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "RecyclerView.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x0
|
|
|
|
name = "ViewFlinger"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private mEatRunOnAnimationRequest:Z
|
|
|
|
|
|
|
|
.field mInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
.field private mLastFlingX:I
|
|
|
|
|
|
|
|
.field private mLastFlingY:I
|
|
|
|
|
|
|
|
.field private mReSchedulePostAnimationCallback:Z
|
|
|
|
|
|
|
|
.field mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
.field final synthetic this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
sget-object v0, Landroidx/recyclerview/widget/RecyclerView;->sQuinticInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z
|
|
|
|
|
|
|
|
new-instance v0, Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object v1, Landroidx/recyclerview/widget/RecyclerView;->sQuinticInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/widget/OverScroller;-><init>(Landroid/content/Context;Landroid/view/animation/Interpolator;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private computeScrollDuration(IIII)I
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-le v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
mul-int p3, p3, p3
|
|
|
|
|
|
|
|
mul-int p4, p4, p4
|
|
|
|
|
|
|
|
add-int/2addr p3, p4
|
|
|
|
|
|
|
|
int-to-double p3, p3
|
|
|
|
|
|
|
|
invoke-static {p3, p4}, Ljava/lang/Math;->sqrt(D)D
|
|
|
|
|
|
|
|
move-result-wide p3
|
|
|
|
|
|
|
|
double-to-int p3, p3
|
|
|
|
|
|
|
|
mul-int p1, p1, p1
|
|
|
|
|
|
|
|
mul-int p2, p2, p2
|
|
|
|
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
|
|
|
|
int-to-double p1, p1
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->sqrt(D)D
|
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
double-to-int p1, p1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView;->getWidth()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object p2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView;->getHeight()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
div-int/lit8 p4, p2, 0x2
|
|
|
|
|
|
|
|
int-to-float p1, p1
|
|
|
|
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
mul-float p1, p1, v3
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
|
|
|
|
invoke-static {v3, p1}, Ljava/lang/Math;->min(FF)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
int-to-float p4, p4
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->distanceInfluenceForSnapDuration(F)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
mul-float p1, p1, p4
|
|
|
|
|
|
|
|
add-float/2addr p4, p1
|
|
|
|
|
|
|
|
if-lez p3, :cond_2
|
|
|
|
|
|
|
|
const/high16 p1, 0x447a0000 # 1000.0f
|
|
|
|
|
|
|
|
int-to-float p2, p3
|
|
|
|
|
|
|
|
div-float/2addr p4, p2
|
|
|
|
|
|
|
|
invoke-static {p4}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
mul-float p2, p2, p1
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->round(F)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
mul-int/lit8 p1, p1, 0x4
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move v0, v1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
int-to-float p1, v0
|
|
|
|
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
|
|
|
|
add-float/2addr p1, v3
|
|
|
|
|
|
|
|
const/high16 p2, 0x43960000 # 300.0f
|
|
|
|
|
|
|
|
mul-float p1, p1, p2
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
const/16 p2, 0x7d0
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private disableRunOnAnimationRequests()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private distanceInfluenceForSnapDuration(F)F
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
|
|
|
|
const v0, 0x3ef1463b
|
|
|
|
|
|
|
|
mul-float p1, p1, v0
|
|
|
|
|
|
|
|
float-to-double v0, p1
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->sin(D)D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-float p1, v0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private enableRunOnAnimationRequests()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->postOnAnimation()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public fling(II)V
|
|
|
|
.locals 10
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setScrollState(I)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/high16 v6, -0x80000000
|
|
|
|
|
|
|
|
const v7, 0x7fffffff
|
|
|
|
|
|
|
|
const/high16 v8, -0x80000000
|
|
|
|
|
|
|
|
const v9, 0x7fffffff
|
|
|
|
|
|
|
|
move v4, p1
|
|
|
|
|
|
|
|
move v5, p2
|
|
|
|
|
|
|
|
invoke-virtual/range {v1 .. v9}, Landroid/widget/OverScroller;->fling(IIIIIIII)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->postOnAnimation()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method postOnAnimation()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/recyclerview/widget/RecyclerView;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public run()V
|
|
|
|
.locals 22
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->stop()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->disableRunOnAnimationRequests()V
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView;->consumePendingUpdateOperations()V
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
iget-object v2, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v2, v2, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
|
|
|
|
iget-object v2, v2, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mSmoothScroller:Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->computeScrollOffset()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v3, :cond_1c
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v3, v3, Landroidx/recyclerview/widget/RecyclerView;->mScrollConsumed:[I
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrX()I
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrY()I
|
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
|
|
|
iget v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I
|
|
|
|
|
|
|
|
sub-int v13, v11, v5
|
|
|
|
|
|
|
|
iget v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I
|
|
|
|
|
|
|
|
sub-int v14, v12, v5
|
|
|
|
|
|
|
|
iput v11, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I
|
|
|
|
|
|
|
|
iput v12, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I
|
|
|
|
|
|
|
|
iget-object v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x1
|
|
|
|
|
|
|
|
move v6, v13
|
|
|
|
|
|
|
|
move v7, v14
|
|
|
|
|
|
|
|
move-object v8, v3
|
|
|
|
|
|
|
|
invoke-virtual/range {v5 .. v10}, Landroidx/recyclerview/widget/RecyclerView;->dispatchNestedPreScroll(II[I[II)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
|
|
|
|
aget v5, v3, v4
|
|
|
|
|
|
|
|
sub-int/2addr v13, v5
|
|
|
|
|
|
|
|
aget v3, v3, v6
|
|
|
|
|
|
|
|
sub-int/2addr v14, v3
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v3, v3, Landroidx/recyclerview/widget/RecyclerView;->mAdapter:Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
iget-object v5, v3, Landroidx/recyclerview/widget/RecyclerView;->mScrollStepConsumed:[I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, v13, v14, v5}, Landroidx/recyclerview/widget/RecyclerView;->scrollStep(II[I)V
|
|
|
|
|
|
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v3, v3, Landroidx/recyclerview/widget/RecyclerView;->mScrollStepConsumed:[I
|
|
|
|
|
|
|
|
aget v3, v3, v4
|
|
|
|
|
|
|
|
iget-object v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v5, v5, Landroidx/recyclerview/widget/RecyclerView;->mScrollStepConsumed:[I
|
|
|
|
|
|
|
|
aget v5, v5, v6
|
|
|
|
|
|
|
|
sub-int v7, v13, v3
|
|
|
|
|
|
|
|
sub-int v8, v14, v5
|
|
|
|
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isPendingInitialRun()Z
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-nez v9, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isRunning()Z
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_5
|
|
|
|
|
|
|
|
iget-object v9, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v9, v9, Landroidx/recyclerview/widget/RecyclerView;->mState:Landroidx/recyclerview/widget/RecyclerView$State;
|
|
|
|
|
|
|
|
invoke-virtual {v9}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-nez v9, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->stop()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->getTargetPosition()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
if-lt v10, v9, :cond_3
|
|
|
|
|
|
|
|
sub-int/2addr v9, v6
|
|
|
|
|
|
|
|
invoke-virtual {v2, v9}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->setTargetPosition(I)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sub-int v9, v13, v7
|
|
|
|
|
|
|
|
sub-int v10, v14, v8
|
|
|
|
|
|
|
|
invoke-virtual {v2, v9, v10}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->onAnimation(II)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_0
|
|
|
|
iget-object v9, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v9, v9, Landroidx/recyclerview/widget/RecyclerView;->mItemDecorations:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v9}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-nez v9, :cond_6
|
|
|
|
|
|
|
|
iget-object v9, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v9}, Landroidx/recyclerview/widget/RecyclerView;->invalidate()V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
iget-object v9, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v9}, Landroidx/recyclerview/widget/RecyclerView;->getOverScrollMode()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
const/4 v10, 0x2
|
|
|
|
|
|
|
|
if-eq v9, v10, :cond_7
|
|
|
|
|
|
|
|
iget-object v9, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v9, v13, v14}, Landroidx/recyclerview/widget/RecyclerView;->considerReleasingGlowsOnScroll(II)V
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
iget-object v15, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
const/16 v20, 0x0
|
|
|
|
|
|
|
|
const/16 v21, 0x1
|
|
|
|
|
|
|
|
move/from16 v16, v3
|
|
|
|
|
|
|
|
move/from16 v17, v5
|
|
|
|
|
|
|
|
move/from16 v18, v7
|
|
|
|
|
|
|
|
move/from16 v19, v8
|
|
|
|
|
|
|
|
invoke-virtual/range {v15 .. v21}, Landroidx/recyclerview/widget/RecyclerView;->dispatchNestedScroll(IIII[II)Z
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v9, :cond_10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-nez v7, :cond_8
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v8, :cond_10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrVelocity()F
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
float-to-int v9, v9
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v7, v11, :cond_a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-gez v7, :cond_9
|
|
|
|
|
|
|
|
neg-int v15, v9
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
if-lez v7, :cond_a
|
|
|
|
|
|
|
|
move v15, v9
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v8, v12, :cond_c
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-gez v8, :cond_b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
neg-int v9, v9
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_b
|
|
|
|
if-lez v8, :cond_c
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_c
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView;->getOverScrollMode()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v4, v10, :cond_d
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v15, v9}, Landroidx/recyclerview/widget/RecyclerView;->absorbGlows(II)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_d
|
|
|
|
if-nez v15, :cond_e
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v7, v11, :cond_e
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->getFinalX()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v4, :cond_10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_e
|
|
|
|
if-nez v9, :cond_f
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v8, v12, :cond_f
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->getFinalY()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v4, :cond_10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_f
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->abortAnimation()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_10
|
|
|
|
if-nez v3, :cond_11
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v5, :cond_12
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_11
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3, v5}, Landroidx/recyclerview/widget/RecyclerView;->dispatchOnScrolled(II)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_12
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-static {v4}, Landroidx/recyclerview/widget/RecyclerView;->access$200(Landroidx/recyclerview/widget/RecyclerView;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v4, :cond_13
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView;->invalidate()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_13
|
|
|
|
if-eqz v14, :cond_14
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v4, v4, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->canScrollVertically()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v4, :cond_14
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v5, v14, :cond_14
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_14
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v13, :cond_15
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v5, v5, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->canScrollHorizontally()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v5, :cond_15
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v3, v13, :cond_15
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_15
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v13, :cond_16
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v14, :cond_18
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_16
|
|
|
|
if-nez v3, :cond_18
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v4, :cond_17
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_17
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_18
|
2019-02-04 20:08:30 +00:00
|
|
|
:goto_5
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
invoke-virtual {v1}, Landroid/widget/OverScroller;->isFinished()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v1, :cond_1a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v3, :cond_19
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v6}, Landroidx/recyclerview/widget/RecyclerView;->hasNestedScrollingParent(I)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v1, :cond_19
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_19
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->postOnAnimation()V
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroidx/recyclerview/widget/RecyclerView;->mGapWorker:Landroidx/recyclerview/widget/GapWorker;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v1, :cond_1c
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroidx/recyclerview/widget/RecyclerView;->mGapWorker:Landroidx/recyclerview/widget/GapWorker;
|
|
|
|
|
|
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3, v13, v14}, Landroidx/recyclerview/widget/GapWorker;->postFromTraversal(Landroidx/recyclerview/widget/RecyclerView;II)V
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1a
|
2019-02-04 20:08:30 +00:00
|
|
|
:goto_7
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Landroidx/recyclerview/widget/RecyclerView;->setScrollState(I)V
|
|
|
|
|
|
|
|
sget-boolean v1, Landroidx/recyclerview/widget/RecyclerView;->ALLOW_THREAD_GAP_WORK:Z
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v1, :cond_1b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroidx/recyclerview/widget/RecyclerView;->mPrefetchRegistry:Landroidx/recyclerview/widget/GapWorker$LayoutPrefetchRegistryImpl;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/GapWorker$LayoutPrefetchRegistryImpl;->clearPrefetchPositions()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1b
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v6}, Landroidx/recyclerview/widget/RecyclerView;->stopNestedScroll(I)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1c
|
2019-02-04 20:08:30 +00:00
|
|
|
:goto_8
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v2, :cond_1e
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isPendingInitialRun()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v1, :cond_1d
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1, v1}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->onAnimation(II)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1d
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-boolean v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-nez v1, :cond_1e
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->stop()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1e
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->enableRunOnAnimationRequests()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothScrollBy(II)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2, v0, v0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->smoothScrollBy(IIII)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothScrollBy(III)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Landroidx/recyclerview/widget/RecyclerView;->sQuinticInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->smoothScrollBy(IIILandroid/view/animation/Interpolator;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothScrollBy(IIII)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->computeScrollDuration(IIII)I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->smoothScrollBy(III)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothScrollBy(IIILandroid/view/animation/Interpolator;)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
if-eq v0, p4, :cond_0
|
|
|
|
|
|
|
|
iput-object p4, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
new-instance v0, Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p4}, Landroid/widget/OverScroller;-><init>(Landroid/content/Context;Landroid/view/animation/Interpolator;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {p4, v0}, Landroidx/recyclerview/widget/RecyclerView;->setScrollState(I)V
|
|
|
|
|
|
|
|
const/4 p4, 0x0
|
|
|
|
|
|
|
|
iput p4, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I
|
|
|
|
|
|
|
|
iput p4, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
move v3, p1
|
|
|
|
|
|
|
|
move v4, p2
|
|
|
|
|
|
|
|
move v5, p3
|
|
|
|
|
|
|
|
invoke-virtual/range {v0 .. v5}, Landroid/widget/OverScroller;->startScroll(IIIII)V
|
|
|
|
|
|
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 p2, 0x17
|
|
|
|
|
|
|
|
if-ge p1, p2, :cond_1
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/widget/OverScroller;->computeScrollOffset()Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->postOnAnimation()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothScrollBy(IILandroid/view/animation/Interpolator;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0, v0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->computeScrollDuration(IIII)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
|
|
|
|
sget-object p3, Landroidx/recyclerview/widget/RecyclerView;->sQuinticInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0, p1, p2, v0, p3}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->smoothScrollBy(IIILandroid/view/animation/Interpolator;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public stop()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/recyclerview/widget/RecyclerView;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mScroller:Landroid/widget/OverScroller;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/OverScroller;->abortAnimation()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|