139 lines
2.9 KiB
Smali
139 lines
2.9 KiB
Smali
|
.class final Landroidx/recyclerview/widget/GapWorker$1;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "GapWorker.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/util/Comparator;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/recyclerview/widget/GapWorker;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/lang/Object;",
|
||
|
"Ljava/util/Comparator<",
|
||
|
"Landroidx/recyclerview/widget/GapWorker$Task;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final compare(Landroidx/recyclerview/widget/GapWorker$Task;Landroidx/recyclerview/widget/GapWorker$Task;)I
|
||
|
.locals 5
|
||
|
|
||
|
iget-object v0, p1, Landroidx/recyclerview/widget/GapWorker$Task;->view:Landroidx/recyclerview/widget/RecyclerView;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v3, p2, Landroidx/recyclerview/widget/GapWorker$Task;->view:Landroidx/recyclerview/widget/RecyclerView;
|
||
|
|
||
|
if-nez v3, :cond_1
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v4, -0x1
|
||
|
|
||
|
if-eq v0, v3, :cond_3
|
||
|
|
||
|
iget-object p1, p1, Landroidx/recyclerview/widget/GapWorker$Task;->view:Landroidx/recyclerview/widget/RecyclerView;
|
||
|
|
||
|
if-nez p1, :cond_2
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_2
|
||
|
return v4
|
||
|
|
||
|
:cond_3
|
||
|
iget-boolean v0, p1, Landroidx/recyclerview/widget/GapWorker$Task;->immediate:Z
|
||
|
|
||
|
iget-boolean v3, p2, Landroidx/recyclerview/widget/GapWorker$Task;->immediate:Z
|
||
|
|
||
|
if-eq v0, v3, :cond_5
|
||
|
|
||
|
iget-boolean p1, p1, Landroidx/recyclerview/widget/GapWorker$Task;->immediate:Z
|
||
|
|
||
|
if-eqz p1, :cond_4
|
||
|
|
||
|
return v4
|
||
|
|
||
|
:cond_4
|
||
|
return v2
|
||
|
|
||
|
:cond_5
|
||
|
iget v0, p2, Landroidx/recyclerview/widget/GapWorker$Task;->viewVelocity:I
|
||
|
|
||
|
iget v2, p1, Landroidx/recyclerview/widget/GapWorker$Task;->viewVelocity:I
|
||
|
|
||
|
sub-int/2addr v0, v2
|
||
|
|
||
|
if-eqz v0, :cond_6
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_6
|
||
|
iget p1, p1, Landroidx/recyclerview/widget/GapWorker$Task;->distanceToItem:I
|
||
|
|
||
|
iget p2, p2, Landroidx/recyclerview/widget/GapWorker$Task;->distanceToItem:I
|
||
|
|
||
|
sub-int/2addr p1, p2
|
||
|
|
||
|
if-eqz p1, :cond_7
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:cond_7
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public final bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
||
|
.locals 0
|
||
|
|
||
|
check-cast p1, Landroidx/recyclerview/widget/GapWorker$Task;
|
||
|
|
||
|
check-cast p2, Landroidx/recyclerview/widget/GapWorker$Task;
|
||
|
|
||
|
invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/GapWorker$1;->compare(Landroidx/recyclerview/widget/GapWorker$Task;Landroidx/recyclerview/widget/GapWorker$Task;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|