- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
5597 lines
160 KiB
Smali
5597 lines
160 KiB
Smali
.class public Landroidx/recyclerview/widget/LinearLayoutManager;
|
|
.super Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/recyclerview/widget/ItemTouchHelper$ViewDropHandler;
|
|
.implements Landroidx/recyclerview/widget/RecyclerView$SmoothScroller$ScrollVectorProvider;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;,
|
|
Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;,
|
|
Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;,
|
|
Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final DEBUG:Z = false
|
|
|
|
.field public static final HORIZONTAL:I = 0x0
|
|
|
|
.field public static final INVALID_OFFSET:I = -0x80000000
|
|
|
|
.field private static final MAX_SCROLL_FACTOR:F = 0.33333334f
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "LinearLayoutManager"
|
|
|
|
.field public static final VERTICAL:I = 0x1
|
|
|
|
|
|
# instance fields
|
|
.field final mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.field private mInitialPrefetchItemCount:I
|
|
|
|
.field private mLastStackFromEnd:Z
|
|
|
|
.field private final mLayoutChunkResult:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;
|
|
|
|
.field private mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.field mOrientation:I
|
|
|
|
.field mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.field mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
.field mPendingScrollPosition:I
|
|
|
|
.field mPendingScrollPositionOffset:I
|
|
|
|
.field private mRecycleChildrenOnDetach:Z
|
|
|
|
.field private mReusableIntPair:[I
|
|
|
|
.field private mReverseLayout:Z
|
|
|
|
.field mShouldReverseLayout:Z
|
|
|
|
.field private mSmoothScrollbarEnabled:Z
|
|
|
|
.field private mStackFromEnd:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 159
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;IZ)V
|
|
.locals 1
|
|
|
|
.line 169
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;-><init>()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
iput-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
const/4 p1, -0x1
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
.line 136
|
|
new-instance p1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
invoke-direct {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 141
|
|
new-instance p1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;
|
|
|
|
invoke-direct {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutChunkResult:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;
|
|
|
|
const/4 p1, 0x2
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mInitialPrefetchItemCount:I
|
|
|
|
new-array p1, p1, [I
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 170
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->setOrientation(I)V
|
|
|
|
.line 171
|
|
invoke-virtual {p0, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->setReverseLayout(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 2
|
|
|
|
.line 183
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
iput-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
iput-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
.line 136
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 141
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutChunkResult:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mInitialPrefetchItemCount:I
|
|
|
|
new-array v0, v0, [I
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 184
|
|
invoke-static {p1, p2, p3, p4}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getProperties(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroidx/recyclerview/widget/RecyclerView$LayoutManager$Properties;
|
|
|
|
move-result-object p1
|
|
|
|
.line 185
|
|
iget p2, p1, Landroidx/recyclerview/widget/RecyclerView$LayoutManager$Properties;->orientation:I
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->setOrientation(I)V
|
|
|
|
.line 186
|
|
iget-boolean p2, p1, Landroidx/recyclerview/widget/RecyclerView$LayoutManager$Properties;->reverseLayout:Z
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->setReverseLayout(Z)V
|
|
|
|
.line 187
|
|
iget-boolean p1, p1, Landroidx/recyclerview/widget/RecyclerView$LayoutManager$Properties;->stackFromEnd:Z
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->setStackFromEnd(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private computeScrollExtent(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 6
|
|
|
|
.line 1181
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 1184
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
.line 1186
|
|
invoke-virtual {p0, v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleChildClosestToStart(ZZ)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
.line 1187
|
|
invoke-virtual {p0, v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleChildClosestToEnd(ZZ)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
iget-boolean v5, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v2, v3
|
|
|
|
move-object v3, v4
|
|
|
|
move-object v4, p0
|
|
|
|
.line 1185
|
|
invoke-static/range {v0 .. v5}, Landroidx/recyclerview/widget/ScrollbarHelper;->computeScrollExtent(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/OrientationHelper;Landroid/view/View;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Z)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private computeScrollOffset(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 7
|
|
|
|
.line 1170
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 1173
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
.line 1175
|
|
invoke-virtual {p0, v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleChildClosestToStart(ZZ)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
.line 1176
|
|
invoke-virtual {p0, v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleChildClosestToEnd(ZZ)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
iget-boolean v5, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
iget-boolean v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v2, v3
|
|
|
|
move-object v3, v4
|
|
|
|
move-object v4, p0
|
|
|
|
.line 1174
|
|
invoke-static/range {v0 .. v6}, Landroidx/recyclerview/widget/ScrollbarHelper;->computeScrollOffset(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/OrientationHelper;Landroid/view/View;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView$LayoutManager;ZZ)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private computeScrollRange(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 6
|
|
|
|
.line 1192
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 1195
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
.line 1197
|
|
invoke-virtual {p0, v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleChildClosestToStart(ZZ)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
.line 1198
|
|
invoke-virtual {p0, v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleChildClosestToEnd(ZZ)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
iget-boolean v5, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v2, v3
|
|
|
|
move-object v3, v4
|
|
|
|
move-object v4, p0
|
|
|
|
.line 1196
|
|
invoke-static/range {v0 .. v5}, Landroidx/recyclerview/widget/ScrollbarHelper;->computeScrollRange(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/OrientationHelper;Landroid/view/View;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Z)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private findFirstPartiallyOrCompletelyInvisibleChild()Landroid/view/View;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1924
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOnePartiallyOrCompletelyInvisibleChild(II)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private findLastPartiallyOrCompletelyInvisibleChild()Landroid/view/View;
|
|
.locals 2
|
|
|
|
.line 1928
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOnePartiallyOrCompletelyInvisibleChild(II)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private findPartiallyOrCompletelyInvisibleChildClosestToEnd()Landroid/view/View;
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1912
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstPartiallyOrCompletelyInvisibleChild()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1913
|
|
:cond_0
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastPartiallyOrCompletelyInvisibleChild()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private findPartiallyOrCompletelyInvisibleChildClosestToStart()Landroid/view/View;
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1919
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastPartiallyOrCompletelyInvisibleChild()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1920
|
|
:cond_0
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstPartiallyOrCompletelyInvisibleChild()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private fixLayoutEndGap(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 969
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
neg-int v0, v0
|
|
|
|
.line 972
|
|
invoke-virtual {p0, v0, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p2
|
|
|
|
neg-int p2, p2
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 980
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p3, p1
|
|
|
|
if-lez p3, :cond_0
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 982
|
|
invoke-virtual {p1, p3}, Landroidx/recyclerview/widget/OrientationHelper;->offsetChildren(I)V
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
return p3
|
|
|
|
:cond_0
|
|
return p2
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private fixLayoutStartGap(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 994
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v0
|
|
|
|
sub-int v0, p1, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 998
|
|
invoke-virtual {p0, v0, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p2
|
|
|
|
neg-int p2, p2
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1005
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p1, p3
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
neg-int p4, p1
|
|
|
|
.line 1007
|
|
invoke-virtual {p3, p4}, Landroidx/recyclerview/widget/OrientationHelper;->offsetChildren(I)V
|
|
|
|
sub-int/2addr p2, p1
|
|
|
|
:cond_0
|
|
return p2
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private getChildClosestToEnd()Landroid/view/View;
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1775
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getChildClosestToStart()Landroid/view/View;
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1765
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private layoutForPredictiveAnimations(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;II)V
|
|
.locals 10
|
|
|
|
.line 759
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->willRunPredictiveAnimations()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
.line 760
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->supportsPredictiveItemAnimations()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 765
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Recycler;->getScrapList()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
.line 766
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 767
|
|
invoke-virtual {p0, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p0, v3}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
move v4, v2
|
|
|
|
move v5, v4
|
|
|
|
move v6, v5
|
|
|
|
:goto_0
|
|
if-ge v4, v1, :cond_4
|
|
|
|
.line 769
|
|
invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
|
|
|
.line 770
|
|
invoke-virtual {v7}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->isRemoved()Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
.line 773
|
|
:cond_1
|
|
invoke-virtual {v7}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getLayoutPosition()I
|
|
|
|
move-result v8
|
|
|
|
if-ge v8, v3, :cond_2
|
|
|
|
const/4 v8, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v8, v2
|
|
|
|
:goto_1
|
|
iget-boolean v9, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eq v8, v9, :cond_3
|
|
|
|
iget-object v8, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 777
|
|
iget-object v7, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8, v7}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v5, v7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget-object v8, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 779
|
|
iget-object v7, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8, v7}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v6, v7
|
|
|
|
:goto_2
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 787
|
|
iput-object v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrapList:Ljava/util/List;
|
|
|
|
if-lez v5, :cond_5
|
|
|
|
.line 789
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToStart()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 790
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, v0, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillStart(II)V
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 791
|
|
iput v5, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 792
|
|
iput v2, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
.line 793
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->assignPositionFromScrapList()V
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 794
|
|
invoke-virtual {p0, p1, p3, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
:cond_5
|
|
if-lez v6, :cond_6
|
|
|
|
.line 798
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToEnd()Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
.line 799
|
|
invoke-virtual {p0, p3}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p3
|
|
|
|
invoke-direct {p0, p3, p4}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillEnd(II)V
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 800
|
|
iput v6, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 801
|
|
iput v2, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
.line 802
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->assignPositionFromScrapList()V
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 803
|
|
invoke-virtual {p0, p1, p3, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
:cond_6
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 805
|
|
iput-object p2, p1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrapList:Ljava/util/List;
|
|
|
|
:cond_7
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private logChildren()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2117
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 2118
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 2119
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "item "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, ", coord:"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2120
|
|
invoke-virtual {v3, v1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private recycleByLayoutState(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;)V
|
|
.locals 3
|
|
|
|
.line 1550
|
|
iget-boolean v0, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mRecycle:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-boolean v0, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mInfinite:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1553
|
|
:cond_0
|
|
iget v0, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
.line 1554
|
|
iget v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mNoRecycleSpace:I
|
|
|
|
.line 1555
|
|
iget p2, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-ne p2, v2, :cond_1
|
|
|
|
.line 1556
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleViewsFromEnd(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1558
|
|
:cond_1
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleViewsFromStart(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private recycleChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
.locals 0
|
|
|
|
if-ne p2, p3, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-le p3, p2, :cond_1
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
:goto_0
|
|
if-lt p3, p2, :cond_2
|
|
|
|
.line 1433
|
|
invoke-virtual {p0, p3, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->removeAndRecycleViewAt(ILandroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
if-le p2, p3, :cond_2
|
|
|
|
.line 1437
|
|
invoke-virtual {p0, p2, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->removeAndRecycleViewAt(ILandroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private recycleViewsFromEnd(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
.locals 4
|
|
|
|
.line 1506
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-gez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1514
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getEnd()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, p2
|
|
|
|
add-int/2addr v1, p3
|
|
|
|
iget-boolean p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
const/4 p2, 0x0
|
|
|
|
move p3, p2
|
|
|
|
:goto_0
|
|
if-ge p3, v0, :cond_6
|
|
|
|
.line 1517
|
|
invoke-virtual {p0, p3}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1518
|
|
invoke-virtual {v3, v2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
if-lt v3, v1, :cond_2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1519
|
|
invoke-virtual {v3, v2}, Landroidx/recyclerview/widget/OrientationHelper;->getTransformedStartWithDecoration(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
if-ge v2, v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1521
|
|
:cond_2
|
|
:goto_1
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
move p2, v0
|
|
|
|
:goto_2
|
|
if-ltz p2, :cond_6
|
|
|
|
.line 1527
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1528
|
|
invoke-virtual {v2, p3}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
if-lt v2, v1, :cond_5
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1529
|
|
invoke-virtual {v2, p3}, Landroidx/recyclerview/widget/OrientationHelper;->getTransformedStartWithDecoration(Landroid/view/View;)I
|
|
|
|
move-result p3
|
|
|
|
if-ge p3, v1, :cond_4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 1531
|
|
:cond_5
|
|
:goto_3
|
|
invoke-direct {p0, p1, v0, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method private recycleViewsFromStart(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
.locals 4
|
|
|
|
if-gez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
sub-int/2addr p2, p3
|
|
|
|
.line 1466
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
move v0, p3
|
|
|
|
:goto_0
|
|
if-ltz v0, :cond_6
|
|
|
|
.line 1469
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1470
|
|
invoke-virtual {v2, v1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
if-gt v2, p2, :cond_2
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1471
|
|
invoke-virtual {v2, v1}, Landroidx/recyclerview/widget/OrientationHelper;->getTransformedEndWithDecoration(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
if-le v1, p2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1473
|
|
:cond_2
|
|
:goto_1
|
|
invoke-direct {p0, p1, p3, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_2
|
|
if-ge v1, p3, :cond_6
|
|
|
|
.line 1479
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1480
|
|
invoke-virtual {v3, v2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
if-gt v3, p2, :cond_5
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1481
|
|
invoke-virtual {v3, v2}, Landroidx/recyclerview/widget/OrientationHelper;->getTransformedEndWithDecoration(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
if-le v2, p2, :cond_4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 1483
|
|
:cond_5
|
|
:goto_3
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;II)V
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method private resolveShouldLayoutReverse()V
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 365
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->isLayoutRTL()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateAnchorFromChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)Z
|
|
.locals 5
|
|
|
|
.line 838
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 841
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getFocusedChild()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 842
|
|
invoke-virtual {p3, v0, p2}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->isViewValidAsAnchor(Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView$State;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 843
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p3, v0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignFromViewAndKeepVisibleRect(Landroid/view/View;I)V
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLastStackFromEnd:Z
|
|
|
|
iget-boolean v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
if-eq v0, v3, :cond_2
|
|
|
|
return v1
|
|
|
|
.line 849
|
|
:cond_2
|
|
iget-boolean v0, p3, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
.line 850
|
|
invoke-virtual {p0, p1, p2, v0, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;->findReferenceChild(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;ZZ)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
.line 856
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p3, p1, v0}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignFromView(Landroid/view/View;I)V
|
|
|
|
.line 859
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_7
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->supportsPredictiveItemAnimations()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
iget-object p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 861
|
|
invoke-virtual {p2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 862
|
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 863
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 864
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v3
|
|
|
|
if-gt p1, v0, :cond_3
|
|
|
|
if-ge p2, v0, :cond_3
|
|
|
|
move v4, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
move v4, v1
|
|
|
|
:goto_0
|
|
if-lt p2, v3, :cond_4
|
|
|
|
if-le p1, v3, :cond_4
|
|
|
|
move v1, v2
|
|
|
|
:cond_4
|
|
if-nez v4, :cond_5
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 870
|
|
:cond_5
|
|
iget-boolean p1, p3, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
move v0, v3
|
|
|
|
:cond_6
|
|
iput v0, p3, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
:cond_7
|
|
return v2
|
|
|
|
:cond_8
|
|
return v1
|
|
.end method
|
|
|
|
.method private updateAnchorFromPendingData(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)Z
|
|
.locals 4
|
|
|
|
.line 883
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_f
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_0
|
|
const/high16 v3, -0x80000000
|
|
|
|
if-ltz v0, :cond_e
|
|
|
|
.line 887
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
|
|
|
move-result p1
|
|
|
|
if-lt v0, p1, :cond_1
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_1
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
.line 898
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 899
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->hasValidAnchor()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
.line 902
|
|
iget-boolean p1, p1, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorLayoutFromEnd:Z
|
|
|
|
iput-boolean p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 904
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
iget v1, v1, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorOffset:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 907
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
iget v1, v1, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorOffset:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_3
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
if-ne p1, v3, :cond_c
|
|
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
.line 914
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findViewByPosition(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 916
|
|
invoke-virtual {v2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 917
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpace()I
|
|
|
|
move-result v3
|
|
|
|
if-le v2, v3, :cond_4
|
|
|
|
.line 919
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignCoordinateFromPadding()V
|
|
|
|
return v0
|
|
|
|
:cond_4
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 922
|
|
invoke-virtual {v2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 923
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
if-gez v2, :cond_5
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 925
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
.line 926
|
|
iput-boolean v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
return v0
|
|
|
|
:cond_5
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 929
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 930
|
|
invoke-virtual {v2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
if-gez v1, :cond_6
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 932
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
.line 933
|
|
iput-boolean v0, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
return v0
|
|
|
|
.line 936
|
|
:cond_6
|
|
iget-boolean v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 937
|
|
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 938
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpaceChange()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 939
|
|
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
:goto_1
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 941
|
|
:cond_8
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_b
|
|
|
|
.line 943
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
iget v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
if-ge v2, p1, :cond_9
|
|
|
|
move p1, v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
move p1, v1
|
|
|
|
:goto_2
|
|
iget-boolean v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-ne p1, v2, :cond_a
|
|
|
|
move v1, v0
|
|
|
|
.line 944
|
|
:cond_a
|
|
iput-boolean v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
.line 947
|
|
:cond_b
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignCoordinateFromPadding()V
|
|
|
|
:goto_3
|
|
return v0
|
|
|
|
:cond_c
|
|
iget-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
.line 952
|
|
iput-boolean p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
if-eqz p1, :cond_d
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 955
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iget v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
goto :goto_4
|
|
|
|
:cond_d
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 958
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iget v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
:goto_4
|
|
return v0
|
|
|
|
:cond_e
|
|
:goto_5
|
|
iput v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
iput v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
:cond_f
|
|
:goto_6
|
|
return v1
|
|
.end method
|
|
|
|
.method private updateAnchorInfoForLayout(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
.locals 1
|
|
|
|
.line 810
|
|
invoke-direct {p0, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateAnchorFromPendingData(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 817
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateAnchorFromChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 826
|
|
:cond_1
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignCoordinateFromPadding()V
|
|
|
|
iget-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 827
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
iput p1, p3, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateLayoutState(IIZLandroidx/recyclerview/widget/RecyclerView$State;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1235
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->resolveIsInfinite()Z
|
|
|
|
move-result v1
|
|
|
|
iput-boolean v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mInfinite:Z
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1236
|
|
iput p1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1237
|
|
aput v1, v0, v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 1238
|
|
aput v1, v0, v2
|
|
|
|
.line 1239
|
|
invoke-virtual {p0, p4, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->calculateExtraLayoutSpace(Landroidx/recyclerview/widget/RecyclerView$State;[I)V
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 1240
|
|
aget p4, p4, v1
|
|
|
|
invoke-static {v1, p4}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p4
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 1241
|
|
aget v0, v0, v2
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
if-ne p1, v2, :cond_0
|
|
|
|
move v1, v2
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
move v3, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v3, p4
|
|
|
|
.line 1243
|
|
:goto_0
|
|
iput v3, p1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move p4, v0
|
|
|
|
.line 1244
|
|
:goto_1
|
|
iput p4, p1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mNoRecycleSpace:I
|
|
|
|
const/4 p4, -0x1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1247
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getEndPadding()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
iput v3, p1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 1249
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToEnd()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move v2, p4
|
|
|
|
.line 1252
|
|
:cond_3
|
|
iput v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
.line 1253
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p4
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget v2, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
add-int/2addr p4, v2
|
|
|
|
iput p4, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1254
|
|
invoke-virtual {p4, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result p4
|
|
|
|
iput p4, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1256
|
|
invoke-virtual {p4, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1257
|
|
invoke-virtual {p4}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p4
|
|
|
|
sub-int/2addr p1, p4
|
|
|
|
goto :goto_3
|
|
|
|
.line 1260
|
|
:cond_4
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToStart()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1261
|
|
iget v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
move v2, p4
|
|
|
|
.line 1263
|
|
:goto_2
|
|
iput v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
.line 1264
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p4
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget v2, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
add-int/2addr p4, v2
|
|
|
|
iput p4, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1265
|
|
invoke-virtual {p4, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result p4
|
|
|
|
iput p4, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1266
|
|
invoke-virtual {p4, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
neg-int p1, p1
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1267
|
|
invoke-virtual {p4}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result p4
|
|
|
|
add-int/2addr p1, p4
|
|
|
|
:goto_3
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1269
|
|
iput p2, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
if-eqz p3, :cond_6
|
|
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 1271
|
|
iput p2, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
.line 1273
|
|
:cond_6
|
|
iput p1, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateLayoutStateToFillEnd(II)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1019
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, p2
|
|
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v2
|
|
|
|
.line 1021
|
|
:goto_0
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
.line 1022
|
|
iput p1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
.line 1023
|
|
iput v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
.line 1024
|
|
iput p2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
.line 1025
|
|
iput p1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateLayoutStateToFillEnd(Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
.locals 1
|
|
|
|
.line 1015
|
|
iget v0, p1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
|
|
|
iget p1, p1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
invoke-direct {p0, v0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillEnd(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateLayoutStateToFillStart(II)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1033
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v1
|
|
|
|
sub-int v1, p2, v1
|
|
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1034
|
|
iput p1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
iget-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p1, v1
|
|
|
|
.line 1036
|
|
:goto_0
|
|
iput p1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
.line 1037
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
.line 1038
|
|
iput p2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
.line 1039
|
|
iput p1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateLayoutStateToFillStart(Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
.locals 1
|
|
|
|
.line 1029
|
|
iget v0, p1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
|
|
|
iget p1, p1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
|
|
|
invoke-direct {p0, v0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillStart(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public assertNotInLayoutOrScroll(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 1414
|
|
invoke-super {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->assertNotInLayoutOrScroll(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public calculateExtraLayoutSpace(Landroidx/recyclerview/widget/RecyclerView$State;[I)V
|
|
.locals 3
|
|
.param p1 # Landroidx/recyclerview/widget/RecyclerView$State;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # [I
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 491
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->getExtraLayoutSpace(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 492
|
|
iget v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, p1
|
|
|
|
move p1, v2
|
|
|
|
.line 498
|
|
:goto_0
|
|
aput p1, p2, v2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 499
|
|
aput v0, p2, p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public canScrollHorizontally()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public canScrollVertically()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public collectAdjacentPrefetchPositions(IILandroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/RecyclerView$LayoutManager$LayoutPrefetchRegistry;)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p1, p2
|
|
|
|
.line 1373
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
.line 1378
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
move v0, p2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v0, -0x1
|
|
|
|
.line 1380
|
|
:goto_1
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 1381
|
|
invoke-direct {p0, v0, p1, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutState(IIZLandroidx/recyclerview/widget/RecyclerView$State;)V
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1382
|
|
invoke-virtual {p0, p3, p1, p4}, Landroidx/recyclerview/widget/LinearLayoutManager;->collectPrefetchPositionsForLayoutState(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$LayoutManager$LayoutPrefetchRegistry;)V
|
|
|
|
:cond_3
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public collectInitialPrefetchPositions(ILandroidx/recyclerview/widget/RecyclerView$LayoutManager$LayoutPrefetchRegistry;)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1294
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->hasValidAnchor()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
.line 1296
|
|
iget-boolean v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorLayoutFromEnd:Z
|
|
|
|
.line 1297
|
|
iget v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorPosition:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 1299
|
|
:cond_0
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->resolveShouldLayoutReverse()V
|
|
|
|
iget-boolean v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
add-int/lit8 v0, p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v2
|
|
|
|
:cond_2
|
|
:goto_0
|
|
if-eqz v3, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v1, 0x1
|
|
|
|
:goto_1
|
|
move v3, v2
|
|
|
|
:goto_2
|
|
iget v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mInitialPrefetchItemCount:I
|
|
|
|
if-ge v3, v4, :cond_4
|
|
|
|
if-ltz v0, :cond_4
|
|
|
|
if-ge v0, p1, :cond_4
|
|
|
|
.line 1314
|
|
invoke-interface {p2, v0, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager$LayoutPrefetchRegistry;->addPosition(II)V
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public collectPrefetchPositionsForLayoutState(Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$LayoutManager$LayoutPrefetchRegistry;)V
|
|
.locals 1
|
|
|
|
.line 1283
|
|
iget v0, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 1284
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
|
|
|
move-result p1
|
|
|
|
if-ge v0, p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1285
|
|
iget p2, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {p3, v0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager$LayoutPrefetchRegistry;->addPosition(II)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public computeHorizontalScrollExtent(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
|
|
.line 1151
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->computeScrollExtent(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public computeHorizontalScrollOffset(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
|
|
.line 1141
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->computeScrollOffset(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public computeHorizontalScrollRange(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
|
|
.line 1161
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->computeScrollRange(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public computeScrollVectorForPosition(I)Landroid/graphics/PointF;
|
|
.locals 3
|
|
|
|
.line 513
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 516
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ge p1, v1, :cond_1
|
|
|
|
move v0, v2
|
|
|
|
:cond_1
|
|
iget-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eq v0, p1, :cond_2
|
|
|
|
const/4 v2, -0x1
|
|
|
|
:cond_2
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 519
|
|
new-instance p1, Landroid/graphics/PointF;
|
|
|
|
int-to-float v1, v2
|
|
|
|
invoke-direct {p1, v1, v0}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
return-object p1
|
|
|
|
.line 521
|
|
:cond_3
|
|
new-instance p1, Landroid/graphics/PointF;
|
|
|
|
int-to-float v1, v2
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public computeVerticalScrollExtent(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
|
|
.line 1156
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->computeScrollExtent(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public computeVerticalScrollOffset(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
|
|
.line 1146
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->computeScrollOffset(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public computeVerticalScrollRange(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
|
|
.line 1166
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->computeScrollRange(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public convertFocusDirectionToLayoutDirection(I)I
|
|
.locals 4
|
|
|
|
const/4 v0, -0x1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq p1, v1, :cond_b
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-eq p1, v2, :cond_8
|
|
|
|
const/16 v2, 0x11
|
|
|
|
const/high16 v3, -0x80000000
|
|
|
|
if-eq p1, v2, :cond_6
|
|
|
|
const/16 v2, 0x21
|
|
|
|
if-eq p1, v2, :cond_4
|
|
|
|
const/16 v0, 0x42
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
const/16 v0, 0x82
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
return v3
|
|
|
|
:cond_0
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-ne p1, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v1, v3
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_2
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v1, v3
|
|
|
|
:goto_1
|
|
return v1
|
|
|
|
:cond_4
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-ne p1, v1, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
move v0, v3
|
|
|
|
:goto_2
|
|
return v0
|
|
|
|
:cond_6
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
move v0, v3
|
|
|
|
:goto_3
|
|
return v0
|
|
|
|
:cond_8
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-ne p1, v1, :cond_9
|
|
|
|
return v1
|
|
|
|
.line 1732
|
|
:cond_9
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->isLayoutRTL()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_a
|
|
|
|
return v0
|
|
|
|
:cond_a
|
|
return v1
|
|
|
|
:cond_b
|
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-ne p1, v1, :cond_c
|
|
|
|
return v0
|
|
|
|
.line 1724
|
|
:cond_c
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->isLayoutRTL()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_d
|
|
|
|
return v1
|
|
|
|
:cond_d
|
|
return v0
|
|
.end method
|
|
|
|
.method public createLayoutState()Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
.locals 1
|
|
|
|
.line 1059
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public ensureLayoutState()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 1049
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->createLayoutState()Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
.locals 7
|
|
|
|
.line 1576
|
|
iget v0, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
.line 1577
|
|
iget v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
const/high16 v2, -0x80000000
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
.line 1580
|
|
iput v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
.line 1582
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleByLayoutState(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;)V
|
|
|
|
.line 1584
|
|
:cond_1
|
|
iget v1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
iget v3, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutChunkResult:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;
|
|
|
|
.line 1586
|
|
:cond_2
|
|
iget-boolean v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mInfinite:Z
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
if-lez v1, :cond_9
|
|
|
|
:cond_3
|
|
invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->hasMore(Landroidx/recyclerview/widget/RecyclerView$State;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
.line 1587
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->resetInternal()V
|
|
|
|
.line 1591
|
|
invoke-virtual {p0, p1, p3, p2, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;->layoutChunk(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;)V
|
|
|
|
.line 1595
|
|
iget-boolean v4, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mFinished:Z
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
.line 1598
|
|
:cond_4
|
|
iget v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
iget v5, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
iget v6, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
mul-int/2addr v5, v6
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
iput v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 1605
|
|
iget-boolean v4, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mIgnoreConsumed:Z
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
iget-object v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrapList:Ljava/util/List;
|
|
|
|
if-nez v4, :cond_5
|
|
|
|
.line 1606
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_6
|
|
|
|
.line 1607
|
|
:cond_5
|
|
iget v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
iget v5, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
iput v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
sub-int/2addr v1, v5
|
|
|
|
.line 1612
|
|
:cond_6
|
|
iget v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
if-eq v4, v2, :cond_8
|
|
|
|
.line 1613
|
|
iget v5, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
iput v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
.line 1614
|
|
iget v5, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
if-gez v5, :cond_7
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
.line 1615
|
|
iput v4, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
.line 1617
|
|
:cond_7
|
|
invoke-direct {p0, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->recycleByLayoutState(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;)V
|
|
|
|
:cond_8
|
|
if-eqz p4, :cond_2
|
|
|
|
.line 1619
|
|
iget-boolean v4, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mFocusable:Z
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 1626
|
|
:cond_9
|
|
:goto_0
|
|
iget p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public findFirstCompletelyVisibleItemPosition()I
|
|
.locals 3
|
|
|
|
.line 1967
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, v2, v0, v1, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1968
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public findFirstVisibleChildClosestToEnd(ZZ)Landroid/view/View;
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1806
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v0, v1, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 1809
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public findFirstVisibleChildClosestToStart(ZZ)Landroid/view/View;
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1788
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 1791
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v0, v1, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public findFirstVisibleItemPosition()I
|
|
.locals 3
|
|
|
|
.line 1950
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, v2, v0, v2, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1951
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public findLastCompletelyVisibleItemPosition()I
|
|
.locals 4
|
|
|
|
.line 2007
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, -0x1
|
|
|
|
invoke-virtual {p0, v0, v3, v1, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2008
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
:goto_0
|
|
return v3
|
|
.end method
|
|
|
|
.method public findLastVisibleItemPosition()I
|
|
.locals 4
|
|
|
|
.line 1990
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, -0x1
|
|
|
|
invoke-virtual {p0, v0, v3, v2, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1991
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
:goto_0
|
|
return v3
|
|
.end method
|
|
|
|
.method public findOnePartiallyOrCompletelyInvisibleChild(II)Landroid/view/View;
|
|
.locals 3
|
|
|
|
.line 2039
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
if-le p2, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ge p2, p1, :cond_3
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2046
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2047
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const/16 v0, 0x4104
|
|
|
|
const/16 v1, 0x4004
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v0, 0x1041
|
|
|
|
const/16 v1, 0x1001
|
|
|
|
:goto_1
|
|
iget v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mHorizontalBoundCheck:Landroidx/recyclerview/widget/ViewBoundsCheck;
|
|
|
|
.line 2059
|
|
invoke-virtual {v2, p1, p2, v0, v1}, Landroidx/recyclerview/widget/ViewBoundsCheck;->findOneViewWithinBoundFlags(IIII)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mVerticalBoundCheck:Landroidx/recyclerview/widget/ViewBoundsCheck;
|
|
|
|
.line 2061
|
|
invoke-virtual {v2, p1, p2, v0, v1}, Landroidx/recyclerview/widget/ViewBoundsCheck;->findOneViewWithinBoundFlags(IIII)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_2
|
|
return-object p1
|
|
|
|
.line 2042
|
|
:cond_3
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public findOneVisibleChild(IIZZ)Landroid/view/View;
|
|
.locals 1
|
|
|
|
.line 2017
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
const/16 v0, 0x140
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/16 p3, 0x6003
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p3, v0
|
|
|
|
:goto_0
|
|
if-eqz p4, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
iget p4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez p4, :cond_2
|
|
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mHorizontalBoundCheck:Landroidx/recyclerview/widget/ViewBoundsCheck;
|
|
|
|
.line 2032
|
|
invoke-virtual {p4, p1, p2, p3, v0}, Landroidx/recyclerview/widget/ViewBoundsCheck;->findOneViewWithinBoundFlags(IIII)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->mVerticalBoundCheck:Landroidx/recyclerview/widget/ViewBoundsCheck;
|
|
|
|
.line 2034
|
|
invoke-virtual {p4, p1, p2, p3, v0}, Landroidx/recyclerview/widget/ViewBoundsCheck;->findOneViewWithinBoundFlags(IIII)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_2
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public findReferenceChild(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;ZZ)Landroid/view/View;
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
.line 1837
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
.line 1841
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
.line 1844
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
const/4 v4, -0x1
|
|
|
|
move v5, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v4, v1
|
|
|
|
move v1, v2
|
|
|
|
move v5, v3
|
|
|
|
.line 1849
|
|
:goto_0
|
|
invoke-virtual/range {p2 .. p2}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
|
|
|
move-result v6
|
|
|
|
iget-object v7, v0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1851
|
|
invoke-virtual {v7}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v7
|
|
|
|
iget-object v8, v0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1852
|
|
invoke-virtual {v8}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v8
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v10, v9
|
|
|
|
move-object v11, v10
|
|
|
|
:goto_1
|
|
if-eq v1, v4, :cond_a
|
|
|
|
.line 1859
|
|
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v12
|
|
|
|
.line 1860
|
|
invoke-virtual {v0, v12}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v13
|
|
|
|
iget-object v14, v0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1861
|
|
invoke-virtual {v14, v12}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v14
|
|
|
|
iget-object v15, v0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1862
|
|
invoke-virtual {v15, v12}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v15
|
|
|
|
if-ltz v13, :cond_9
|
|
|
|
if-ge v13, v6, :cond_9
|
|
|
|
.line 1864
|
|
invoke-virtual {v12}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v13
|
|
|
|
check-cast v13, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
|
|
|
invoke-virtual {v13}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->isItemRemoved()Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_1
|
|
|
|
if-nez v11, :cond_9
|
|
|
|
move-object v11, v12
|
|
|
|
goto :goto_7
|
|
|
|
:cond_1
|
|
if-gt v15, v7, :cond_2
|
|
|
|
if-ge v14, v7, :cond_2
|
|
|
|
move v13, v3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v13, v2
|
|
|
|
:goto_2
|
|
if-lt v14, v8, :cond_3
|
|
|
|
if-le v15, v8, :cond_3
|
|
|
|
move v14, v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move v14, v2
|
|
|
|
:goto_3
|
|
if-nez v13, :cond_5
|
|
|
|
if-eqz v14, :cond_4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
return-object v12
|
|
|
|
:cond_5
|
|
:goto_4
|
|
if-eqz p3, :cond_7
|
|
|
|
if-eqz v14, :cond_6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
if-nez v9, :cond_9
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
if-eqz v13, :cond_8
|
|
|
|
:goto_5
|
|
move-object v10, v12
|
|
|
|
goto :goto_7
|
|
|
|
:cond_8
|
|
if-nez v9, :cond_9
|
|
|
|
:goto_6
|
|
move-object v9, v12
|
|
|
|
:cond_9
|
|
:goto_7
|
|
add-int/2addr v1, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_a
|
|
if-eqz v9, :cond_b
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
if-eqz v10, :cond_c
|
|
|
|
move-object v9, v10
|
|
|
|
goto :goto_8
|
|
|
|
:cond_c
|
|
move-object v9, v11
|
|
|
|
:goto_8
|
|
return-object v9
|
|
.end method
|
|
|
|
.method public findViewByPosition(I)Landroid/view/View;
|
|
.locals 2
|
|
|
|
.line 410
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 414
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
sub-int v1, p1, v1
|
|
|
|
if-ltz v1, :cond_1
|
|
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 417
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 418
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
if-ne v1, p1, :cond_1
|
|
|
|
return-object v0
|
|
|
|
.line 423
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->findViewByPosition(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public generateDefaultLayoutParams()Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
|
.locals 2
|
|
|
|
.line 200
|
|
new-instance v0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
invoke-direct {v0, v1, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getExtraLayoutSpace(Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 450
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->hasTargetScrollPosition()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 451
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpace()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getInitialPrefetchItemCount()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mInitialPrefetchItemCount:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOrientation()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRecycleChildrenOnDetach()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mRecycleChildrenOnDetach:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getReverseLayout()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getStackFromEnd()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isAutoMeasureEnabled()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isLayoutRTL()Z
|
|
.locals 2
|
|
|
|
.line 1044
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getLayoutDirection()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public isSmoothScrollbarEnabled()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public layoutChunk(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;)V
|
|
.locals 7
|
|
|
|
.line 1631
|
|
invoke-virtual {p3, p1}, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->next(Landroidx/recyclerview/widget/RecyclerView$Recycler;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1638
|
|
iput-boolean p2, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mFinished:Z
|
|
|
|
return-void
|
|
|
|
.line 1641
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v6, v0
|
|
|
|
check-cast v6, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
|
|
|
.line 1642
|
|
iget-object v0, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrapList:Ljava/util/List;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
.line 1643
|
|
iget v3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
if-ne v3, v1, :cond_1
|
|
|
|
move v3, p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ne v0, v3, :cond_2
|
|
|
|
.line 1645
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->addView(Landroid/view/View;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 1647
|
|
:cond_2
|
|
invoke-virtual {p0, p1, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->addView(Landroid/view/View;I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
.line 1650
|
|
iget v3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
if-ne v3, v1, :cond_4
|
|
|
|
move v3, p2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
move v3, v2
|
|
|
|
:goto_1
|
|
if-ne v0, v3, :cond_5
|
|
|
|
.line 1652
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->addDisappearingView(Landroid/view/View;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 1654
|
|
:cond_5
|
|
invoke-virtual {p0, p1, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->addDisappearingView(Landroid/view/View;I)V
|
|
|
|
.line 1657
|
|
:goto_2
|
|
invoke-virtual {p0, p1, v2, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->measureChildWithMargins(Landroid/view/View;II)V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1658
|
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-ne v0, p2, :cond_8
|
|
|
|
.line 1661
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->isLayoutRTL()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 1662
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1663
|
|
invoke-virtual {v2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurementInOther(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
sub-int v2, v0, v2
|
|
|
|
goto :goto_3
|
|
|
|
.line 1665
|
|
:cond_6
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingLeft()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1666
|
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurementInOther(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
.line 1668
|
|
:goto_3
|
|
iget v3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
if-ne v3, v1, :cond_7
|
|
|
|
.line 1669
|
|
iget p3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 1670
|
|
iget v1, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
sub-int v1, p3, v1
|
|
|
|
move v5, p3
|
|
|
|
move v4, v0
|
|
|
|
move v3, v1
|
|
|
|
goto :goto_4
|
|
|
|
.line 1672
|
|
:cond_7
|
|
iget p3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 1673
|
|
iget v1, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
add-int/2addr v1, p3
|
|
|
|
move v3, p3
|
|
|
|
move v4, v0
|
|
|
|
move v5, v1
|
|
|
|
goto :goto_4
|
|
|
|
.line 1676
|
|
:cond_8
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingTop()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1677
|
|
invoke-virtual {v2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurementInOther(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
.line 1679
|
|
iget v3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
if-ne v3, v1, :cond_9
|
|
|
|
.line 1680
|
|
iget p3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 1681
|
|
iget v1, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
sub-int v1, p3, v1
|
|
|
|
move v4, p3
|
|
|
|
move v3, v0
|
|
|
|
move v5, v2
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_4
|
|
|
|
.line 1683
|
|
:cond_9
|
|
iget p3, p3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 1684
|
|
iget v1, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mConsumed:I
|
|
|
|
add-int/2addr v1, p3
|
|
|
|
move v3, v0
|
|
|
|
move v4, v1
|
|
|
|
move v5, v2
|
|
|
|
move v2, p3
|
|
|
|
:goto_4
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
.line 1689
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->layoutDecoratedWithMargins(Landroid/view/View;IIII)V
|
|
|
|
.line 1696
|
|
invoke-virtual {v6}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->isItemRemoved()Z
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_a
|
|
|
|
invoke-virtual {v6}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->isItemChanged()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_b
|
|
|
|
.line 1697
|
|
:cond_a
|
|
iput-boolean p2, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mIgnoreConsumed:Z
|
|
|
|
.line 1699
|
|
:cond_b
|
|
invoke-virtual {p1}, Landroid/view/View;->hasFocusable()Z
|
|
|
|
move-result p1
|
|
|
|
iput-boolean p1, p4, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutChunkResult;->mFocusable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAnchorReady(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;I)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
.locals 0
|
|
|
|
.line 234
|
|
invoke-super {p0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->onDetachedFromWindow(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
|
|
iget-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mRecycleChildrenOnDetach:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 236
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->removeAndRecycleAllViews(Landroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
|
|
.line 237
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$Recycler;->clear()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onFocusSearchFailed(Landroid/view/View;ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)Landroid/view/View;
|
|
.locals 3
|
|
|
|
.line 2068
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->resolveShouldLayoutReverse()V
|
|
|
|
.line 2069
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 2073
|
|
:cond_0
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->convertFocusDirectionToLayoutDirection(I)I
|
|
|
|
move-result p1
|
|
|
|
const/high16 p2, -0x80000000
|
|
|
|
if-ne p1, p2, :cond_1
|
|
|
|
return-object v0
|
|
|
|
.line 2077
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2078
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpace()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
const v2, 0x3eaaaaab
|
|
|
|
mul-float/2addr v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 2079
|
|
invoke-direct {p0, p1, v1, v2, p4}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutState(IIZLandroidx/recyclerview/widget/RecyclerView$State;)V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 2080
|
|
iput p2, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
.line 2081
|
|
iput-boolean v2, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mRecycle:Z
|
|
|
|
const/4 p2, 0x1
|
|
|
|
.line 2082
|
|
invoke-virtual {p0, p3, v1, p4, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
const/4 p2, -0x1
|
|
|
|
if-ne p1, p2, :cond_2
|
|
|
|
.line 2090
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findPartiallyOrCompletelyInvisibleChildClosestToStart()Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
goto :goto_0
|
|
|
|
.line 2092
|
|
:cond_2
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findPartiallyOrCompletelyInvisibleChildClosestToEnd()Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
:goto_0
|
|
if-ne p1, p2, :cond_3
|
|
|
|
.line 2098
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToStart()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 2100
|
|
:cond_3
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToEnd()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2102
|
|
:goto_1
|
|
invoke-virtual {p1}, Landroid/view/View;->hasFocusable()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
if-nez p3, :cond_4
|
|
|
|
return-object v0
|
|
|
|
:cond_4
|
|
return-object p1
|
|
|
|
:cond_5
|
|
return-object p3
|
|
.end method
|
|
|
|
.method public onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
|
|
.locals 1
|
|
|
|
.line 243
|
|
invoke-super {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
|
|
|
|
.line 244
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 245
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleItemPosition()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityRecord;->setFromIndex(I)V
|
|
|
|
.line 246
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastVisibleItemPosition()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityRecord;->setToIndex(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onLayoutChildren(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 541
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 542
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->removeAndRecycleAllViews(Landroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 546
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->hasValidAnchor()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
.line 547
|
|
iget v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorPosition:I
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
.line 550
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 551
|
|
iput-boolean v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mRecycle:Z
|
|
|
|
.line 553
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->resolveShouldLayoutReverse()V
|
|
|
|
.line 555
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getFocusedChild()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 556
|
|
iget-boolean v4, v3, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mValid:Z
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
iget v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
if-ne v4, v1, :cond_5
|
|
|
|
iget-object v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
if-eqz v0, :cond_6
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 563
|
|
invoke-virtual {v3, v0}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 564
|
|
invoke-virtual {v4}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v4
|
|
|
|
if-ge v3, v4, :cond_4
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 565
|
|
invoke-virtual {v3, v0}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 566
|
|
invoke-virtual {v4}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v4
|
|
|
|
if-gt v3, v4, :cond_6
|
|
|
|
:cond_4
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 578
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v3, v0, v4}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignFromViewAndKeepVisibleRect(Landroid/view/View;I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 558
|
|
:cond_5
|
|
:goto_0
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->reset()V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
iget-boolean v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
iget-boolean v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
xor-int/2addr v3, v4
|
|
|
|
.line 559
|
|
iput-boolean v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
.line 561
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateAnchorInfoForLayout(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 562
|
|
iput-boolean v5, v0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mValid:Z
|
|
|
|
:cond_6
|
|
:goto_1
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 587
|
|
iget v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLastScrollDelta:I
|
|
|
|
if-ltz v3, :cond_7
|
|
|
|
move v3, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
move v3, v1
|
|
|
|
.line 588
|
|
:goto_2
|
|
iput v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLayoutDirection:I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 589
|
|
aput v2, v0, v2
|
|
|
|
.line 590
|
|
aput v2, v0, v5
|
|
|
|
.line 591
|
|
invoke-virtual {p0, p2, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->calculateExtraLayoutSpace(Landroidx/recyclerview/widget/RecyclerView$State;[I)V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 592
|
|
aget v0, v0, v2
|
|
|
|
invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 593
|
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReusableIntPair:[I
|
|
|
|
.line 594
|
|
aget v3, v3, v5
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 595
|
|
invoke-virtual {v4}, Landroidx/recyclerview/widget/OrientationHelper;->getEndPadding()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
.line 596
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_a
|
|
|
|
iget v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
if-eq v4, v1, :cond_a
|
|
|
|
iget v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
const/high16 v7, -0x80000000
|
|
|
|
if-eq v6, v7, :cond_a
|
|
|
|
.line 601
|
|
invoke-virtual {p0, v4}, Landroidx/recyclerview/widget/LinearLayoutManager;->findViewByPosition(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_a
|
|
|
|
iget-boolean v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v6, :cond_8
|
|
|
|
iget-object v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 606
|
|
invoke-virtual {v6}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v6
|
|
|
|
iget-object v7, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 607
|
|
invoke-virtual {v7, v4}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v6, v4
|
|
|
|
iget v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
:goto_3
|
|
sub-int/2addr v6, v4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
iget-object v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 610
|
|
invoke-virtual {v6, v4}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v4
|
|
|
|
iget-object v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 611
|
|
invoke-virtual {v6}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v6
|
|
|
|
sub-int/2addr v4, v6
|
|
|
|
iget v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
goto :goto_3
|
|
|
|
:goto_4
|
|
if-lez v6, :cond_9
|
|
|
|
add-int/2addr v0, v6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
sub-int/2addr v3, v6
|
|
|
|
:cond_a
|
|
:goto_5
|
|
iget-object v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 624
|
|
iget-boolean v6, v4, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
if-eqz v6, :cond_c
|
|
|
|
iget-boolean v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v6, :cond_d
|
|
|
|
:cond_b
|
|
move v1, v5
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
iget-boolean v6, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
.line 632
|
|
:cond_d
|
|
:goto_6
|
|
invoke-virtual {p0, p1, p2, v4, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->onAnchorReady(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;I)V
|
|
|
|
.line 633
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->detachAndScrapAttachedViews(Landroidx/recyclerview/widget/RecyclerView$Recycler;)V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 634
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->resolveIsInfinite()Z
|
|
|
|
move-result v4
|
|
|
|
iput-boolean v4, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mInfinite:Z
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 635
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result v4
|
|
|
|
iput-boolean v4, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mIsPreLayout:Z
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 638
|
|
iput v2, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mNoRecycleSpace:I
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 639
|
|
iget-boolean v4, v1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
|
|
|
if-eqz v4, :cond_f
|
|
|
|
.line 641
|
|
invoke-direct {p0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillStart(Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 642
|
|
iput v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 643
|
|
invoke-virtual {p0, p1, v1, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 644
|
|
iget v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 645
|
|
iget v4, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
.line 646
|
|
iget v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
if-lez v0, :cond_e
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
:cond_e
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 650
|
|
invoke-direct {p0, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillEnd(Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 651
|
|
iput v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 652
|
|
iget v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
iget v6, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
add-int/2addr v3, v6
|
|
|
|
iput v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
.line 653
|
|
invoke-virtual {p0, p1, v0, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 654
|
|
iget v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 656
|
|
iget v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
if-lez v0, :cond_11
|
|
|
|
.line 659
|
|
invoke-direct {p0, v4, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillStart(II)V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 660
|
|
iput v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 661
|
|
invoke-virtual {p0, p1, v1, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 662
|
|
iget v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
goto :goto_7
|
|
|
|
.line 666
|
|
:cond_f
|
|
invoke-direct {p0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillEnd(Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 667
|
|
iput v3, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 668
|
|
invoke-virtual {p0, p1, v1, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 669
|
|
iget v3, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 670
|
|
iget v4, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
.line 671
|
|
iget v1, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
if-lez v1, :cond_10
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
:cond_10
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 675
|
|
invoke-direct {p0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillStart(Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;)V
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 676
|
|
iput v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 677
|
|
iget v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
iget v6, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mItemDirection:I
|
|
|
|
add-int/2addr v0, v6
|
|
|
|
iput v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mCurrentPosition:I
|
|
|
|
.line 678
|
|
invoke-virtual {p0, p1, v1, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 679
|
|
iget v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 681
|
|
iget v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mAvailable:I
|
|
|
|
if-lez v0, :cond_11
|
|
|
|
.line 684
|
|
invoke-direct {p0, v4, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutStateToFillEnd(II)V
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 685
|
|
iput v0, v3, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mExtraFillSpace:I
|
|
|
|
.line 686
|
|
invoke-virtual {p0, p1, v3, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 687
|
|
iget v3, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mOffset:I
|
|
|
|
.line 694
|
|
:cond_11
|
|
:goto_7
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_13
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
iget-boolean v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
xor-int/2addr v0, v4
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
.line 699
|
|
invoke-direct {p0, v3, p1, p2, v5}, Landroidx/recyclerview/widget/LinearLayoutManager;->fixLayoutEndGap(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
.line 702
|
|
invoke-direct {p0, v1, p1, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fixLayoutStartGap(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
move-result v0
|
|
|
|
:goto_8
|
|
add-int/2addr v1, v0
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
goto :goto_9
|
|
|
|
.line 706
|
|
:cond_12
|
|
invoke-direct {p0, v1, p1, p2, v5}, Landroidx/recyclerview/widget/LinearLayoutManager;->fixLayoutStartGap(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
.line 709
|
|
invoke-direct {p0, v3, p1, p2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->fixLayoutEndGap(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_8
|
|
|
|
.line 714
|
|
:cond_13
|
|
:goto_9
|
|
invoke-direct {p0, p1, p2, v1, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;->layoutForPredictiveAnimations(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;II)V
|
|
|
|
.line 715
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->isPreLayout()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_14
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 716
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->onLayoutComplete()V
|
|
|
|
goto :goto_a
|
|
|
|
:cond_14
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 718
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->reset()V
|
|
|
|
:goto_a
|
|
iget-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
iput-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLastStackFromEnd:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onLayoutCompleted(Landroidx/recyclerview/widget/RecyclerView$State;)V
|
|
.locals 0
|
|
|
|
.line 728
|
|
invoke-super {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->onLayoutCompleted(Landroidx/recyclerview/widget/RecyclerView$State;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
const/4 p1, -0x1
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 732
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->reset()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 2
|
|
|
|
.line 279
|
|
instance-of v0, p1, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 280
|
|
check-cast p1, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 282
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->invalidateAnchor()V
|
|
|
|
.line 284
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->requestLayout()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 253
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
invoke-direct {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;-><init>(Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;)V
|
|
|
|
return-object v0
|
|
|
|
.line 255
|
|
:cond_0
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;-><init>()V
|
|
|
|
.line 256
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
.line 257
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLastStackFromEnd:Z
|
|
|
|
iget-boolean v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
iput-boolean v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorLayoutFromEnd:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 261
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToEnd()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 262
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 263
|
|
invoke-virtual {v3, v1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
iput v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorOffset:I
|
|
|
|
.line 264
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorPosition:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 266
|
|
:cond_1
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->getChildClosestToStart()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 267
|
|
invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorPosition:I
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 268
|
|
invoke-virtual {v2, v1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 269
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, v0, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->mAnchorOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 272
|
|
:cond_2
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->invalidateAnchor()V
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public prepareForDrop(Landroid/view/View;Landroid/view/View;II)V
|
|
.locals 3
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string p3, "Cannot drop a view during a scroll or layout calculation"
|
|
|
|
.line 2187
|
|
invoke-virtual {p0, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->assertNotInLayoutOrScroll(Ljava/lang/String;)V
|
|
|
|
.line 2188
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
.line 2189
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->resolveShouldLayoutReverse()V
|
|
|
|
.line 2190
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p3
|
|
|
|
.line 2191
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result p4
|
|
|
|
const/4 v0, -0x1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ge p3, p4, :cond_0
|
|
|
|
move p3, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p3, v0
|
|
|
|
:goto_0
|
|
iget-boolean v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
if-ne p3, v1, :cond_1
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2197
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p3
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2198
|
|
invoke-virtual {v0, p2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2199
|
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
sub-int/2addr p3, p2
|
|
|
|
.line 2196
|
|
invoke-virtual {p0, p4, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2202
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
|
|
|
move-result p1
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2203
|
|
invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
.line 2201
|
|
invoke-virtual {p0, p4, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-ne p3, v0, :cond_3
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2207
|
|
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p4, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2210
|
|
invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2211
|
|
invoke-virtual {p3, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 2209
|
|
invoke-virtual {p0, p4, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public resolveIsInfinite()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1277
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getMode()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 1278
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getEnd()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public scrollBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 5
|
|
|
|
.line 1386
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 1389
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->ensureLayoutState()V
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 1390
|
|
iput-boolean v2, v0, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mRecycle:Z
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, -0x1
|
|
|
|
.line 1392
|
|
:goto_0
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v3
|
|
|
|
.line 1393
|
|
invoke-direct {p0, v0, v3, v2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->updateLayoutState(IIZLandroidx/recyclerview/widget/RecyclerView$State;)V
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1394
|
|
iget v4, v2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mScrollingOffset:I
|
|
|
|
.line 1395
|
|
invoke-virtual {p0, p2, v2, p3, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->fill(Landroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;Landroidx/recyclerview/widget/RecyclerView$State;Z)I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr v4, p2
|
|
|
|
if-gez v4, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
if-le v3, v4, :cond_3
|
|
|
|
mul-int p1, v0, v4
|
|
|
|
:cond_3
|
|
iget-object p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
neg-int p3, p1
|
|
|
|
.line 1403
|
|
invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/OrientationHelper;->offsetChildren(I)V
|
|
|
|
iget-object p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLayoutState:Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;
|
|
|
|
.line 1407
|
|
iput p1, p2, Landroidx/recyclerview/widget/LinearLayoutManager$LayoutState;->mLastScrollDelta:I
|
|
|
|
return p1
|
|
|
|
:cond_4
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public scrollHorizontallyBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 1124
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public scrollToPosition(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1081
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->invalidateAnchor()V
|
|
|
|
.line 1083
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public scrollToPositionWithOffset(II)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPosition:I
|
|
|
|
iput p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingScrollPositionOffset:I
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1109
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;->invalidateAnchor()V
|
|
|
|
.line 1111
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public scrollVerticallyBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 1136
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollBy(ILandroidx/recyclerview/widget/RecyclerView$Recycler;Landroidx/recyclerview/widget/RecyclerView$State;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setInitialPrefetchItemCount(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mInitialPrefetchItemCount:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOrientation(I)V
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 344
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "invalid orientation:"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 347
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->assertNotInLayoutOrScroll(Ljava/lang/String;)V
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
if-ne p1, v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 351
|
|
:cond_2
|
|
invoke-static {p0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->createOrientationHelper(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;I)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
iget-object v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mAnchorInfo:Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
|
|
|
.line 352
|
|
iput-object v0, v1, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientation:I
|
|
|
|
.line 354
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->requestLayout()V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRecycleChildrenOnDetach(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mRecycleChildrenOnDetach:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setReverseLayout(Z)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 397
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->assertNotInLayoutOrScroll(Ljava/lang/String;)V
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iput-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mReverseLayout:Z
|
|
|
|
.line 402
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSmoothScrollbarEnabled(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mSmoothScrollbarEnabled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStackFromEnd(Z)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 313
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->assertNotInLayoutOrScroll(Ljava/lang/String;)V
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iput-boolean p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
.line 318
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public shouldMeasureTwice()Z
|
|
.locals 2
|
|
|
|
.line 1704
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getHeightMode()I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 1705
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidthMode()I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 1706
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->hasFlexibleChildInBothOrientations()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public smoothScrollToPosition(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$State;I)V
|
|
.locals 0
|
|
|
|
.line 505
|
|
new-instance p2, Landroidx/recyclerview/widget/LinearSmoothScroller;
|
|
|
|
.line 506
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Landroidx/recyclerview/widget/LinearSmoothScroller;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 507
|
|
invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;->setTargetPosition(I)V
|
|
|
|
.line 508
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->startSmoothScroll(Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public supportsPredictiveItemAnimations()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mPendingSavedState:Landroidx/recyclerview/widget/LinearLayoutManager$SavedState;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mLastStackFromEnd:Z
|
|
|
|
iget-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mStackFromEnd:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public validateChildOrder()V
|
|
.locals 10
|
|
|
|
.line 2136
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "validating child count "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 2137
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 2140
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2141
|
|
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
iget-boolean v4, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mShouldReverseLayout:Z
|
|
|
|
const-string v5, "detected invalid location"
|
|
|
|
const-string v6, "detected invalid position. loc invalid? "
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
move v4, v1
|
|
|
|
.line 2143
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v7
|
|
|
|
if-ge v4, v7, :cond_8
|
|
|
|
.line 2144
|
|
invoke-virtual {p0, v4}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v7
|
|
|
|
.line 2145
|
|
invoke-virtual {p0, v7}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v8
|
|
|
|
iget-object v9, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2146
|
|
invoke-virtual {v9, v7}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v7
|
|
|
|
if-ge v8, v2, :cond_2
|
|
|
|
.line 2148
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->logChildren()V
|
|
|
|
.line 2149
|
|
new-instance v2, Ljava/lang/RuntimeException;
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
if-ge v7, v3, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v1, v0
|
|
|
|
:goto_1
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_2
|
|
if-gt v7, v3, :cond_3
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 2153
|
|
:cond_3
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->logChildren()V
|
|
|
|
.line 2154
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, v5}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
move v4, v1
|
|
|
|
.line 2158
|
|
:goto_2
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
|
|
|
move-result v7
|
|
|
|
if-ge v4, v7, :cond_8
|
|
|
|
.line 2159
|
|
invoke-virtual {p0, v4}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v7
|
|
|
|
.line 2160
|
|
invoke-virtual {p0, v7}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPosition(Landroid/view/View;)I
|
|
|
|
move-result v8
|
|
|
|
iget-object v9, p0, Landroidx/recyclerview/widget/LinearLayoutManager;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2161
|
|
invoke-virtual {v9, v7}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
|
|
|
move-result v7
|
|
|
|
if-ge v8, v2, :cond_6
|
|
|
|
.line 2163
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->logChildren()V
|
|
|
|
.line 2164
|
|
new-instance v2, Ljava/lang/RuntimeException;
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
if-ge v7, v3, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
move v1, v0
|
|
|
|
:goto_3
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_6
|
|
if-lt v7, v3, :cond_7
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 2168
|
|
:cond_7
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->logChildren()V
|
|
|
|
.line 2169
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, v5}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_8
|
|
return-void
|
|
.end method
|