* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1071 lines
20 KiB
Smali
1071 lines
20 KiB
Smali
.class public Landroidx/recyclerview/widget/LinearSnapHelper;
|
|
.super Landroidx/recyclerview/widget/SnapHelper;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public d:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.field public e:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
|
|
# direct methods
|
|
.method public static i(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;)Landroid/view/View;
|
|
.locals 8
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->x()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
if-nez v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
return-object v1
|
|
|
|
.line 9
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->k()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v2
|
|
|
|
.line 13
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->l()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v3
|
|
|
|
.line 17
|
|
div-int/lit8 v3, v3, 0x2
|
|
|
|
.line 18
|
|
.line 19
|
|
add-int/2addr v3, v2
|
|
|
|
.line 20
|
|
const v2, 0x7fffffff
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
const/4 v4, 0x0
|
|
|
|
.line 24
|
|
:goto_0
|
|
if-ge v4, v0, :cond_2
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0, v4}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->w(I)Landroid/view/View;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v5
|
|
|
|
.line 30
|
|
invoke-virtual {p1, v5}, Landroidx/recyclerview/widget/OrientationHelper;->e(Landroid/view/View;)I
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v6
|
|
|
|
.line 34
|
|
invoke-virtual {p1, v5}, Landroidx/recyclerview/widget/OrientationHelper;->c(Landroid/view/View;)I
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v7
|
|
|
|
.line 38
|
|
div-int/lit8 v7, v7, 0x2
|
|
|
|
.line 39
|
|
.line 40
|
|
add-int/2addr v7, v6
|
|
|
|
.line 41
|
|
sub-int/2addr v7, v3
|
|
|
|
.line 42
|
|
invoke-static {v7}, Ljava/lang/Math;->abs(I)I
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v6
|
|
|
|
.line 46
|
|
if-ge v6, v2, :cond_1
|
|
|
|
.line 47
|
|
.line 48
|
|
move-object v1, v5
|
|
|
|
.line 49
|
|
move v2, v6
|
|
|
|
.line 50
|
|
:cond_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
.line 51
|
|
.line 52
|
|
goto :goto_0
|
|
|
|
.line 53
|
|
:cond_2
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final c(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroid/view/View;)[I
|
|
.locals 6
|
|
|
|
.line 1
|
|
const/4 v0, 0x2
|
|
|
|
.line 2
|
|
new-array v1, v0, [I
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->f()Z
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v2
|
|
|
|
.line 8
|
|
const/4 v3, 0x0
|
|
|
|
.line 9
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->j(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v2
|
|
|
|
.line 15
|
|
invoke-virtual {v2, p2}, Landroidx/recyclerview/widget/OrientationHelper;->e(Landroid/view/View;)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v4
|
|
|
|
.line 19
|
|
invoke-virtual {v2, p2}, Landroidx/recyclerview/widget/OrientationHelper;->c(Landroid/view/View;)I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v5
|
|
|
|
.line 23
|
|
div-int/2addr v5, v0
|
|
|
|
.line 24
|
|
add-int/2addr v5, v4
|
|
|
|
.line 25
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/OrientationHelper;->k()I
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v4
|
|
|
|
.line 29
|
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/OrientationHelper;->l()I
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result v2
|
|
|
|
.line 33
|
|
div-int/2addr v2, v0
|
|
|
|
.line 34
|
|
add-int/2addr v2, v4
|
|
|
|
.line 35
|
|
sub-int/2addr v5, v2
|
|
|
|
.line 36
|
|
aput v5, v1, v3
|
|
|
|
.line 37
|
|
.line 38
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_0
|
|
aput v3, v1, v3
|
|
|
|
.line 40
|
|
.line 41
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->g()Z
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v2
|
|
|
|
.line 45
|
|
const/4 v4, 0x1
|
|
|
|
.line 46
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->k(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object p1
|
|
|
|
.line 52
|
|
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/OrientationHelper;->e(Landroid/view/View;)I
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result v2
|
|
|
|
.line 56
|
|
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/OrientationHelper;->c(Landroid/view/View;)I
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result p2
|
|
|
|
.line 60
|
|
div-int/2addr p2, v0
|
|
|
|
.line 61
|
|
add-int/2addr p2, v2
|
|
|
|
.line 62
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->k()I
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result v2
|
|
|
|
.line 66
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->l()I
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result p1
|
|
|
|
.line 70
|
|
div-int/2addr p1, v0
|
|
|
|
.line 71
|
|
add-int/2addr p1, v2
|
|
|
|
.line 72
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 73
|
|
aput p2, v1, v4
|
|
|
|
.line 74
|
|
.line 75
|
|
return-object v1
|
|
|
|
.line 76
|
|
:cond_1
|
|
aput v3, v1, v4
|
|
|
|
.line 77
|
|
.line 78
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final e(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroid/view/View;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->g()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->k(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-static {p1, v0}, Landroidx/recyclerview/widget/LinearSnapHelper;->i(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;)Landroid/view/View;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
return-object p1
|
|
|
|
.line 16
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->f()Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v0
|
|
|
|
.line 20
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->j(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object v0
|
|
|
|
.line 26
|
|
invoke-static {p1, v0}, Landroidx/recyclerview/widget/LinearSnapHelper;->i(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;)Landroid/view/View;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p1
|
|
|
|
.line 30
|
|
return-object p1
|
|
|
|
.line 31
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 32
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final f(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;II)I
|
|
.locals 8
|
|
|
|
.line 1
|
|
instance-of v0, p1, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller$ScrollVectorProvider;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, -0x1
|
|
|
|
.line 4
|
|
if-nez v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
goto :goto_2
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->H()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
if-nez v0, :cond_1
|
|
|
|
.line 12
|
|
.line 13
|
|
goto :goto_2
|
|
|
|
.line 14
|
|
:cond_1
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->e(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroid/view/View;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v2
|
|
|
|
.line 18
|
|
if-nez v2, :cond_2
|
|
|
|
.line 19
|
|
.line 20
|
|
goto :goto_2
|
|
|
|
.line 21
|
|
:cond_2
|
|
invoke-static {v2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->N(Landroid/view/View;)I
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result v2
|
|
|
|
.line 25
|
|
if-ne v2, v1, :cond_3
|
|
|
|
.line 26
|
|
.line 27
|
|
goto :goto_2
|
|
|
|
.line 28
|
|
:cond_3
|
|
move-object v3, p1
|
|
|
|
.line 29
|
|
check-cast v3, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller$ScrollVectorProvider;
|
|
|
|
.line 30
|
|
.line 31
|
|
add-int/lit8 v4, v0, -0x1
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-interface {v3, v4}, Landroidx/recyclerview/widget/RecyclerView$SmoothScroller$ScrollVectorProvider;->a(I)Landroid/graphics/PointF;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v3
|
|
|
|
.line 37
|
|
if-nez v3, :cond_4
|
|
|
|
.line 38
|
|
.line 39
|
|
goto :goto_2
|
|
|
|
.line 40
|
|
:cond_4
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->f()Z
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v5
|
|
|
|
.line 44
|
|
const/4 v6, 0x0
|
|
|
|
.line 45
|
|
const/4 v7, 0x0
|
|
|
|
.line 46
|
|
if-eqz v5, :cond_5
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->j(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object v5
|
|
|
|
.line 52
|
|
invoke-virtual {p0, p1, v5, p2, v7}, Landroidx/recyclerview/widget/LinearSnapHelper;->h(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;II)I
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result p2
|
|
|
|
.line 56
|
|
iget v5, v3, Landroid/graphics/PointF;->x:F
|
|
|
|
.line 57
|
|
.line 58
|
|
cmpg-float v5, v5, v6
|
|
|
|
.line 59
|
|
.line 60
|
|
if-gez v5, :cond_6
|
|
|
|
.line 61
|
|
.line 62
|
|
neg-int p2, p2
|
|
|
|
.line 63
|
|
goto :goto_0
|
|
|
|
.line 64
|
|
:cond_5
|
|
move p2, v7
|
|
|
|
.line 65
|
|
:cond_6
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->g()Z
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result v5
|
|
|
|
.line 69
|
|
if-eqz v5, :cond_7
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/LinearSnapHelper;->k(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result-object v5
|
|
|
|
.line 75
|
|
invoke-virtual {p0, p1, v5, v7, p3}, Landroidx/recyclerview/widget/LinearSnapHelper;->h(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;II)I
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
move-result p3
|
|
|
|
.line 79
|
|
iget v3, v3, Landroid/graphics/PointF;->y:F
|
|
|
|
.line 80
|
|
.line 81
|
|
cmpg-float v3, v3, v6
|
|
|
|
.line 82
|
|
.line 83
|
|
if-gez v3, :cond_8
|
|
|
|
.line 84
|
|
.line 85
|
|
neg-int p3, p3
|
|
|
|
.line 86
|
|
goto :goto_1
|
|
|
|
.line 87
|
|
:cond_7
|
|
move p3, v7
|
|
|
|
.line 88
|
|
:cond_8
|
|
:goto_1
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->g()Z
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result p1
|
|
|
|
.line 92
|
|
if-eqz p1, :cond_9
|
|
|
|
.line 93
|
|
.line 94
|
|
move p2, p3
|
|
|
|
.line 95
|
|
:cond_9
|
|
if-nez p2, :cond_a
|
|
|
|
.line 96
|
|
.line 97
|
|
:goto_2
|
|
return v1
|
|
|
|
.line 98
|
|
:cond_a
|
|
add-int/2addr v2, p2
|
|
|
|
.line 99
|
|
if-gez v2, :cond_b
|
|
|
|
.line 100
|
|
.line 101
|
|
goto :goto_3
|
|
|
|
.line 102
|
|
:cond_b
|
|
move v7, v2
|
|
|
|
.line 103
|
|
:goto_3
|
|
if-lt v7, v0, :cond_c
|
|
|
|
.line 104
|
|
.line 105
|
|
return v4
|
|
|
|
.line 106
|
|
:cond_c
|
|
return v7
|
|
.end method
|
|
|
|
.method public final h(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper;II)I
|
|
.locals 11
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/SnapHelper;->b:Landroid/widget/Scroller;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/high16 v7, -0x80000000
|
|
|
|
.line 4
|
|
.line 5
|
|
const v8, 0x7fffffff
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
const/4 v1, 0x0
|
|
|
|
.line 9
|
|
const/4 v2, 0x0
|
|
|
|
.line 10
|
|
const/high16 v5, -0x80000000
|
|
|
|
.line 11
|
|
.line 12
|
|
const v6, 0x7fffffff
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move v3, p3
|
|
|
|
.line 16
|
|
move v4, p4
|
|
|
|
.line 17
|
|
invoke-virtual/range {v0 .. v8}, Landroid/widget/Scroller;->fling(IIIIIIII)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
iget-object p3, p0, Landroidx/recyclerview/widget/SnapHelper;->b:Landroid/widget/Scroller;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {p3}, Landroid/widget/Scroller;->getFinalX()I
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result p3
|
|
|
|
.line 26
|
|
iget-object p4, p0, Landroidx/recyclerview/widget/SnapHelper;->b:Landroid/widget/Scroller;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p4}, Landroid/widget/Scroller;->getFinalY()I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result p4
|
|
|
|
.line 32
|
|
filled-new-array {p3, p4}, [I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object p3
|
|
|
|
.line 36
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->x()I
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result p4
|
|
|
|
.line 40
|
|
const/4 v0, 0x0
|
|
|
|
.line 41
|
|
const/4 v1, 0x1
|
|
|
|
.line 42
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
.line 43
|
|
.line 44
|
|
if-nez p4, :cond_0
|
|
|
|
.line 45
|
|
.line 46
|
|
goto :goto_2
|
|
|
|
.line 47
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
.line 48
|
|
const v4, 0x7fffffff
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
const/high16 v5, -0x80000000
|
|
|
|
.line 52
|
|
.line 53
|
|
move v7, v0
|
|
|
|
.line 54
|
|
move v6, v5
|
|
|
|
.line 55
|
|
move v5, v4
|
|
|
|
.line 56
|
|
move-object v4, v3
|
|
|
|
.line 57
|
|
:goto_0
|
|
if-ge v7, p4, :cond_4
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {p1, v7}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->w(I)Landroid/view/View;
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result-object v8
|
|
|
|
.line 63
|
|
invoke-static {v8}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->N(Landroid/view/View;)I
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
move-result v9
|
|
|
|
.line 67
|
|
const/4 v10, -0x1
|
|
|
|
.line 68
|
|
if-ne v9, v10, :cond_1
|
|
|
|
.line 69
|
|
.line 70
|
|
goto :goto_1
|
|
|
|
.line 71
|
|
:cond_1
|
|
if-ge v9, v5, :cond_2
|
|
|
|
.line 72
|
|
.line 73
|
|
move-object v3, v8
|
|
|
|
.line 74
|
|
move v5, v9
|
|
|
|
.line 75
|
|
:cond_2
|
|
if-le v9, v6, :cond_3
|
|
|
|
.line 76
|
|
.line 77
|
|
move-object v4, v8
|
|
|
|
.line 78
|
|
move v6, v9
|
|
|
|
.line 79
|
|
:cond_3
|
|
:goto_1
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
.line 80
|
|
.line 81
|
|
goto :goto_0
|
|
|
|
.line 82
|
|
:cond_4
|
|
if-eqz v3, :cond_7
|
|
|
|
.line 83
|
|
.line 84
|
|
if-nez v4, :cond_5
|
|
|
|
.line 85
|
|
.line 86
|
|
goto :goto_2
|
|
|
|
.line 87
|
|
:cond_5
|
|
invoke-virtual {p2, v3}, Landroidx/recyclerview/widget/OrientationHelper;->e(Landroid/view/View;)I
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result p1
|
|
|
|
.line 91
|
|
invoke-virtual {p2, v4}, Landroidx/recyclerview/widget/OrientationHelper;->e(Landroid/view/View;)I
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
move-result p4
|
|
|
|
.line 95
|
|
invoke-static {p1, p4}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
move-result p1
|
|
|
|
.line 99
|
|
invoke-virtual {p2, v3}, Landroidx/recyclerview/widget/OrientationHelper;->b(Landroid/view/View;)I
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
move-result p4
|
|
|
|
.line 103
|
|
invoke-virtual {p2, v4}, Landroidx/recyclerview/widget/OrientationHelper;->b(Landroid/view/View;)I
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
move-result p2
|
|
|
|
.line 107
|
|
invoke-static {p4, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result p2
|
|
|
|
.line 111
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 112
|
|
if-nez p2, :cond_6
|
|
|
|
.line 113
|
|
.line 114
|
|
goto :goto_2
|
|
|
|
.line 115
|
|
:cond_6
|
|
int-to-float p1, p2
|
|
|
|
.line 116
|
|
mul-float/2addr p1, v2
|
|
|
|
.line 117
|
|
sub-int/2addr v6, v5
|
|
|
|
.line 118
|
|
add-int/2addr v6, v1
|
|
|
|
.line 119
|
|
int-to-float p2, v6
|
|
|
|
.line 120
|
|
div-float v2, p1, p2
|
|
|
|
.line 121
|
|
.line 122
|
|
:cond_7
|
|
:goto_2
|
|
const/4 p1, 0x0
|
|
|
|
.line 123
|
|
cmpg-float p1, v2, p1
|
|
|
|
.line 124
|
|
.line 125
|
|
if-gtz p1, :cond_8
|
|
|
|
.line 126
|
|
.line 127
|
|
return v0
|
|
|
|
.line 128
|
|
:cond_8
|
|
aget p1, p3, v0
|
|
|
|
.line 129
|
|
.line 130
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
.line 131
|
|
.line 132
|
|
.line 133
|
|
move-result p1
|
|
|
|
.line 134
|
|
aget p2, p3, v1
|
|
|
|
.line 135
|
|
.line 136
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
.line 137
|
|
.line 138
|
|
.line 139
|
|
move-result p2
|
|
|
|
.line 140
|
|
if-le p1, p2, :cond_9
|
|
|
|
.line 141
|
|
.line 142
|
|
aget p1, p3, v0
|
|
|
|
.line 143
|
|
.line 144
|
|
goto :goto_3
|
|
|
|
.line 145
|
|
:cond_9
|
|
aget p1, p3, v1
|
|
|
|
.line 146
|
|
.line 147
|
|
:goto_3
|
|
int-to-float p1, p1
|
|
|
|
.line 148
|
|
div-float/2addr p1, v2
|
|
|
|
.line 149
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 150
|
|
.line 151
|
|
.line 152
|
|
move-result p1
|
|
|
|
.line 153
|
|
return p1
|
|
.end method
|
|
|
|
.method public final j(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->e:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, v0, Landroidx/recyclerview/widget/OrientationHelper;->a:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
new-instance v0, Landroidx/recyclerview/widget/OrientationHelper$1;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-direct {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;-><init>(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->e:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->e:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 15
|
|
.line 16
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final k(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->d:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, v0, Landroidx/recyclerview/widget/OrientationHelper;->a:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
new-instance v0, Landroidx/recyclerview/widget/OrientationHelper$2;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-direct {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;-><init>(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
iput-object v0, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->d:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearSnapHelper;->d:Landroidx/recyclerview/widget/OrientationHelper;
|
|
|
|
.line 15
|
|
.line 16
|
|
return-object p1
|
|
.end method
|