- 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
188 lines
4.2 KiB
Smali
188 lines
4.2 KiB
Smali
.class Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
|
|
# static fields
|
|
.field static final INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 31
|
|
new-instance v0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;-><init>()V
|
|
|
|
sput-object v0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 30
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static findMaxElevation(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;)F
|
|
.locals 5
|
|
|
|
.line 53
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_2
|
|
|
|
.line 56
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
if-ne v3, p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 60
|
|
:cond_0
|
|
invoke-static {v3}, Landroidx/core/view/ViewCompat;->getElevation(Landroid/view/View;)F
|
|
|
|
move-result v3
|
|
|
|
cmpl-float v4, v3, v1
|
|
|
|
if-lez v4, :cond_1
|
|
|
|
move v1, v3
|
|
|
|
:cond_1
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public clearView(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
sget v0, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
|
|
|
|
.line 76
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 77
|
|
instance-of v1, v0, Ljava/lang/Float;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 78
|
|
check-cast v0, Ljava/lang/Float;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V
|
|
|
|
:cond_0
|
|
sget v0, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 80
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 83
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
.line 84
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;FFIZ)V
|
|
.locals 0
|
|
|
|
if-eqz p7, :cond_0
|
|
|
|
sget p1, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
|
|
|
|
.line 38
|
|
invoke-virtual {p3, p1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 40
|
|
invoke-static {p3}, Landroidx/core/view/ViewCompat;->getElevation(Landroid/view/View;)F
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object p1
|
|
|
|
const/high16 p6, 0x3f800000 # 1.0f
|
|
|
|
.line 41
|
|
invoke-static {p2, p3}, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->findMaxElevation(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;)F
|
|
|
|
move-result p2
|
|
|
|
add-float/2addr p2, p6
|
|
|
|
.line 42
|
|
invoke-static {p3, p2}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V
|
|
|
|
sget p2, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
|
|
|
|
.line 43
|
|
invoke-virtual {p3, p2, p1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
.line 48
|
|
:cond_0
|
|
invoke-virtual {p3, p4}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
.line 49
|
|
invoke-virtual {p3, p5}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;FFIZ)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSelected(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|