apkfuckery/com.discord/smali/androidx/recyclerview/widget/LayoutState.smali

167 lines
4.3 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class Landroidx/recyclerview/widget/LayoutState;
2019-02-04 20:05:16 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "LayoutState.java"
2019-02-04 20:05:16 +00:00
# static fields
.field static final INVALID_LAYOUT:I = -0x80000000
.field static final ITEM_DIRECTION_HEAD:I = -0x1
.field static final ITEM_DIRECTION_TAIL:I = 0x1
.field static final LAYOUT_END:I = 0x1
.field static final LAYOUT_START:I = -0x1
.field static final TAG:Ljava/lang/String; = "LayoutState"
# instance fields
.field mAvailable:I
.field mCurrentPosition:I
.field mEndLine:I
.field mInfinite:Z
.field mItemDirection:I
.field mLayoutDirection:I
.field mRecycle:Z
.field mStartLine:I
.field mStopInFocusable:Z
# direct methods
.method constructor <init>()V
2019-02-04 20:08:30 +00:00
.locals 1
2019-02-04 20:05:16 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
2019-02-04 20:08:30 +00:00
iput-boolean v0, p0, Landroidx/recyclerview/widget/LayoutState;->mRecycle:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mStartLine:I
iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mEndLine:I
2019-02-04 20:05:16 +00:00
return-void
.end method
# virtual methods
2019-02-04 20:08:30 +00:00
.method hasMore(Landroidx/recyclerview/widget/RecyclerView$State;)Z
.locals 1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
2019-02-04 20:05:16 +00:00
if-ltz v0, :cond_0
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-ge v0, p1, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 p1, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return p1
2019-02-04 20:05:16 +00:00
:cond_0
2019-02-04 20:08:30 +00:00
const/4 p1, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return p1
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
.method next(Landroidx/recyclerview/widget/RecyclerView$Recycler;)Landroid/view/View;
.locals 2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView$Recycler;->getViewForPosition(I)Landroid/view/View;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mItemDirection:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-int/2addr v0, v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p1
2019-02-04 20:05:16 +00:00
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "LayoutState{mAvailable="
2019-02-04 20:08:30 +00:00
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mAvailable:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mCurrentPosition="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mItemDirection="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mItemDirection:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mLayoutDirection="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mLayoutDirection:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mStartLine="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mStartLine:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mEndLine="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mEndLine:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method