This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,59 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleToStatePendingLayout(I)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.field public final synthetic val$child:Landroid/view/View;
.field public final synthetic val$finalState:I
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Landroid/view/View;I)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iput-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;->val$child:Landroid/view/View;
iput p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;->val$finalState:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;->val$child:Landroid/view/View;
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;->val$finalState:I
invoke-virtual {v0, v1, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleToState(Landroid/view/View;I)V
return-void
.end method
@@ -0,0 +1,76 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Landroid/animation/ValueAnimator$AnimatorUpdateListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createShapeValueAnimator()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onAnimationUpdate(Landroid/animation/ValueAnimator;)V
.locals 1
.param p1 # Landroid/animation/ValueAnimator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Float;
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
move-result p1
.line 2
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$000(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Lcom/google/android/material/shape/MaterialShapeDrawable;
move-result-object v0
if-eqz v0, :cond_0
.line 3
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$000(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Lcom/google/android/material/shape/MaterialShapeDrawable;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setInterpolation(F)V
:cond_0
return-void
.end method
@@ -0,0 +1,60 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetBehavior$3;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Lcom/google/android/material/internal/ViewUtils$OnApplyWindowInsetsListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setSystemGestureInsets(Landroid/view/View;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$3;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;Lcom/google/android/material/internal/ViewUtils$RelativePadding;)Landroidx/core/view/WindowInsetsCompat;
.locals 0
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$3;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->h()Lc1/l;
move-result-object p3
iget p3, p3, Lc1/l;->d:I
invoke-static {p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$102(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;I)I
.line 2
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$3;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
const/4 p3, 0x0
invoke-static {p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$200(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Z)V
return-object p2
.end method
@@ -0,0 +1,675 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;
.super Ly1/d$c;
.source "BottomSheetBehavior.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-direct {p0}, Ly1/d$c;-><init>()V
return-void
.end method
.method private releasedLow(Landroid/view/View;)Z
.locals 2
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
move-result v0
add-int/2addr v0, v1
div-int/lit8 v0, v0, 0x2
if-le p1, v0, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
# virtual methods
.method public clampViewPositionHorizontal(Landroid/view/View;II)I
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
move-result p1
return p1
.end method
.method public clampViewPositionVertical(Landroid/view/View;II)I
.locals 1
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.line 2
invoke-virtual {p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
move-result p1
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-boolean v0, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
if-eqz v0, :cond_0
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
goto :goto_0
:cond_0
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
.line 3
:goto_0
invoke-static {p2, p1, p3}, Lj1/a;->e(III)I
move-result p1
return p1
.end method
.method public getViewVerticalDragRange(Landroid/view/View;)I
.locals 1
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-boolean v0, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
if-eqz v0, :cond_0
.line 2
iget p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
return p1
.line 3
:cond_0
iget p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
return p1
.end method
.method public onViewDragStateChanged(I)V
.locals 1
const/4 v0, 0x1
if-ne p1, v0, :cond_0
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$400(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p1
if-eqz p1, :cond_0
.line 2
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-virtual {p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
:cond_0
return-void
.end method
.method public onViewPositionChanged(Landroid/view/View;IIII)V
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-virtual {p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->dispatchOnSlide(I)V
return-void
.end method
.method public onViewReleased(Landroid/view/View;FF)V
.locals 6
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
cmpg-float v1, p3, v0
const/4 v2, 0x4
const/4 v3, 0x6
const/4 v4, 0x3
if-gez v1, :cond_2
.line 1
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$500(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p2
if-eqz p2, :cond_0
.line 2
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
:goto_0
move v2, v4
goto/16 :goto_3
.line 3
:cond_0
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p2
.line 4
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v0, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
if-le p2, v0, :cond_1
move p2, v0
goto/16 :goto_1
.line 5
:cond_1
iget p2, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
goto :goto_0
.line 6
:cond_2
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-boolean v5, v1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
if-eqz v5, :cond_8
invoke-virtual {v1, p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shouldHide(Landroid/view/View;F)Z
move-result v1
if-eqz v1, :cond_8
.line 7
invoke-static {p2}, Ljava/lang/Math;->abs(F)F
move-result p2
invoke-static {p3}, Ljava/lang/Math;->abs(F)F
move-result v0
cmpg-float p2, p2, v0
if-gez p2, :cond_3
const/high16 p2, 0x43fa0000 # 500.0f
cmpl-float p2, p3, p2
if-gtz p2, :cond_4
.line 8
:cond_3
invoke-direct {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->releasedLow(Landroid/view/View;)Z
move-result p2
if-eqz p2, :cond_5
.line 9
:cond_4
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
const/4 v2, 0x5
goto/16 :goto_3
.line 10
:cond_5
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$500(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p2
if-eqz p2, :cond_6
.line 11
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
goto :goto_0
.line 12
:cond_6
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p2
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p3, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
sub-int/2addr p2, p3
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
move-result p2
.line 13
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p3
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
sub-int/2addr p3, v0
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
move-result p3
if-ge p2, p3, :cond_7
.line 14
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
goto :goto_0
.line 15
:cond_7
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
goto :goto_1
:cond_8
cmpl-float v0, p3, v0
if-eqz v0, :cond_c
.line 16
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
if-lez p2, :cond_9
goto :goto_2
.line 17
:cond_9
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$500(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p2
if-eqz p2, :cond_a
.line 18
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
goto/16 :goto_3
.line 19
:cond_a
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p2
.line 20
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
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
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
sub-int/2addr p2, v0
.line 21
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
move-result p2
if-ge p3, p2, :cond_b
.line 22
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
:goto_1
move v2, v3
goto :goto_3
.line 23
:cond_b
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
goto :goto_3
.line 24
:cond_c
:goto_2
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p2
.line 25
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-static {p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$500(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p3
if-eqz p3, :cond_e
.line 26
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
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
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
sub-int/2addr p2, v0
.line 27
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
move-result p2
if-ge p3, p2, :cond_d
.line 28
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
goto/16 :goto_0
.line 29
:cond_d
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
goto :goto_3
.line 30
:cond_e
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v0, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
if-ge p2, v0, :cond_10
.line 31
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
if-ge p2, p3, :cond_f
.line 32
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
goto/16 :goto_0
.line 33
:cond_f
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
goto :goto_1
:cond_10
sub-int p3, p2, v0
.line 34
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
move-result p3
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
sub-int/2addr p2, v0
.line 35
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
move-result p2
if-ge p3, p2, :cond_11
.line 36
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
goto :goto_1
.line 37
:cond_11
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
.line 38
:goto_3
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
const/4 v0, 0x1
invoke-virtual {p3, p1, v2, p2, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->startSettlingAnimation(Landroid/view/View;IIZ)V
return-void
.end method
.method public tryCaptureView(Landroid/view/View;I)Z
.locals 5
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
const/4 v2, 0x1
const/4 v3, 0x0
if-ne v1, v2, :cond_0
return v3
.line 2
:cond_0
iget-boolean v4, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->touchingScrollingChild:Z
if-eqz v4, :cond_1
return v3
:cond_1
const/4 v4, 0x3
if-ne v1, v4, :cond_3
.line 3
iget v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
if-ne v1, p2, :cond_3
.line 4
iget-object p2, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
if-eqz p2, :cond_2
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/view/View;
goto :goto_0
:cond_2
const/4 p2, 0x0
:goto_0
if-eqz p2, :cond_3
const/4 v0, -0x1
.line 5
invoke-virtual {p2, v0}, Landroid/view/View;->canScrollVertically(I)Z
move-result p2
if-eqz p2, :cond_3
return v3
.line 6
:cond_3
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-object p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
if-eqz p2, :cond_4
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
if-ne p2, p1, :cond_4
goto :goto_1
:cond_4
move v2, v3
:goto_1
return v2
.end method
@@ -0,0 +1,63 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Lt1/f;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createAccessibilityViewCommandForState(I)Lt1/f;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.field public final synthetic val$state:I
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;I)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iput p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;->val$state:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public perform(Landroid/view/View;Lt1/f$a;)Z
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lt1/f$a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;->val$state:I
invoke-virtual {p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setState(I)V
const/4 p1, 0x1
return p1
.end method
@@ -0,0 +1,41 @@
.class public abstract Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "BottomSheetCallback"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public abstract onSlide(Landroid/view/View;F)V
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public abstract onStateChanged(Landroid/view/View;I)V
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
@@ -0,0 +1,27 @@
.class public interface abstract annotation Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SaveFlags;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "SaveFlags"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation
@@ -0,0 +1,133 @@
.class final Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState$1;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Landroid/os/Parcelable$ClassLoaderCreator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroid/os/Parcelable$ClassLoaderCreator<",
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public createFromParcel(Landroid/os/Parcel;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
.locals 2
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 4
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;-><init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
return-object v0
.end method
.method public createFromParcel(Landroid/os/Parcel;Ljava/lang/ClassLoader;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
.locals 1
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 3
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
invoke-direct {v0, p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;-><init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
return-object v0
.end method
.method public bridge synthetic createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
.locals 0
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState$1;->createFromParcel(Landroid/os/Parcel;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic createFromParcel(Landroid/os/Parcel;Ljava/lang/ClassLoader;)Ljava/lang/Object;
.locals 0
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
invoke-virtual {p0, p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState$1;->createFromParcel(Landroid/os/Parcel;Ljava/lang/ClassLoader;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
move-result-object p1
return-object p1
.end method
.method public newArray(I)[Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
new-array p1, p1, [Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
return-object p1
.end method
.method public bridge synthetic newArray(I)[Ljava/lang/Object;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState$1;->newArray(I)[Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,251 @@
.class public Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
.super Landroidx/customview/view/AbsSavedState;
.source "BottomSheetBehavior.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SavedState"
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;",
">;"
}
.end annotation
.end field
# instance fields
.field public fitToContents:Z
.field public hideable:Z
.field public peekHeight:I
.field public skipCollapsed:Z
.field public final state:I
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState$1;
invoke-direct {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState$1;-><init>()V
sput-object v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;)V
.locals 1
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;-><init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
.locals 2
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 2
invoke-direct {p0, p1, p2}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
.line 3
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p2
iput p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->state:I
.line 4
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p2
iput p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->peekHeight:I
.line 5
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p2
const/4 v0, 0x0
const/4 v1, 0x1
if-ne p2, v1, :cond_0
move p2, v1
goto :goto_0
:cond_0
move p2, v0
:goto_0
iput-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->fitToContents:Z
.line 6
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p2
if-ne p2, v1, :cond_1
move p2, v1
goto :goto_1
:cond_1
move p2, v0
:goto_1
iput-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->hideable:Z
.line 7
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p1
if-ne p1, v1, :cond_2
move v0, v1
:cond_2
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->skipCollapsed:Z
return-void
.end method
.method public constructor <init>(Landroid/os/Parcelable;I)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 14
invoke-direct {p0, p1}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcelable;)V
.line 15
iput p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->state:I
return-void
.end method
.method public constructor <init>(Landroid/os/Parcelable;Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
.locals 0
.param p2 # Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/os/Parcelable;",
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
"*>;)V"
}
.end annotation
.line 8
invoke-direct {p0, p1}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcelable;)V
.line 9
iget p1, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->state:I
.line 10
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$600(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)I
move-result p1
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->peekHeight:I
.line 11
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$500(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p1
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->fitToContents:Z
.line 12
iget-boolean p1, p2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->hideable:Z
.line 13
invoke-static {p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->access$700(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
move-result p1
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->skipCollapsed:Z
return-void
.end method
# virtual methods
.method public writeToParcel(Landroid/os/Parcel;I)V
.locals 0
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-super {p0, p1, p2}, Landroidx/customview/view/AbsSavedState;->writeToParcel(Landroid/os/Parcel;I)V
.line 2
iget p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->state:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
.line 3
iget p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->peekHeight:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
.line 4
iget-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->fitToContents:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
.line 5
iget-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->hideable:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
.line 6
iget-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->skipCollapsed:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
return-void
.end method
@@ -0,0 +1,108 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SettleRunnable"
.end annotation
# instance fields
.field private isPosted:Z
.field public targetState:I
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.field private final view:Landroid/view/View;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Landroid/view/View;I)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->view:Landroid/view/View;
.line 3
iput p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->targetState:I
return-void
.end method
.method public static synthetic access$300(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->isPosted:Z
return p0
.end method
.method public static synthetic access$302(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;Z)Z
.locals 0
.line 1
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->isPosted:Z
return p1
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-object v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
if-eqz v0, :cond_0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ly1/d;->o(Z)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->view:Landroid/view/View;
invoke-static {v0, p0}, Landroidx/core/view/ViewCompat;->p1(Landroid/view/View;Ljava/lang/Runnable;)V
goto :goto_0
.line 3
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->targetState:I
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
:goto_0
const/4 v0, 0x0
.line 4
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->isPosted:Z
return-void
.end method
@@ -0,0 +1,27 @@
.class public interface abstract annotation Lcom/google/android/material/bottomsheet/BottomSheetBehavior$State;
.super Ljava/lang/Object;
.source "BottomSheetBehavior.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "State"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,69 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;
.super Ljava/lang/Object;
.source "BottomSheetDialog.java"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetDialog;->wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/view/View;)V
.locals 1
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
iget-boolean v0, p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
if-eqz v0, :cond_0
invoke-virtual {p1}, Landroid/app/Dialog;->isShowing()Z
move-result p1
if-eqz p1, :cond_0
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-virtual {p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->shouldWindowCloseOnTouchOutside()Z
move-result p1
if-eqz p1, :cond_0
.line 2
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-virtual {p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancel()V
:cond_0
return-void
.end method
@@ -0,0 +1,102 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;
.super Landroidx/core/view/a;
.source "BottomSheetDialog.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetDialog;->wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-direct {p0}, Landroidx/core/view/a;-><init>()V
return-void
.end method
# virtual methods
.method public onInitializeAccessibilityNodeInfo(Landroid/view/View;Lt1/c;)V
.locals 0
.param p2 # Lt1/c;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-super {p0, p1, p2}, Landroidx/core/view/a;->onInitializeAccessibilityNodeInfo(Landroid/view/View;Lt1/c;)V
.line 2
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
iget-boolean p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
if-eqz p1, :cond_0
const/high16 p1, 0x100000
.line 3
invoke-virtual {p2, p1}, Lt1/c;->a(I)V
const/4 p1, 0x1
.line 4
invoke-virtual {p2, p1}, Lt1/c;->b1(Z)V
goto :goto_0
:cond_0
const/4 p1, 0x0
.line 5
invoke-virtual {p2, p1}, Lt1/c;->b1(Z)V
:goto_0
return-void
.end method
.method public performAccessibilityAction(Landroid/view/View;ILandroid/os/Bundle;)Z
.locals 2
const/high16 v0, 0x100000
if-ne p2, v0, :cond_0
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
iget-boolean v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
if-eqz v1, :cond_0
.line 2
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancel()V
const/4 p1, 0x1
return p1
.line 3
:cond_0
invoke-super {p0, p1, p2, p3}, Landroidx/core/view/a;->performAccessibilityAction(Landroid/view/View;ILandroid/os/Bundle;)Z
move-result p1
return p1
.end method
@@ -0,0 +1,44 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetDialog$3;
.super Ljava/lang/Object;
.source "BottomSheetDialog.java"
# interfaces
.implements Landroid/view/View$OnTouchListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/material/bottomsheet/BottomSheetDialog;->wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$3;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method
@@ -0,0 +1,63 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;
.super Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
.source "BottomSheetDialog.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetDialog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
# direct methods
.method public constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;-><init>()V
return-void
.end method
# virtual methods
.method public onSlide(Landroid/view/View;F)V
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
return-void
.end method
.method public onStateChanged(Landroid/view/View;I)V
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 p1, 0x5
if-ne p2, p1, :cond_0
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-virtual {p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancel()V
:cond_0
return-void
.end method
@@ -0,0 +1,640 @@
.class public Lcom/google/android/material/bottomsheet/BottomSheetDialog;
.super Landroidx/appcompat/app/e;
.source "BottomSheetDialog.java"
# instance fields
.field private behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
"Landroid/widget/FrameLayout;",
">;"
}
.end annotation
.end field
.field private bottomSheetCallback:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public cancelable:Z
.field private canceledOnTouchOutside:Z
.field private canceledOnTouchOutsideSet:Z
.field private container:Landroid/widget/FrameLayout;
.field public dismissWithAnimation:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;-><init>(Landroid/content/Context;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;I)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/StyleRes;
.end annotation
.end param
.line 2
invoke-static {p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->getThemeResId(Landroid/content/Context;I)I
move-result p2
invoke-direct {p0, p1, p2}, Landroidx/appcompat/app/e;-><init>(Landroid/content/Context;I)V
const/4 p1, 0x1
.line 3
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
.line 4
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutside:Z
.line 5
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
iput-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->bottomSheetCallback:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
.line 6
invoke-virtual {p0, p1}, Landroidx/appcompat/app/e;->supportRequestWindowFeature(I)Z
return-void
.end method
.method public constructor <init>(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 7
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/app/e;-><init>(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V
const/4 p1, 0x1
.line 8
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
.line 9
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutside:Z
.line 10
new-instance p3, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;
invoke-direct {p3, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
iput-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->bottomSheetCallback:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
.line 11
invoke-virtual {p0, p1}, Landroidx/appcompat/app/e;->supportRequestWindowFeature(I)Z
.line 12
iput-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
return-void
.end method
.method private ensureContainerAndBehavior()Landroid/widget/FrameLayout;
.locals 3
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->container:Landroid/widget/FrameLayout;
if-nez v0, :cond_0
.line 2
invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object v0
sget v1, Lcom/google/android/material/R$layout;->design_bottom_sheet_dialog:I
const/4 v2, 0x0
invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout;
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->container:Landroid/widget/FrameLayout;
.line 3
sget v1, Lcom/google/android/material/R$id;->design_bottom_sheet:I
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout;
.line 4
invoke-static {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->from(Landroid/view/View;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
move-result-object v0
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.line 5
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->bottomSheetCallback:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->addBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
.line 6
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setHideable(Z)V
.line 7
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->container:Landroid/widget/FrameLayout;
return-object v0
.end method
.method private static getThemeResId(Landroid/content/Context;I)I
.locals 2
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
if-nez p1, :cond_1
.line 1
new-instance p1, Landroid/util/TypedValue;
invoke-direct {p1}, Landroid/util/TypedValue;-><init>()V
.line 2
invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object p0
sget v0, Lcom/google/android/material/R$attr;->bottomSheetDialogTheme:I
const/4 v1, 0x1
invoke-virtual {p0, v0, p1, v1}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
move-result p0
if-eqz p0, :cond_0
.line 3
iget p1, p1, Landroid/util/TypedValue;->resourceId:I
goto :goto_0
.line 4
:cond_0
sget p1, Lcom/google/android/material/R$style;->Theme_Design_Light_BottomSheetDialog:I
:cond_1
:goto_0
return p1
.end method
.method private wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
.locals 2
.param p2 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroid/view/ViewGroup$LayoutParams;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->ensureContainerAndBehavior()Landroid/widget/FrameLayout;
.line 2
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->container:Landroid/widget/FrameLayout;
sget v1, Lcom/google/android/material/R$id;->coordinator:I
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
if-eqz p1, :cond_0
if-nez p2, :cond_0
.line 3
invoke-virtual {p0}, Landroid/app/Dialog;->getLayoutInflater()Landroid/view/LayoutInflater;
move-result-object p2
const/4 v1, 0x0
invoke-virtual {p2, p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p2
.line 4
:cond_0
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->container:Landroid/widget/FrameLayout;
sget v1, Lcom/google/android/material/R$id;->design_bottom_sheet:I
invoke-virtual {p1, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/FrameLayout;
.line 5
invoke-virtual {p1}, Landroid/widget/FrameLayout;->removeAllViews()V
if-nez p3, :cond_1
.line 6
invoke-virtual {p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
goto :goto_0
.line 7
:cond_1
invoke-virtual {p1, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 8
:goto_0
sget p2, Lcom/google/android/material/R$id;->touch_outside:I
.line 9
invoke-virtual {v0, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object p2
new-instance p3, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;
invoke-direct {p3, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
.line 10
invoke-virtual {p2, p3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 11
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->B1(Landroid/view/View;Landroidx/core/view/a;)V
.line 12
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog$3;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$3;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
invoke-virtual {p1, p2}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 13
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->container:Landroid/widget/FrameLayout;
return-object p1
.end method
# virtual methods
.method public cancel()V
.locals 3
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->getBehavior()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
move-result-object v0
.line 2
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->dismissWithAnimation:Z
if-eqz v1, :cond_1
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getState()I
move-result v1
const/4 v2, 0x5
if-ne v1, v2, :cond_0
goto :goto_0
.line 3
:cond_0
invoke-virtual {v0, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setState(I)V
goto :goto_1
.line 4
:cond_1
:goto_0
invoke-super {p0}, Landroid/app/Dialog;->cancel()V
:goto_1
return-void
.end method
.method public getBehavior()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
"Landroid/widget/FrameLayout;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
if-nez v0, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->ensureContainerAndBehavior()Landroid/widget/FrameLayout;
.line 3
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
return-object v0
.end method
.method public getDismissWithAnimation()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->dismissWithAnimation:Z
return v0
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 1
.line 1
invoke-super {p0, p1}, Landroidx/appcompat/app/e;->onCreate(Landroid/os/Bundle;)V
.line 2
invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object p1
if-eqz p1, :cond_0
const/high16 v0, 0x4000000
.line 3
invoke-virtual {p1, v0}, Landroid/view/Window;->clearFlags(I)V
const/high16 v0, -0x80000000
.line 4
invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V
const/4 v0, -0x1
.line 5
invoke-virtual {p1, v0, v0}, Landroid/view/Window;->setLayout(II)V
:cond_0
return-void
.end method
.method public onStart()V
.locals 2
.line 1
invoke-super {p0}, Landroid/app/Dialog;->onStart()V
.line 2
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getState()I
move-result v0
const/4 v1, 0x5
if-ne v0, v1, :cond_0
.line 3
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setState(I)V
:cond_0
return-void
.end method
.method public removeDefaultCallback()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->bottomSheetCallback:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->removeBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
return-void
.end method
.method public setCancelable(Z)V
.locals 1
.line 1
invoke-super {p0, p1}, Landroid/app/Dialog;->setCancelable(Z)V
.line 2
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
if-eq v0, p1, :cond_0
.line 3
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
.line 4
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->behavior:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
if-eqz v0, :cond_0
.line 5
invoke-virtual {v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setHideable(Z)V
:cond_0
return-void
.end method
.method public setCanceledOnTouchOutside(Z)V
.locals 2
.line 1
invoke-super {p0, p1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V
const/4 v0, 0x1
if-eqz p1, :cond_0
.line 2
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
if-nez v1, :cond_0
.line 3
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->cancelable:Z
.line 4
:cond_0
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutside:Z
.line 5
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutsideSet:Z
return-void
.end method
.method public setContentView(I)V
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/LayoutRes;
.end annotation
.end param
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, v0, v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
move-result-object p1
invoke-super {p0, p1}, Landroidx/appcompat/app/e;->setContentView(Landroid/view/View;)V
return-void
.end method
.method public setContentView(Landroid/view/View;)V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x0
.line 2
invoke-direct {p0, v0, p1, v1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
move-result-object p1
invoke-super {p0, p1}, Landroidx/appcompat/app/e;->setContentView(Landroid/view/View;)V
return-void
.end method
.method public setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.locals 1
const/4 v0, 0x0
.line 3
invoke-direct {p0, v0, p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->wrapInBottomSheet(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
move-result-object p1
invoke-super {p0, p1}, Landroidx/appcompat/app/e;->setContentView(Landroid/view/View;)V
return-void
.end method
.method public setDismissWithAnimation(Z)V
.locals 0
.line 1
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->dismissWithAnimation:Z
return-void
.end method
.method public shouldWindowCloseOnTouchOutside()Z
.locals 5
.line 1
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutsideSet:Z
if-nez v0, :cond_0
.line 2
invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x1
new-array v2, v1, [I
const v3, 0x101035b
const/4 v4, 0x0
aput v3, v2, v4
.line 3
invoke-virtual {v0, v2}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
move-result-object v0
.line 4
invoke-virtual {v0, v4, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutside:Z
.line 5
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
.line 6
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutsideSet:Z
.line 7
:cond_0
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->canceledOnTouchOutside:Z
return v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$1;
.super Ljava/lang/Object;
.source "BottomSheetDialogFragment.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,72 @@
.class Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;
.super Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
.source "BottomSheetDialogFragment.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "BottomSheetDismissCallback"
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
# direct methods
.method private constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$1;)V
.locals 0
.line 2
invoke-direct {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;)V
return-void
.end method
# virtual methods
.method public onSlide(Landroid/view/View;F)V
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
return-void
.end method
.method public onStateChanged(Landroid/view/View;I)V
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 p1, 0x5
if-ne p2, p1, :cond_0
.line 1
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;->this$0:Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
invoke-static {p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->access$100(Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;)V
:cond_0
return-void
.end method
@@ -0,0 +1,235 @@
.class public Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
.super Landroidx/appcompat/app/f;
.source "BottomSheetDialogFragment.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;
}
.end annotation
# instance fields
.field private waitingForDismissAllowingStateLoss:Z
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Landroidx/appcompat/app/f;-><init>()V
return-void
.end method
.method public static synthetic access$100(Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->dismissAfterAnimation()V
return-void
.end method
.method private dismissAfterAnimation()V
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->waitingForDismissAllowingStateLoss:Z
if-eqz v0, :cond_0
.line 2
invoke-super {p0}, Landroidx/fragment/app/d;->dismissAllowingStateLoss()V
goto :goto_0
.line 3
:cond_0
invoke-super {p0}, Landroidx/fragment/app/d;->dismiss()V
:goto_0
return-void
.end method
.method private dismissWithAnimation(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Z)V
.locals 2
.param p1 # Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
"*>;Z)V"
}
.end annotation
.line 1
iput-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->waitingForDismissAllowingStateLoss:Z
.line 2
invoke-virtual {p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getState()I
move-result p2
const/4 v0, 0x5
if-ne p2, v0, :cond_0
.line 3
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->dismissAfterAnimation()V
goto :goto_0
.line 4
:cond_0
invoke-virtual {p0}, Landroidx/fragment/app/d;->getDialog()Landroid/app/Dialog;
move-result-object p2
instance-of p2, p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
if-eqz p2, :cond_1
.line 5
invoke-virtual {p0}, Landroidx/fragment/app/d;->getDialog()Landroid/app/Dialog;
move-result-object p2
check-cast p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-virtual {p2}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->removeDefaultCallback()V
.line 6
:cond_1
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;
const/4 v1, 0x0
invoke-direct {p2, p0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$1;)V
invoke-virtual {p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->addBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
.line 7
invoke-virtual {p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setState(I)V
:goto_0
return-void
.end method
.method private tryDismissWithAnimation(Z)Z
.locals 3
.line 1
invoke-virtual {p0}, Landroidx/fragment/app/d;->getDialog()Landroid/app/Dialog;
move-result-object v0
.line 2
instance-of v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
if-eqz v1, :cond_0
.line 3
check-cast v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
.line 4
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->getBehavior()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
move-result-object v1
.line 5
invoke-virtual {v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->isHideable()Z
move-result v2
if-eqz v2, :cond_0
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->getDismissWithAnimation()Z
move-result v0
if-eqz v0, :cond_0
.line 6
invoke-direct {p0, v1, p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->dismissWithAnimation(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Z)V
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
# virtual methods
.method public dismiss()V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->tryDismissWithAnimation(Z)Z
move-result v0
if-nez v0, :cond_0
.line 2
invoke-super {p0}, Landroidx/fragment/app/d;->dismiss()V
:cond_0
return-void
.end method
.method public dismissAllowingStateLoss()V
.locals 1
const/4 v0, 0x1
.line 1
invoke-direct {p0, v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;->tryDismissWithAnimation(Z)Z
move-result v0
if-nez v0, :cond_0
.line 2
invoke-super {p0}, Landroidx/fragment/app/d;->dismissAllowingStateLoss()V
:cond_0
return-void
.end method
.method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.locals 2
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0}, Landroidx/fragment/app/d;->getTheme()I
move-result v1
invoke-direct {p1, v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;-><init>(Landroid/content/Context;I)V
return-object p1
.end method