.class public Landroidx/recyclerview/widget/RecyclerView$ViewFlinger; .super Ljava/lang/Object; .source "RecyclerView.java" # interfaces .implements Ljava/lang/Runnable; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/recyclerview/widget/RecyclerView; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "ViewFlinger" .end annotation # instance fields .field private mEatRunOnAnimationRequest:Z .field public mInterpolator:Landroid/view/animation/Interpolator; .field private mLastFlingX:I .field private mLastFlingY:I .field public mOverScroller:Landroid/widget/OverScroller; .field private mReSchedulePostAnimationCallback:Z .field public final synthetic this$0:Landroidx/recyclerview/widget/RecyclerView; # direct methods .method public constructor (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;->()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 v1, 0x0 iput-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z iput-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z new-instance v1, Landroid/widget/OverScroller; invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object p1 invoke-direct {v1, p1, v0}, Landroid/widget/OverScroller;->(Landroid/content/Context;Landroid/view/animation/Interpolator;)V iput-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller: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 p4, p3 int-to-double p3, p4 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 p2, p1 int-to-double p1, p2 invoke-static {p1, p2}, Ljava/lang/Math;->sqrt(D)D move-result-wide p1 double-to-int p1, p1 iget-object p2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; if-eqz v2, :cond_1 invoke-virtual {p2}, Landroid/view/ViewGroup;->getWidth()I move-result p2 goto :goto_1 :cond_1 invoke-virtual {p2}, Landroid/view/ViewGroup;->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 p1, p4 if-lez p3, :cond_2 const/high16 p2, 0x447a0000 # 1000.0f int-to-float p3, p3 div-float/2addr p1, p3 invoke-static {p1}, Ljava/lang/Math;->abs(F)F move-result p1 mul-float p1, p1, p2 invoke-static {p1}, 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 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 internalPostOnAnimation()V .locals 1 iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->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 # virtual methods .method public fling(II)V .locals 12 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 v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator; sget-object v1, Landroidx/recyclerview/widget/RecyclerView;->sQuinticInterpolator:Landroid/view/animation/Interpolator; if-eq v0, v1, :cond_0 iput-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator; new-instance v0, Landroid/widget/OverScroller; iget-object v2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v2 invoke-direct {v0, v2, v1}, Landroid/widget/OverScroller;->(Landroid/content/Context;Landroid/view/animation/Interpolator;)V iput-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; :cond_0 iget-object v3, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; const/4 v4, 0x0 const/4 v5, 0x0 const/high16 v8, -0x80000000 const v9, 0x7fffffff const/high16 v10, -0x80000000 const v11, 0x7fffffff move v6, p1 move v7, p2 invoke-virtual/range {v3 .. v11}, Landroid/widget/OverScroller;->fling(IIIIIIII)V invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->postOnAnimation()V return-void .end method .method public 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 goto :goto_0 :cond_0 invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->internalPostOnAnimation()V :goto_0 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 v2, v1, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager; if-nez v2, :cond_0 invoke-virtual/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->stop()V return-void :cond_0 const/4 v2, 0x0 iput-boolean v2, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z const/4 v3, 0x1 iput-boolean v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView;->consumePendingUpdateOperations()V iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; invoke-virtual {v1}, Landroid/widget/OverScroller;->computeScrollOffset()Z move-result v4 if-eqz v4, :cond_17 invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrX()I move-result v4 invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrY()I move-result v5 iget v6, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I sub-int v6, v4, v6 iget v7, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I sub-int v13, v5, v7 iput v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I iput v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I iget-object v7, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v10, v7, Landroidx/recyclerview/widget/RecyclerView;->mReusableIntPair:[I aput v2, v10, v2 aput v2, v10, v3 const/4 v11, 0x0 const/4 v12, 0x1 move v8, v6 move v9, v13 invoke-virtual/range {v7 .. v12}, Landroidx/recyclerview/widget/RecyclerView;->dispatchNestedPreScroll(II[I[II)Z move-result v4 if-eqz v4, :cond_1 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v4, v4, Landroidx/recyclerview/widget/RecyclerView;->mReusableIntPair:[I aget v5, v4, v2 sub-int/2addr v6, v5 aget v4, v4, v3 sub-int/2addr v13, v4 :cond_1 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v4}, Landroid/view/ViewGroup;->getOverScrollMode()I move-result v4 const/4 v5, 0x2 if-eq v4, v5, :cond_2 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v4, v6, v13}, Landroidx/recyclerview/widget/RecyclerView;->considerReleasingGlowsOnScroll(II)V :cond_2 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v7, v4, Landroidx/recyclerview/widget/RecyclerView;->mAdapter:Landroidx/recyclerview/widget/RecyclerView$Adapter; if-eqz v7, :cond_5 iget-object v7, v4, Landroidx/recyclerview/widget/RecyclerView;->mReusableIntPair:[I aput v2, v7, v2 aput v2, v7, v3 invoke-virtual {v4, v6, v13, v7}, Landroidx/recyclerview/widget/RecyclerView;->scrollStep(II[I)V iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v7, v4, Landroidx/recyclerview/widget/RecyclerView;->mReusableIntPair:[I aget v8, v7, v2 aget v7, v7, v3 sub-int/2addr v6, v8 sub-int/2addr v13, v7 iget-object v4, v4, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager; iget-object v4, v4, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mSmoothScroller:Landroidx/recyclerview/widget/RecyclerView$SmoothScroller; if-eqz v4, :cond_6 invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isPendingInitialRun()Z move-result v9 if-nez v9, :cond_6 invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isRunning()Z move-result v9 if-eqz v9, :cond_6 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_3 invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->stop()V goto :goto_0 :cond_3 invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->getTargetPosition()I move-result v10 if-lt v10, v9, :cond_4 sub-int/2addr v9, v3 invoke-virtual {v4, v9}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->setTargetPosition(I)V invoke-virtual {v4, v8, v7}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->onAnimation(II)V goto :goto_0 :cond_4 invoke-virtual {v4, v8, v7}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->onAnimation(II)V goto :goto_0 :cond_5 const/4 v7, 0x0 const/4 v8, 0x0 :cond_6 :goto_0 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v4, v4, Landroidx/recyclerview/widget/RecyclerView;->mItemDecorations:Ljava/util/ArrayList; invoke-virtual {v4}, Ljava/util/ArrayList;->isEmpty()Z move-result v4 if-nez v4, :cond_7 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v4}, Landroid/view/ViewGroup;->invalidate()V :cond_7 iget-object v14, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v4, v14, Landroidx/recyclerview/widget/RecyclerView;->mReusableIntPair:[I aput v2, v4, v2 aput v2, v4, v3 const/16 v19, 0x0 const/16 v20, 0x1 move v15, v8 move/from16 v16, v7 move/from16 v17, v6 move/from16 v18, v13 move-object/from16 v21, v4 invoke-virtual/range {v14 .. v21}, Landroidx/recyclerview/widget/RecyclerView;->dispatchNestedScroll(IIII[II[I)V iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v9, v4, Landroidx/recyclerview/widget/RecyclerView;->mReusableIntPair:[I aget v10, v9, v2 sub-int/2addr v6, v10 aget v9, v9, v3 sub-int/2addr v13, v9 if-nez v8, :cond_8 if-eqz v7, :cond_9 :cond_8 invoke-virtual {v4, v8, v7}, Landroidx/recyclerview/widget/RecyclerView;->dispatchOnScrolled(II)V :cond_9 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 if-nez v4, :cond_a iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v4}, Landroid/view/ViewGroup;->invalidate()V :cond_a invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrX()I move-result v4 invoke-virtual {v1}, Landroid/widget/OverScroller;->getFinalX()I move-result v9 if-ne v4, v9, :cond_b const/4 v4, 0x1 goto :goto_1 :cond_b const/4 v4, 0x0 :goto_1 invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrY()I move-result v9 invoke-virtual {v1}, Landroid/widget/OverScroller;->getFinalY()I move-result v10 if-ne v9, v10, :cond_c const/4 v9, 0x1 goto :goto_2 :cond_c const/4 v9, 0x0 :goto_2 invoke-virtual {v1}, Landroid/widget/OverScroller;->isFinished()Z move-result v10 if-nez v10, :cond_f if-nez v4, :cond_d if-eqz v6, :cond_e :cond_d if-nez v9, :cond_f if-eqz v13, :cond_e goto :goto_3 :cond_e const/4 v4, 0x0 goto :goto_4 :cond_f :goto_3 const/4 v4, 0x1 :goto_4 iget-object v9, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; iget-object v9, v9, Landroidx/recyclerview/widget/RecyclerView;->mLayout:Landroidx/recyclerview/widget/RecyclerView$LayoutManager; iget-object v9, v9, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mSmoothScroller:Landroidx/recyclerview/widget/RecyclerView$SmoothScroller; if-eqz v9, :cond_10 invoke-virtual {v9}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isPendingInitialRun()Z move-result v9 if-eqz v9, :cond_10 const/4 v9, 0x1 goto :goto_5 :cond_10 const/4 v9, 0x0 :goto_5 if-nez v9, :cond_16 if-eqz v4, :cond_16 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v4}, Landroid/view/ViewGroup;->getOverScrollMode()I move-result v4 if-eq v4, v5, :cond_15 invoke-virtual {v1}, Landroid/widget/OverScroller;->getCurrVelocity()F move-result v1 float-to-int v1, v1 if-gez v6, :cond_11 neg-int v4, v1 goto :goto_6 :cond_11 if-lez v6, :cond_12 move v4, v1 goto :goto_6 :cond_12 const/4 v4, 0x0 :goto_6 if-gez v13, :cond_13 neg-int v1, v1 goto :goto_7 :cond_13 if-lez v13, :cond_14 goto :goto_7 :cond_14 const/4 v1, 0x0 :goto_7 iget-object v5, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v5, v4, v1}, Landroidx/recyclerview/widget/RecyclerView;->absorbGlows(II)V :cond_15 sget-boolean v1, Landroidx/recyclerview/widget/RecyclerView;->ALLOW_THREAD_GAP_WORK:Z if-eqz v1, :cond_17 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 goto :goto_8 :cond_16 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 v4, v1, Landroidx/recyclerview/widget/RecyclerView;->mGapWorker:Landroidx/recyclerview/widget/GapWorker; if-eqz v4, :cond_17 invoke-virtual {v4, v1, v8, v7}, Landroidx/recyclerview/widget/GapWorker;->postFromTraversal(Landroidx/recyclerview/widget/RecyclerView;II)V :cond_17 :goto_8 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; iget-object v1, v1, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mSmoothScroller:Landroidx/recyclerview/widget/RecyclerView$SmoothScroller; if-eqz v1, :cond_18 invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->isPendingInitialRun()Z move-result v4 if-eqz v4, :cond_18 invoke-virtual {v1, v2, v2}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->onAnimation(II)V :cond_18 iput-boolean v2, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mEatRunOnAnimationRequest:Z iget-boolean v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mReSchedulePostAnimationCallback:Z if-eqz v1, :cond_19 invoke-direct/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->internalPostOnAnimation()V goto :goto_9 :cond_19 iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setScrollState(I)V iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v1, v3}, Landroidx/recyclerview/widget/RecyclerView;->stopNestedScroll(I)V :goto_9 return-void .end method .method public smoothScrollBy(IIILandroid/view/animation/Interpolator;)V .locals 7 .param p4 # Landroid/view/animation/Interpolator; .annotation build Landroidx/annotation/Nullable; .end annotation .end param const/4 v0, 0x0 const/high16 v1, -0x80000000 if-ne p3, v1, :cond_0 invoke-direct {p0, p1, p2, v0, v0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->computeScrollDuration(IIII)I move-result p3 :cond_0 move v6, p3 if-nez p4, :cond_1 sget-object p4, Landroidx/recyclerview/widget/RecyclerView;->sQuinticInterpolator:Landroid/view/animation/Interpolator; :cond_1 iget-object p3, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator; if-eq p3, p4, :cond_2 iput-object p4, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mInterpolator:Landroid/view/animation/Interpolator; new-instance p3, Landroid/widget/OverScroller; iget-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v1 invoke-direct {p3, v1, p4}, Landroid/widget/OverScroller;->(Landroid/content/Context;Landroid/view/animation/Interpolator;)V iput-object p3, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; :cond_2 iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingY:I iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mLastFlingX:I iget-object p3, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->this$0:Landroidx/recyclerview/widget/RecyclerView; const/4 p4, 0x2 invoke-virtual {p3, p4}, Landroidx/recyclerview/widget/RecyclerView;->setScrollState(I)V iget-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; const/4 v2, 0x0 const/4 v3, 0x0 move v4, p1 move v5, p2 invoke-virtual/range {v1 .. v6}, Landroid/widget/OverScroller;->startScroll(IIIII)V sget p1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 p2, 0x17 if-ge p1, p2, :cond_3 iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; invoke-virtual {p1}, Landroid/widget/OverScroller;->computeScrollOffset()Z :cond_3 invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->postOnAnimation()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}, Landroid/view/ViewGroup;->removeCallbacks(Ljava/lang/Runnable;)Z iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewFlinger;->mOverScroller:Landroid/widget/OverScroller; invoke-virtual {v0}, Landroid/widget/OverScroller;->abortAnimation()V return-void .end method