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

88 lines
2.5 KiB
Smali

.class Landroidx/recyclerview/widget/ItemTouchHelper$5;
.super Ljava/lang/Object;
# interfaces
.implements Landroidx/recyclerview/widget/RecyclerView$ChildDrawingOrderCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/recyclerview/widget/ItemTouchHelper;->addChildDrawingOrderCallback()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
# direct methods
.method constructor <init>(Landroidx/recyclerview/widget/ItemTouchHelper;)V
.locals 0
iput-object p1, p0, Landroidx/recyclerview/widget/ItemTouchHelper$5;->this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onGetChildDrawingOrder(II)I
.locals 2
iget-object v0, p0, Landroidx/recyclerview/widget/ItemTouchHelper$5;->this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
iget-object v0, v0, Landroidx/recyclerview/widget/ItemTouchHelper;->mOverdrawChild:Landroid/view/View;
if-nez v0, :cond_0
return p2
:cond_0
iget-object v0, p0, Landroidx/recyclerview/widget/ItemTouchHelper$5;->this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
iget v0, v0, Landroidx/recyclerview/widget/ItemTouchHelper;->mOverdrawChildPosition:I
const/4 v1, -0x1
if-ne v0, v1, :cond_1
iget-object v0, p0, Landroidx/recyclerview/widget/ItemTouchHelper$5;->this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
iget-object v0, v0, Landroidx/recyclerview/widget/ItemTouchHelper;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Landroidx/recyclerview/widget/ItemTouchHelper$5;->this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
iget-object v1, v1, Landroidx/recyclerview/widget/ItemTouchHelper;->mOverdrawChild:Landroid/view/View;
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->indexOfChild(Landroid/view/View;)I
move-result v0
iget-object v1, p0, Landroidx/recyclerview/widget/ItemTouchHelper$5;->this$0:Landroidx/recyclerview/widget/ItemTouchHelper;
iput v0, v1, Landroidx/recyclerview/widget/ItemTouchHelper;->mOverdrawChildPosition:I
:cond_1
add-int/lit8 p1, p1, -0x1
if-ne p2, p1, :cond_2
return v0
:cond_2
if-ge p2, v0, :cond_3
return p2
:cond_3
add-int/lit8 p2, p2, 0x1
return p2
.end method