Changes of com.discord v998
This commit is contained in:
parent
dc3b174a87
commit
a8e290ae89
20243 changed files with 1573881 additions and 1337713 deletions
|
@ -4,13 +4,19 @@
|
|||
|
||||
|
||||
# static fields
|
||||
.field private static final INVALID_DISTANCE:F = 1.0f
|
||||
.field public static final INVALID_DISTANCE:F = 1.0f
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mHorizontalHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||||
.field public mHorizontalHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private mVerticalHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||||
.field public mVerticalHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
|
@ -51,7 +57,7 @@
|
|||
const/high16 v6, -0x80000000
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v0, :cond_3
|
||||
if-ge v2, v0, :cond_4
|
||||
|
||||
invoke-virtual {p1, v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
||||
|
||||
|
@ -63,34 +69,38 @@
|
|||
|
||||
const/4 v9, -0x1
|
||||
|
||||
if-eq v8, v9, :cond_2
|
||||
if-ne v8, v9, :cond_1
|
||||
|
||||
if-ge v8, v5, :cond_1
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
if-ge v8, v5, :cond_2
|
||||
|
||||
move-object v3, v7
|
||||
|
||||
move v5, v8
|
||||
|
||||
:cond_1
|
||||
if-le v8, v6, :cond_2
|
||||
:cond_2
|
||||
if-le v8, v6, :cond_3
|
||||
|
||||
move-object v4, v7
|
||||
|
||||
move v6, v8
|
||||
|
||||
:cond_2
|
||||
:cond_3
|
||||
:goto_1
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
if-eqz v3, :cond_6
|
||||
|
||||
if-nez v4, :cond_4
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_4
|
||||
if-eqz v3, :cond_7
|
||||
|
||||
if-nez v4, :cond_5
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_5
|
||||
invoke-virtual {p2, v3}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
||||
|
||||
move-result p1
|
||||
|
@ -117,11 +127,11 @@
|
|||
|
||||
sub-int/2addr p2, p1
|
||||
|
||||
if-nez p2, :cond_5
|
||||
if-nez p2, :cond_6
|
||||
|
||||
return v1
|
||||
|
||||
:cond_5
|
||||
:cond_6
|
||||
int-to-float p1, p2
|
||||
|
||||
mul-float p1, p1, v1
|
||||
|
@ -136,17 +146,25 @@
|
|||
|
||||
return p1
|
||||
|
||||
:cond_6
|
||||
:goto_1
|
||||
:cond_7
|
||||
:goto_2
|
||||
return v1
|
||||
.end method
|
||||
|
||||
.method private distanceToCenter(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroid/view/View;Landroidx/recyclerview/widget/OrientationHelper;)I
|
||||
.locals 1
|
||||
.locals 0
|
||||
.param p1 # Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/view/View;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
||||
|
||||
move-result v0
|
||||
move-result p1
|
||||
|
||||
invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
||||
|
||||
|
@ -154,13 +172,7 @@
|
|||
|
||||
div-int/lit8 p2, p2, 0x2
|
||||
|
||||
add-int/2addr v0, p2
|
||||
|
||||
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getClipToPadding()Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
add-int/2addr p2, p1
|
||||
|
||||
invoke-virtual {p3}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
||||
|
||||
|
@ -168,31 +180,21 @@
|
|||
|
||||
invoke-virtual {p3}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpace()I
|
||||
|
||||
move-result p2
|
||||
move-result p3
|
||||
|
||||
div-int/lit8 p2, p2, 0x2
|
||||
div-int/lit8 p3, p3, 0x2
|
||||
|
||||
add-int/2addr p1, p2
|
||||
add-int/2addr p3, p1
|
||||
|
||||
goto :goto_0
|
||||
sub-int/2addr p2, p3
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p3}, Landroidx/recyclerview/widget/OrientationHelper;->getEnd()I
|
||||
|
||||
move-result p1
|
||||
|
||||
div-int/lit8 p1, p1, 0x2
|
||||
|
||||
:goto_0
|
||||
sub-int/2addr v0, p1
|
||||
|
||||
return v0
|
||||
return p2
|
||||
.end method
|
||||
|
||||
.method private estimateNextPositionDiffForFling(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;II)I
|
||||
.locals 2
|
||||
|
||||
invoke-virtual {p0, p3, p4}, Landroidx/recyclerview/widget/LinearSnapHelper;->calculateScrollDistance(II)[I
|
||||
invoke-virtual {p0, p3, p4}, Landroidx/recyclerview/widget/SnapHelper;->calculateScrollDistance(II)[I
|
||||
|
||||
move-result-object p3
|
||||
|
||||
|
@ -248,6 +250,8 @@
|
|||
|
||||
.method private findCenterView(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;)Landroid/view/View;
|
||||
.locals 8
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildCount()I
|
||||
|
||||
|
@ -260,12 +264,6 @@
|
|||
return-object v1
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getClipToPadding()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
if-eqz v2, :cond_1
|
||||
|
||||
invoke-virtual {p2}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
||||
|
||||
move-result v2
|
||||
|
@ -276,24 +274,14 @@
|
|||
|
||||
div-int/lit8 v3, v3, 0x2
|
||||
|
||||
add-int/2addr v2, v3
|
||||
add-int/2addr v3, v2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
invoke-virtual {p2}, Landroidx/recyclerview/widget/OrientationHelper;->getEnd()I
|
||||
|
||||
move-result v2
|
||||
|
||||
div-int/lit8 v2, v2, 0x2
|
||||
|
||||
:goto_0
|
||||
const v3, 0x7fffffff
|
||||
const v2, 0x7fffffff
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
:goto_1
|
||||
if-ge v4, v0, :cond_3
|
||||
:goto_0
|
||||
if-ge v4, v0, :cond_2
|
||||
|
||||
invoke-virtual {p1, v4}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildAt(I)Landroid/view/View;
|
||||
|
||||
|
@ -309,31 +297,37 @@
|
|||
|
||||
div-int/lit8 v7, v7, 0x2
|
||||
|
||||
add-int/2addr v6, v7
|
||||
add-int/2addr v7, v6
|
||||
|
||||
sub-int/2addr v6, v2
|
||||
sub-int/2addr v7, v3
|
||||
|
||||
invoke-static {v6}, Ljava/lang/Math;->abs(I)I
|
||||
invoke-static {v7}, Ljava/lang/Math;->abs(I)I
|
||||
|
||||
move-result v6
|
||||
|
||||
if-ge v6, v3, :cond_2
|
||||
if-ge v6, v2, :cond_1
|
||||
|
||||
move-object v1, v5
|
||||
|
||||
move v3, v6
|
||||
move v2, v6
|
||||
|
||||
:cond_2
|
||||
:cond_1
|
||||
add-int/lit8 v4, v4, 0x1
|
||||
|
||||
goto :goto_1
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
:cond_2
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method private getHorizontalHelper(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
||||
.locals 1
|
||||
.param p1 # Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->mHorizontalHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||||
|
||||
|
@ -358,6 +352,12 @@
|
|||
|
||||
.method private getVerticalHelper(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
||||
.locals 1
|
||||
.param p1 # Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->mVerticalHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||||
|
||||
|
@ -384,6 +384,14 @@
|
|||
# virtual methods
|
||||
.method public calculateDistanceToFinalSnap(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroid/view/View;)[I
|
||||
.locals 4
|
||||
.param p1 # Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/view/View;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
const/4 v0, 0x2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue