Rabbit-R1/original r1/smali/smali_classes2/androidx/recyclerview/widget/ItemTouchUIUtilImpl.smali
2024-05-21 17:08:36 -04:00

187 lines
4.2 KiB
Smali

.class Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;
.super Ljava/lang/Object;
.source "ItemTouchUIUtilImpl.java"
# 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 32
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 constructor <init>()V
.locals 0
.line 31
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 61
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView;->getChildCount()I
move-result v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_2
.line 64
invoke-virtual {p0, v2}, Landroidx/recyclerview/widget/RecyclerView;->getChildAt(I)Landroid/view/View;
move-result-object v3
if-ne v3, p1, :cond_0
goto :goto_1
.line 68
: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 1
.line 91
sget p0, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
invoke-virtual {p1, p0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
move-result-object p0
.line 92
instance-of v0, p0, Ljava/lang/Float;
if-eqz v0, :cond_0
.line 93
check-cast p0, Ljava/lang/Float;
invoke-virtual {p0}, Ljava/lang/Float;->floatValue()F
move-result p0
invoke-static {p1, p0}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V
.line 95
:cond_0
sget p0, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
const/4 v0, 0x0
invoke-virtual {p1, p0, v0}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
const/4 p0, 0x0
.line 98
invoke-virtual {p1, p0}, Landroid/view/View;->setTranslationX(F)V
.line 99
invoke-virtual {p1, p0}, 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
.line 46
sget p0, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
invoke-virtual {p3, p0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
move-result-object p0
if-nez p0, :cond_0
.line 48
invoke-static {p3}, Landroidx/core/view/ViewCompat;->getElevation(Landroid/view/View;)F
move-result p0
invoke-static {p0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object p0
const/high16 p1, 0x3f800000 # 1.0f
.line 49
invoke-static {p2, p3}, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->findMaxElevation(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;)F
move-result p2
add-float/2addr p2, p1
.line 50
invoke-static {p3, p2}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V
.line 51
sget p1, Landroidx/recyclerview/R$id;->item_touch_helper_previous_elevation:I
invoke-virtual {p3, p1, p0}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
.line 56
:cond_0
invoke-virtual {p3, p4}, Landroid/view/View;->setTranslationX(F)V
.line 57
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