2019-02-04 20:08:30 +00:00
|
|
|
.class final Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;
|
|
|
|
.super Landroidx/customview/widget/ViewDragHelper$Callback;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "BottomSheetBehavior.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x0
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-02-04 20:42:43 +00:00
|
|
|
.field final synthetic aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/customview/widget/ViewDragHelper$Callback;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final clampViewPositionHorizontal(Landroid/view/View;II)I
|
|
|
|
.locals 0
|
|
|
|
.param p1 # Landroid/view/View;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final clampViewPositionVertical(Landroid/view/View;II)I
|
|
|
|
.locals 0
|
|
|
|
.param p1 # Landroid/view/View;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$100(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-boolean p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-static {p2, p1, p3}, Landroidx/core/math/MathUtils;->clamp(III)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getViewVerticalDragRange(Landroid/view/View;)I
|
|
|
|
.locals 0
|
|
|
|
.param p1 # Landroid/view/View;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-boolean p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewDragStateChanged(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewPositionChanged(Landroid/view/View;IIII)V
|
|
|
|
.locals 0
|
|
|
|
.param p1 # Landroid/view/View;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->dispatchOnSlide(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewReleased(Landroid/view/View;FF)V
|
|
|
|
.locals 7
|
|
|
|
.param p1 # Landroid/view/View;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
const/4 v3, 0x6
|
|
|
|
|
|
|
|
const/4 v4, 0x3
|
|
|
|
|
|
|
|
cmpg-float v5, p3, v1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-gez v5, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$000(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz p2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto/16 :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-le p2, p3, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
|
|
|
|
const/4 v2, 0x6
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v2, 0x3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v5, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-boolean v5, v5, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz v5, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v5, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shouldHide(Landroid/view/View;F)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz v5, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v6, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v6, v6, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-gt v5, v6, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
cmpg-float v5, v5, v6
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-gez v5, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:cond_3
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
|
|
|
|
const/4 v2, 0x5
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto/16 :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
cmpl-float v1, p3, v1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz v1, :cond_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
cmpl-float p2, p2, p3
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-lez p2, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:cond_5
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:cond_6
|
|
|
|
:goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$000(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
if-eqz p3, :cond_8
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
|
|
|
|
sub-int p3, p2, p3
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-ge p3, p2, :cond_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_8
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-ge p2, p3, :cond_a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
|
|
|
sub-int p3, p2, p3
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-ge p2, p3, :cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_9
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
|
|
|
|
const/4 v2, 0x6
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_a
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
|
|
|
|
sub-int p3, p2, p3
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-ge p3, p2, :cond_b
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
|
|
|
|
const/4 v2, 0x6
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_b
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
iget v0, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_1
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3, v0}, Landroidx/customview/widget/ViewDragHelper;->settleCapturedViewAt(II)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz p2, :cond_c
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
|
|
|
|
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$a;
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p2, p3, p1, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$a;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Landroid/view/View;I)V
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:cond_c
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final tryCaptureView(Landroid/view/View;I)Z
|
|
|
|
.locals 4
|
|
|
|
.param p1 # Landroid/view/View;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-boolean v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->touchingScrollingChild:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
|
|
|
|
const/4 v3, 0x3
|
|
|
|
|
|
|
|
if-ne v0, v3, :cond_2
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
|
|
|
|
|
|
|
|
if-ne v0, p2, :cond_2
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroid/view/View;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
2019-02-04 20:42:43 +00:00
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->aIe:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
if-ne p2, p1, :cond_3
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return v2
|
|
|
|
.end method
|