mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
548 lines
18 KiB
Smali
548 lines
18 KiB
Smali
.class Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;
|
|
.super Landroidx/customview/widget/ViewDragHelper$Callback;
|
|
.source "SlidingPaneLayout.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x2
|
|
name = "DragHelperCallback"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1515
|
|
invoke-direct {p0}, Landroidx/customview/widget/ViewDragHelper$Callback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private isDraggable()Z
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1622
|
|
iget-boolean v0, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1625
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getLockMode()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1628
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isOpen()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getLockMode()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v2, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1631
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isOpen()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getLockMode()I
|
|
|
|
move-result p0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-ne p0, v0, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
return v2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public clampViewPositionHorizontal(Landroid/view/View;II)I
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1583
|
|
iget-object p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
iget-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1585
|
|
invoke-virtual {p3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
iget-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1586
|
|
invoke-virtual {p3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1587
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
move-result v0
|
|
|
|
iget p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
iget-object p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
sub-int/2addr p3, v0
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1588
|
|
iget p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
sub-int p0, p3, p0
|
|
|
|
.line 1589
|
|
invoke-static {p2, p3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, p0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1591
|
|
invoke-virtual {p3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
move-result p3
|
|
|
|
iget p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr p3, p1
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1592
|
|
iget p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
add-int/2addr p0, p3
|
|
|
|
.line 1593
|
|
invoke-static {p2, p3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, p0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public clampViewPositionVertical(Landroid/view/View;II)I
|
|
.locals 0
|
|
|
|
.line 1602
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getViewHorizontalDragRange(Landroid/view/View;)I
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1577
|
|
iget p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public onEdgeDragStarted(II)V
|
|
.locals 0
|
|
|
|
.line 1615
|
|
invoke-direct {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->isDraggable()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1618
|
|
iget-object p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1, p0, p2}, Landroidx/customview/widget/ViewDragHelper;->captureChildView(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onEdgeTouched(II)V
|
|
.locals 0
|
|
|
|
.line 1607
|
|
invoke-direct {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->isDraggable()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1610
|
|
iget-object p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1, p0, p2}, Landroidx/customview/widget/ViewDragHelper;->captureChildView(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewCaptured(Landroid/view/View;I)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1544
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setAllChildrenVisible()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewDragStateChanged(I)V
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1529
|
|
iget-object p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1530
|
|
iget p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1531
|
|
iget-object v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->updateObscuredViewsVisibility(Landroid/view/View;)V
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1532
|
|
iget-object v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dispatchOnPanelClosed(Landroid/view/View;)V
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1533
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1535
|
|
iget-object v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dispatchOnPanelOpened(Landroid/view/View;)V
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 1536
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewPositionChanged(Landroid/view/View;IIII)V
|
|
.locals 0
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1549
|
|
invoke-virtual {p1, p2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->onPanelDragged(I)V
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1550
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewReleased(Landroid/view/View;FF)V
|
|
.locals 3
|
|
|
|
.line 1555
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1558
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, 0x3f000000 # 0.5f
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1559
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
move-result v0
|
|
|
|
iget p3, p3, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v0, p3
|
|
|
|
cmpg-float p3, p2, v2
|
|
|
|
if-ltz p3, :cond_0
|
|
|
|
cmpl-float p2, p2, v2
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1560
|
|
iget p2, p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
cmpl-float p2, p2, v1
|
|
|
|
if-lez p2, :cond_1
|
|
|
|
:cond_0
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1561
|
|
iget p2, p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
add-int/2addr v0, p2
|
|
|
|
:cond_1
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1563
|
|
iget-object p2, p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result p2
|
|
|
|
iget-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1564
|
|
invoke-virtual {p3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p3, v0
|
|
|
|
sub-int/2addr p3, p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1566
|
|
invoke-virtual {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
iget p3, p3, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr p3, v0
|
|
|
|
cmpl-float p2, p2, v2
|
|
|
|
if-gtz p2, :cond_3
|
|
|
|
if-nez p2, :cond_4
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1567
|
|
iget p2, p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
cmpl-float p2, p2, v1
|
|
|
|
if-lez p2, :cond_4
|
|
|
|
:cond_3
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1568
|
|
iget p2, p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
:cond_4
|
|
:goto_0
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1571
|
|
iget-object p2, p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p2, p3, p1}, Landroidx/customview/widget/ViewDragHelper;->settleCapturedViewAt(II)Z
|
|
|
|
iget-object p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->this$0:Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.line 1572
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public tryCaptureView(Landroid/view/View;I)Z
|
|
.locals 0
|
|
|
|
.line 1520
|
|
invoke-direct {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;->isDraggable()Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
.line 1524
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
iget-boolean p0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
return p0
|
|
.end method
|