Files
rr3-apk/smali/androidx/viewpager/widget/ViewPager$ViewPositionComparator.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

102 lines
2.2 KiB
Smali

.class Landroidx/viewpager/widget/ViewPager$ViewPositionComparator;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/viewpager/widget/ViewPager;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ViewPositionComparator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator<",
"Landroid/view/View;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 3157
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public compare(Landroid/view/View;Landroid/view/View;)I
.locals 2
.line 3160
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object p1
check-cast p1, Landroidx/viewpager/widget/ViewPager$LayoutParams;
.line 3161
invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object p2
check-cast p2, Landroidx/viewpager/widget/ViewPager$LayoutParams;
.line 3162
iget-boolean v0, p1, Landroidx/viewpager/widget/ViewPager$LayoutParams;->isDecor:Z
iget-boolean v1, p2, Landroidx/viewpager/widget/ViewPager$LayoutParams;->isDecor:Z
if-eq v0, v1, :cond_1
if-eqz v0, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, -0x1
:goto_0
return p1
.line 3165
:cond_1
iget p1, p1, Landroidx/viewpager/widget/ViewPager$LayoutParams;->position:I
iget p2, p2, Landroidx/viewpager/widget/ViewPager$LayoutParams;->position:I
sub-int/2addr p1, p2
return p1
.end method
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 3157
check-cast p1, Landroid/view/View;
check-cast p2, Landroid/view/View;
invoke-virtual {p0, p1, p2}, Landroidx/viewpager/widget/ViewPager$ViewPositionComparator;->compare(Landroid/view/View;Landroid/view/View;)I
move-result p1
return p1
.end method