apkfuckery/com.discord/smali/androidx/recyclerview/widget/LayoutState.smali
2019-02-04 21:08:30 +01:00

167 lines
4.3 KiB
Smali

.class Landroidx/recyclerview/widget/LayoutState;
.super Ljava/lang/Object;
# 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
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/recyclerview/widget/LayoutState;->mRecycle:Z
const/4 v0, 0x0
iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mStartLine:I
iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mEndLine:I
return-void
.end method
# virtual methods
.method hasMore(Landroidx/recyclerview/widget/RecyclerView$State;)Z
.locals 1
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
if-ltz v0, :cond_0
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
move-result p1
if-ge v0, p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method next(Landroidx/recyclerview/widget/RecyclerView$Recycler;)Landroid/view/View;
.locals 2
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView$Recycler;->getViewForPosition(I)Landroid/view/View;
move-result-object p1
iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mItemDirection:I
add-int/2addr v0, v1
iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
return-object p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "LayoutState{mAvailable="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mAvailable:I
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;
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I
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;
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mItemDirection:I
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;
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mLayoutDirection:I
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;
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mStartLine:I
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;
iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mEndLine:I
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