4332 lines
113 KiB
Smali
4332 lines
113 KiB
Smali
.class public Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
.super Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
.source "BottomSheetBehavior.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;,
|
|
Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;,
|
|
Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SaveFlags;,
|
|
Lcom/google/android/material/bottomsheet/BottomSheetBehavior$State;,
|
|
Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Landroid/view/View;",
|
|
">",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final CORNER_ANIMATION_DURATION:I = 0x1f4
|
|
|
|
.field private static final DEF_STYLE_RES:I
|
|
|
|
.field private static final HIDE_FRICTION:F = 0.1f
|
|
|
|
.field private static final HIDE_THRESHOLD:F = 0.5f
|
|
|
|
.field public static final PEEK_HEIGHT_AUTO:I = -0x1
|
|
|
|
.field public static final SAVE_ALL:I = -0x1
|
|
|
|
.field public static final SAVE_FIT_TO_CONTENTS:I = 0x2
|
|
|
|
.field public static final SAVE_HIDEABLE:I = 0x4
|
|
|
|
.field public static final SAVE_NONE:I = 0x0
|
|
|
|
.field public static final SAVE_PEEK_HEIGHT:I = 0x1
|
|
|
|
.field public static final SAVE_SKIP_COLLAPSED:I = 0x8
|
|
|
|
.field private static final SIGNIFICANT_VEL_THRESHOLD:I = 0x1f4
|
|
|
|
.field public static final STATE_COLLAPSED:I = 0x4
|
|
|
|
.field public static final STATE_DRAGGING:I = 0x1
|
|
|
|
.field public static final STATE_EXPANDED:I = 0x3
|
|
|
|
.field public static final STATE_HALF_EXPANDED:I = 0x6
|
|
|
|
.field public static final STATE_HIDDEN:I = 0x5
|
|
|
|
.field public static final STATE_SETTLING:I = 0x2
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "BottomSheetBehavior"
|
|
|
|
|
|
# instance fields
|
|
.field public activePointerId:I
|
|
|
|
.field private final callbacks:Ljava/util/ArrayList;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private childHeight:I
|
|
|
|
.field public collapsedOffset:I
|
|
|
|
.field private final dragCallback:Ly1/d$c;
|
|
|
|
.field private draggable:Z
|
|
|
|
.field public elevation:F
|
|
|
|
.field private expandHalfwayActionId:I
|
|
|
|
.field public expandedOffset:I
|
|
|
|
.field private fitToContents:Z
|
|
|
|
.field public fitToContentsOffset:I
|
|
|
|
.field private gestureInsetBottom:I
|
|
|
|
.field private gestureInsetBottomIgnored:Z
|
|
|
|
.field public halfExpandedOffset:I
|
|
|
|
.field public halfExpandedRatio:F
|
|
|
|
.field public hideable:Z
|
|
|
|
.field private ignoreEvents:Z
|
|
|
|
.field private importantForAccessibilityMap:Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Landroid/view/View;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private initialY:I
|
|
|
|
.field private interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private isShapeExpanded:Z
|
|
|
|
.field private lastNestedScrollDy:I
|
|
|
|
.field private materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.field private maximumVelocity:F
|
|
|
|
.field private nestedScrolled:Z
|
|
|
|
.field public nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public parentHeight:I
|
|
|
|
.field public parentWidth:I
|
|
|
|
.field private peekHeight:I
|
|
|
|
.field private peekHeightAuto:Z
|
|
|
|
.field private peekHeightGestureInsetBuffer:I
|
|
|
|
.field private peekHeightMin:I
|
|
|
|
.field private saveFlags:I
|
|
|
|
.field private settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
|
|
"TV;>.SettleRunnable;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private shapeAppearanceModelDefault:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.field private shapeThemingEnabled:Z
|
|
|
|
.field private skipCollapsed:Z
|
|
|
|
.field public state:I
|
|
|
|
.field public touchingScrollingChild:Z
|
|
|
|
.field private updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
.field private velocityTracker:Landroid/view/VelocityTracker;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public viewDragHelper:Ly1/d;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public viewRef:Ljava/lang/ref/WeakReference;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_Design_BottomSheet_Modal:I
|
|
|
|
sput v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->DEF_STYLE_RES:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->saveFlags:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 3
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
.line 4
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
.line 6
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedRatio:F
|
|
|
|
const/high16 v0, -0x40800000 # -1.0f
|
|
|
|
.line 7
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->elevation:F
|
|
|
|
.line 8
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 9
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
.line 10
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 11
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandHalfwayActionId:I
|
|
|
|
.line 12
|
|
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->dragCallback:Ly1/d$c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 8
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 13
|
|
invoke-direct {p0, p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 14
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->saveFlags:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 15
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
.line 16
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 17
|
|
iput-object v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
const/high16 v2, 0x3f000000 # 0.5f
|
|
|
|
.line 18
|
|
iput v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedRatio:F
|
|
|
|
const/high16 v3, -0x40800000 # -1.0f
|
|
|
|
.line 19
|
|
iput v3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->elevation:F
|
|
|
|
.line 20
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
const/4 v4, 0x4
|
|
|
|
.line 21
|
|
iput v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
.line 22
|
|
new-instance v4, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
const/4 v4, -0x1
|
|
|
|
.line 23
|
|
iput v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandHalfwayActionId:I
|
|
|
|
.line 24
|
|
new-instance v5, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;
|
|
|
|
invoke-direct {v5, p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$4;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
iput-object v5, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->dragCallback:Ly1/d$c;
|
|
|
|
.line 25
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v5
|
|
|
|
sget v6, Lcom/google/android/material/R$dimen;->mtrl_min_touch_target_size:I
|
|
|
|
invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v5
|
|
|
|
iput v5, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightGestureInsetBuffer:I
|
|
|
|
.line 26
|
|
sget-object v5, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout:[I
|
|
|
|
invoke-virtual {p1, p2, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v5
|
|
|
|
.line 27
|
|
sget v6, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_shapeAppearance:I
|
|
|
|
invoke-virtual {v5, v6}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v6
|
|
|
|
iput-boolean v6, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shapeThemingEnabled:Z
|
|
|
|
.line 28
|
|
sget v6, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_backgroundTint:I
|
|
|
|
invoke-virtual {v5, v6}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
.line 29
|
|
invoke-static {p1, v5, v6}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v6
|
|
|
|
.line 30
|
|
invoke-direct {p0, p1, p2, v7, v6}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createMaterialShapeDrawable(Landroid/content/Context;Landroid/util/AttributeSet;ZLandroid/content/res/ColorStateList;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 31
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2, v7}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createMaterialShapeDrawable(Landroid/content/Context;Landroid/util/AttributeSet;Z)V
|
|
|
|
.line 32
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createShapeValueAnimator()V
|
|
|
|
.line 33
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_android_elevation:I
|
|
|
|
invoke-virtual {v5, p2, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->elevation:F
|
|
|
|
.line 34
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_peekHeight:I
|
|
|
|
invoke-virtual {v5, p2}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 35
|
|
iget v3, v3, Landroid/util/TypedValue;->data:I
|
|
|
|
if-ne v3, v4, :cond_1
|
|
|
|
.line 36
|
|
invoke-virtual {p0, v3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setPeekHeight(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 37
|
|
:cond_1
|
|
invoke-virtual {v5, p2, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 38
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setPeekHeight(I)V
|
|
|
|
.line 39
|
|
:goto_1
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_hideable:I
|
|
|
|
invoke-virtual {v5, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setHideable(Z)V
|
|
|
|
.line 40
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_gestureInsetBottomIgnored:I
|
|
|
|
.line 41
|
|
invoke-virtual {v5, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
.line 42
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setGestureInsetBottomIgnored(Z)V
|
|
|
|
.line 43
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_fitToContents:I
|
|
|
|
.line 44
|
|
invoke-virtual {v5, p2, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
.line 45
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setFitToContents(Z)V
|
|
|
|
.line 46
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_skipCollapsed:I
|
|
|
|
.line 47
|
|
invoke-virtual {v5, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
.line 48
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setSkipCollapsed(Z)V
|
|
|
|
.line 49
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_draggable:I
|
|
|
|
invoke-virtual {v5, p2, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setDraggable(Z)V
|
|
|
|
.line 50
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_saveFlags:I
|
|
|
|
invoke-virtual {v5, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setSaveFlags(I)V
|
|
|
|
.line 51
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_halfExpandedRatio:I
|
|
|
|
.line 52
|
|
invoke-virtual {v5, p2, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result p2
|
|
|
|
.line 53
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setHalfExpandedRatio(F)V
|
|
|
|
.line 54
|
|
sget p2, Lcom/google/android/material/R$styleable;->BottomSheetBehavior_Layout_behavior_expandedOffset:I
|
|
|
|
invoke-virtual {v5, p2}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 55
|
|
iget v2, v1, Landroid/util/TypedValue;->type:I
|
|
|
|
const/16 v3, 0x10
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
.line 56
|
|
iget p2, v1, Landroid/util/TypedValue;->data:I
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setExpandedOffset(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 57
|
|
:cond_2
|
|
invoke-virtual {v5, p2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 58
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setExpandedOffset(I)V
|
|
|
|
.line 59
|
|
:goto_2
|
|
invoke-virtual {v5}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 60
|
|
invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
|
|
|
|
move-result-object p1
|
|
|
|
.line 61
|
|
invoke-virtual {p1}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->maximumVelocity:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic access$102(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;I)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->gestureInsetBottom:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static synthetic access$200(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updatePeekHeight(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$400(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-boolean p0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$500(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-boolean p0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$600(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$700(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-boolean p0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->skipCollapsed:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private addAccessibilityActionForState(Landroid/view/View;II)I
|
|
.locals 1
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TV;II)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
.line 2
|
|
invoke-direct {p0, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createAccessibilityViewCommandForState(I)Lt1/f;
|
|
|
|
move-result-object p3
|
|
|
|
.line 3
|
|
invoke-static {p1, p2, p3}, Landroidx/core/view/ViewCompat;->c(Landroid/view/View;Ljava/lang/CharSequence;Lt1/f;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private calculateCollapsedOffset()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculatePeekHeight()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 3
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private calculateHalfExpandedOffset()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedRatio:F
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
sub-float/2addr v2, v1
|
|
|
|
mul-float/2addr v2, v0
|
|
|
|
float-to-int v0, v2
|
|
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private calculatePeekHeight()I
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightMin:I
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentWidth:I
|
|
|
|
mul-int/lit8 v2, v2, 0x9
|
|
|
|
div-int/lit8 v2, v2, 0x10
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->childHeight:I
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->gestureInsetBottomIgnored:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->gestureInsetBottom:I
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 5
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightGestureInsetBuffer:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
.line 6
|
|
:cond_1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private createAccessibilityViewCommandForState(I)Lt1/f;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$5;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private createMaterialShapeDrawable(Landroid/content/Context;Landroid/util/AttributeSet;Z)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, p2, p3, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createMaterialShapeDrawable(Landroid/content/Context;Landroid/util/AttributeSet;ZLandroid/content/res/ColorStateList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private createMaterialShapeDrawable(Landroid/content/Context;Landroid/util/AttributeSet;ZLandroid/content/res/ColorStateList;)V
|
|
.locals 2
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shapeThemingEnabled:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 3
|
|
sget v0, Lcom/google/android/material/R$attr;->bottomSheetStyle:I
|
|
|
|
sget v1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->DEF_STYLE_RES:I
|
|
|
|
.line 4
|
|
invoke-static {p1, p2, v0, v1}, Lcom/google/android/material/shape/ShapeAppearanceModel;->builder(Landroid/content/Context;Landroid/util/AttributeSet;II)Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
|
|
|
|
move-result-object p2
|
|
|
|
.line 5
|
|
invoke-virtual {p2}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->build()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shapeAppearanceModelDefault:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 6
|
|
new-instance p2, Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shapeAppearanceModelDefault:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
invoke-direct {p2, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
|
|
iput-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 7
|
|
invoke-virtual {p2, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->initializeElevationOverlay(Landroid/content/Context;)V
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
.line 8
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
invoke-virtual {p1, p4}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setFillColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_0
|
|
new-instance p2, Landroid/util/TypedValue;
|
|
|
|
invoke-direct {p2}, Landroid/util/TypedValue;-><init>()V
|
|
|
|
.line 10
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
const p3, 0x1010031
|
|
|
|
const/4 p4, 0x1
|
|
|
|
invoke-virtual {p1, p3, p2, p4}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
|
|
|
|
.line 11
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
iget p2, p2, Landroid/util/TypedValue;->data:I
|
|
|
|
invoke-virtual {p1, p2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setTint(I)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private createShapeValueAnimator()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [F
|
|
|
|
.line 1
|
|
fill-array-data v0, :array_0
|
|
|
|
invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
const-wide/16 v1, 0x1f4
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-instance v1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$2;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x0
|
|
0x3f800000 # 1.0f
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public static from(Landroid/view/View;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
.locals 1
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Landroid/view/View;",
|
|
">(TV;)",
|
|
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
.line 2
|
|
instance-of v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 3
|
|
check-cast p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;->f()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
instance-of v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
check-cast p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
return-object p0
|
|
|
|
.line 7
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "The view is not associated with BottomSheetBehavior"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 8
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "The view is not a child of CoordinatorLayout"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private getYVelocity()F
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0x3e8
|
|
|
|
.line 2
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->maximumVelocity:F
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/VelocityTracker;->getYVelocity(I)F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private replaceAccessibilityActionForState(Landroid/view/View;Lt1/c$a;I)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TV;",
|
|
"Lt1/c$a;",
|
|
"I)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->createAccessibilityViewCommandForState(I)Lt1/f;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
invoke-static {p1, p2, v0, p3}, Landroidx/core/view/ViewCompat;->u1(Landroid/view/View;Lt1/c$a;Ljava/lang/CharSequence;Lt1/f;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private reset()V
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 1
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private restoreOptionalState(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;)V
|
|
.locals 4
|
|
.param p1 # Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->saveFlags:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
and-int/lit8 v2, v0, 0x1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
.line 2
|
|
:cond_1
|
|
iget v2, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->peekHeight:I
|
|
|
|
iput v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
:cond_2
|
|
if-eq v0, v1, :cond_3
|
|
|
|
and-int/lit8 v2, v0, 0x2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-ne v2, v3, :cond_4
|
|
|
|
.line 3
|
|
:cond_3
|
|
iget-boolean v2, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->fitToContents:Z
|
|
|
|
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
:cond_4
|
|
if-eq v0, v1, :cond_5
|
|
|
|
and-int/lit8 v2, v0, 0x4
|
|
|
|
const/4 v3, 0x4
|
|
|
|
if-ne v2, v3, :cond_6
|
|
|
|
.line 4
|
|
:cond_5
|
|
iget-boolean v2, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->hideable:Z
|
|
|
|
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
:cond_6
|
|
if-eq v0, v1, :cond_7
|
|
|
|
const/16 v1, 0x8
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
if-ne v0, v1, :cond_8
|
|
|
|
.line 5
|
|
:cond_7
|
|
iget-boolean p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->skipCollapsed:Z
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->skipCollapsed:Z
|
|
|
|
:cond_8
|
|
return-void
|
|
.end method
|
|
|
|
.method private setSystemGestureInsets(Landroid/view/View;)V
|
|
.locals 2
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1d
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->isGestureInsetBottomIgnored()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$3;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
invoke-static {p1, v0}, Lcom/google/android/material/internal/ViewUtils;->doOnApplyWindowInsets(Landroid/view/View;Lcom/google/android/material/internal/ViewUtils$OnApplyWindowInsetsListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private settleToStatePendingLayout(I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 3
|
|
invoke-interface {v1}, Landroid/view/ViewParent;->isLayoutRequested()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v0}, Landroidx/core/view/ViewCompat;->O0(Landroid/view/View;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 4
|
|
new-instance v1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;
|
|
|
|
invoke-direct {v1, p0, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$1;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Landroid/view/View;I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {p0, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleToState(Landroid/view/View;I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateAccessibilityActions()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/high16 v1, 0x80000
|
|
|
|
.line 3
|
|
invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->r1(Landroid/view/View;I)V
|
|
|
|
const/high16 v1, 0x40000
|
|
|
|
.line 4
|
|
invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->r1(Landroid/view/View;I)V
|
|
|
|
const/high16 v1, 0x100000
|
|
|
|
.line 5
|
|
invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->r1(Landroid/view/View;I)V
|
|
|
|
.line 6
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandHalfwayActionId:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
.line 7
|
|
invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->r1(Landroid/view/View;I)V
|
|
|
|
.line 8
|
|
:cond_2
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v2, 0x6
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
.line 9
|
|
sget v1, Lcom/google/android/material/R$string;->bottomsheet_action_expand_halfway:I
|
|
|
|
.line 10
|
|
invoke-direct {p0, v0, v1, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->addAccessibilityActionForState(Landroid/view/View;II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandHalfwayActionId:I
|
|
|
|
.line 11
|
|
:cond_3
|
|
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v3, 0x5
|
|
|
|
if-eq v1, v3, :cond_4
|
|
|
|
.line 12
|
|
sget-object v1, Lt1/c$a;->z:Lt1/c$a;
|
|
|
|
invoke-direct {p0, v0, v1, v3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->replaceAccessibilityActionForState(Landroid/view/View;Lt1/c$a;I)V
|
|
|
|
.line 13
|
|
:cond_4
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v3, 0x4
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-eq v1, v4, :cond_8
|
|
|
|
if-eq v1, v3, :cond_6
|
|
|
|
if-eq v1, v2, :cond_5
|
|
|
|
goto :goto_0
|
|
|
|
.line 14
|
|
:cond_5
|
|
sget-object v1, Lt1/c$a;->y:Lt1/c$a;
|
|
|
|
invoke-direct {p0, v0, v1, v3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->replaceAccessibilityActionForState(Landroid/view/View;Lt1/c$a;I)V
|
|
|
|
.line 15
|
|
sget-object v1, Lt1/c$a;->x:Lt1/c$a;
|
|
|
|
invoke-direct {p0, v0, v1, v4}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->replaceAccessibilityActionForState(Landroid/view/View;Lt1/c$a;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 16
|
|
:cond_6
|
|
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
move v2, v4
|
|
|
|
.line 17
|
|
:cond_7
|
|
sget-object v1, Lt1/c$a;->x:Lt1/c$a;
|
|
|
|
invoke-direct {p0, v0, v1, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->replaceAccessibilityActionForState(Landroid/view/View;Lt1/c$a;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_8
|
|
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
move v2, v3
|
|
|
|
.line 19
|
|
:cond_9
|
|
sget-object v1, Lt1/c$a;->y:Lt1/c$a;
|
|
|
|
invoke-direct {p0, v0, v1, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->replaceAccessibilityActionForState(Landroid/view/View;Lt1/c$a;I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateDrawableForTargetState(I)V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne p1, v1, :cond_1
|
|
|
|
move p1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move p1, v3
|
|
|
|
.line 1
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->isShapeExpanded:Z
|
|
|
|
if-eq v1, p1, :cond_4
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->isShapeExpanded:Z
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 4
|
|
invoke-virtual {v1}, Landroid/animation/ValueAnimator;->isRunning()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->reverse()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move p1, v1
|
|
|
|
:goto_1
|
|
sub-float/2addr v1, p1
|
|
|
|
.line 6
|
|
iget-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-array v0, v0, [F
|
|
|
|
aput v1, v0, v3
|
|
|
|
aput p1, v0, v2
|
|
|
|
invoke-virtual {v4, v0}, Landroid/animation/ValueAnimator;->setFloatValues([F)V
|
|
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateImportantForAccessibility(Z)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
instance-of v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_1
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 6
|
|
iget-object v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->importantForAccessibilityMap:Ljava/util/Map;
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
.line 7
|
|
new-instance v2, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v2, v1}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
iput-object v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->importantForAccessibilityMap:Ljava/util/Map;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-ge v2, v1, :cond_7
|
|
|
|
.line 8
|
|
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
.line 9
|
|
iget-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
if-ne v3, v4, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 10
|
|
iget-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->importantForAccessibilityMap:Ljava/util/Map;
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getImportantForAccessibility()I
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v4, v3, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 11
|
|
iget-boolean v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
const/4 v4, 0x4
|
|
|
|
.line 12
|
|
invoke-static {v3, v4}, Landroidx/core/view/ViewCompat;->R1(Landroid/view/View;I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 13
|
|
:cond_5
|
|
iget-boolean v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
iget-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->importantForAccessibilityMap:Ljava/util/Map;
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
.line 14
|
|
invoke-interface {v4, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
.line 15
|
|
iget-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->importantForAccessibilityMap:Ljava/util/Map;
|
|
|
|
invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v3, v4}, Landroidx/core/view/ViewCompat;->R1(Landroid/view/View;I)V
|
|
|
|
:cond_6
|
|
:goto_2
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
if-nez p1, :cond_8
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->importantForAccessibilityMap:Ljava/util/Map;
|
|
|
|
goto :goto_3
|
|
|
|
.line 17
|
|
:cond_8
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
.line 18
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
const/16 v0, 0x8
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->sendAccessibilityEvent(I)V
|
|
|
|
:cond_9
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private updatePeekHeight(Z)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculateCollapsedOffset()V
|
|
|
|
.line 3
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 5
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleToStatePendingLayout(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->requestLayout()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public disableShapeAnimations()V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->interpolatorAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public dispatchOnSlide(I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
.line 3
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
if-gt p1, v1, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result v2
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
sub-int p1, v1, p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 6
|
|
:cond_1
|
|
:goto_0
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
sub-int p1, v1, p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
int-to-float v1, v2
|
|
|
|
:goto_1
|
|
div-float/2addr p1, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
:goto_2
|
|
iget-object v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_2
|
|
|
|
.line 8
|
|
iget-object v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
|
|
|
|
invoke-virtual {v2, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;->onSlide(Landroid/view/View;F)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public findScrollingChild(Landroid/view/View;)Landroid/view/View;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->W0(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
.line 2
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 3
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->findScrollingChild(Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
return-object v2
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getExpandedOffset()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getHalfExpandedRatio()F
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedRatio:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPeekHeight()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPeekHeightMin()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightMin:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSaveFlags()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->saveFlags:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSkipCollapsed()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->skipCollapsed:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getState()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isDraggable()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isFitToContents()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isGestureInsetBottomIgnored()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->gestureInsetBottomIgnored:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isHideable()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onAttachedToLayoutParams(Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onAttachedToLayoutParams(Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 3
|
|
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromLayoutParams()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onDetachedFromLayoutParams()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
.locals 9
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/MotionEvent;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/MotionEvent;",
|
|
")Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Landroid/view/View;->isShown()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->reset()V
|
|
|
|
.line 4
|
|
:cond_1
|
|
iget-object v3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
.line 5
|
|
invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;
|
|
|
|
move-result-object v3
|
|
|
|
iput-object v3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
.line 6
|
|
:cond_2
|
|
iget-object v3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
invoke-virtual {v3, p3}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const/4 v5, 0x2
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
if-eq v0, v2, :cond_3
|
|
|
|
const/4 p2, 0x3
|
|
|
|
if-eq v0, p2, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
.line 7
|
|
:cond_3
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->touchingScrollingChild:Z
|
|
|
|
.line 8
|
|
iput v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
|
|
|
|
.line 9
|
|
iget-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
if-eqz p2, :cond_8
|
|
|
|
.line 10
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
return v1
|
|
|
|
.line 11
|
|
:cond_4
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
move-result v6
|
|
|
|
float-to-int v6, v6
|
|
|
|
.line 12
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result v7
|
|
|
|
float-to-int v7, v7
|
|
|
|
iput v7, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->initialY:I
|
|
|
|
.line 13
|
|
iget v7, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
if-eq v7, v5, :cond_6
|
|
|
|
.line 14
|
|
iget-object v7, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
invoke-virtual {v7}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Landroid/view/View;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
move-object v7, v3
|
|
|
|
:goto_0
|
|
if-eqz v7, :cond_6
|
|
|
|
.line 15
|
|
iget v8, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->initialY:I
|
|
|
|
invoke-virtual {p1, v7, v6, v8}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->isPointInChildBounds(Landroid/view/View;II)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_6
|
|
|
|
.line 16
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {p3, v7}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v7
|
|
|
|
iput v7, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
|
|
|
|
.line 17
|
|
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->touchingScrollingChild:Z
|
|
|
|
.line 18
|
|
:cond_6
|
|
iget v7, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->activePointerId:I
|
|
|
|
if-ne v7, v4, :cond_7
|
|
|
|
iget v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->initialY:I
|
|
|
|
.line 19
|
|
invoke-virtual {p1, p2, v6, v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->isPointInChildBounds(Landroid/view/View;II)Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_7
|
|
|
|
move p2, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
move p2, v1
|
|
|
|
:goto_1
|
|
iput-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
.line 20
|
|
:cond_8
|
|
:goto_2
|
|
iget-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
if-nez p2, :cond_9
|
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 21
|
|
invoke-virtual {p2, p3}, Ly1/d;->W(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
return v2
|
|
|
|
.line 22
|
|
:cond_9
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz p2, :cond_a
|
|
|
|
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object v3, p2
|
|
|
|
check-cast v3, Landroid/view/View;
|
|
|
|
:cond_a
|
|
if-ne v0, v5, :cond_b
|
|
|
|
if-eqz v3, :cond_b
|
|
|
|
.line 23
|
|
iget-boolean p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
if-nez p2, :cond_b
|
|
|
|
iget p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
if-eq p2, v2, :cond_b
|
|
|
|
.line 24
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
move-result p2
|
|
|
|
float-to-int p2, p2
|
|
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result v0
|
|
|
|
float-to-int v0, v0
|
|
|
|
invoke-virtual {p1, v3, p2, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->isPointInChildBounds(Landroid/view/View;II)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_b
|
|
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
if-eqz p1, :cond_b
|
|
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->initialY:I
|
|
|
|
int-to-float p1, p1
|
|
|
|
.line 25
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result p2
|
|
|
|
sub-float/2addr p1, p2
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result p1
|
|
|
|
iget-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
invoke-virtual {p2}, Ly1/d;->E()I
|
|
|
|
move-result p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
cmpl-float p1, p1, p2
|
|
|
|
if-lez p1, :cond_b
|
|
|
|
move v1, v2
|
|
|
|
:cond_b
|
|
return v1
|
|
|
|
.line 26
|
|
:cond_c
|
|
:goto_3
|
|
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)Z
|
|
.locals 6
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;I)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {p2}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p2, v1}, Landroid/view/View;->setFitsSystemWindows(Z)V
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v4, Lcom/google/android/material/R$dimen;->design_bottom_sheet_peek_height_min:I
|
|
|
|
invoke-virtual {v0, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightMin:I
|
|
|
|
.line 5
|
|
invoke-direct {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setSystemGestureInsets(Landroid/view/View;)V
|
|
|
|
.line 6
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 7
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shapeThemingEnabled:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 8
|
|
invoke-static {p2, v0}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 9
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 10
|
|
iget v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->elevation:F
|
|
|
|
const/high16 v5, -0x40800000 # -1.0f
|
|
|
|
cmpl-float v5, v4, v5
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
.line 11
|
|
invoke-static {p2}, Landroidx/core/view/ViewCompat;->R(Landroid/view/View;)F
|
|
|
|
move-result v4
|
|
|
|
.line 12
|
|
:cond_2
|
|
invoke-virtual {v0, v4}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setElevation(F)V
|
|
|
|
.line 13
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
move v0, v3
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->isShapeExpanded:Z
|
|
|
|
.line 14
|
|
iget-object v4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
:goto_1
|
|
invoke-virtual {v4, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setInterpolation(F)V
|
|
|
|
.line 15
|
|
:cond_5
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateAccessibilityActions()V
|
|
|
|
.line 16
|
|
invoke-static {p2}, Landroidx/core/view/ViewCompat;->V(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
.line 17
|
|
invoke-static {p2, v1}, Landroidx/core/view/ViewCompat;->R1(Landroid/view/View;I)V
|
|
|
|
.line 18
|
|
:cond_6
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
.line 19
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->dragCallback:Ly1/d$c;
|
|
|
|
invoke-static {p1, v0}, Ly1/d;->q(Landroid/view/ViewGroup;Ly1/d$c;)Ly1/d;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
.line 20
|
|
:cond_7
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
.line 21
|
|
invoke-virtual {p1, p2, p3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onLayoutChild(Landroid/view/View;I)V
|
|
|
|
.line 22
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
iput p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentWidth:I
|
|
|
|
.line 23
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
.line 24
|
|
invoke-virtual {p2}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->childHeight:I
|
|
|
|
.line 25
|
|
iget p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
sub-int/2addr p3, p1
|
|
|
|
invoke-static {v3, p3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculateHalfExpandedOffset()V
|
|
|
|
.line 27
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculateCollapsedOffset()V
|
|
|
|
.line 28
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
if-ne p1, v2, :cond_8
|
|
|
|
.line 29
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
const/4 p3, 0x6
|
|
|
|
if-ne p1, p3, :cond_9
|
|
|
|
.line 30
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 31
|
|
:cond_9
|
|
iget-boolean p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eqz p3, :cond_a
|
|
|
|
const/4 p3, 0x5
|
|
|
|
if-ne p1, p3, :cond_a
|
|
|
|
.line 32
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
const/4 p3, 0x4
|
|
|
|
if-ne p1, p3, :cond_b
|
|
|
|
.line 33
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_b
|
|
if-eq p1, v1, :cond_c
|
|
|
|
const/4 p3, 0x2
|
|
|
|
if-ne p1, p3, :cond_d
|
|
|
|
.line 34
|
|
:cond_c
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
invoke-static {p2, v0}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
.line 35
|
|
:cond_d
|
|
:goto_2
|
|
new-instance p1, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->findScrollingChild(Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public onNestedPreFling(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;FF)Z
|
|
.locals 3
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/View;",
|
|
"FF)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne p3, v0, :cond_1
|
|
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
.line 3
|
|
invoke-super/range {p0 .. p5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedPreFling(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;FF)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public onNestedPreScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;II[II)V
|
|
.locals 1
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p6 # [I
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/View;",
|
|
"II[II)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x1
|
|
|
|
if-ne p7, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 1
|
|
:cond_0
|
|
iget-object p4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
invoke-virtual {p4}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p4
|
|
|
|
check-cast p4, Landroid/view/View;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p4, 0x0
|
|
|
|
:goto_0
|
|
if-eq p3, p4, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_2
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p4
|
|
|
|
sub-int p7, p4, p5
|
|
|
|
if-lez p5, :cond_5
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result p3
|
|
|
|
if-ge p7, p3, :cond_3
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p4, p3
|
|
|
|
aput p4, p6, p1
|
|
|
|
.line 5
|
|
aget p3, p6, p1
|
|
|
|
neg-int p3, p3
|
|
|
|
invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
const/4 p3, 0x3
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 7
|
|
:cond_3
|
|
iget-boolean p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
if-nez p3, :cond_4
|
|
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_4
|
|
aput p5, p6, p1
|
|
|
|
neg-int p3, p5
|
|
|
|
.line 9
|
|
invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
if-gez p5, :cond_9
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 11
|
|
invoke-virtual {p3, v0}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_9
|
|
|
|
.line 12
|
|
iget p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
if-le p7, p3, :cond_7
|
|
|
|
iget-boolean p7, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eqz p7, :cond_6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
sub-int/2addr p4, p3
|
|
|
|
.line 13
|
|
aput p4, p6, p1
|
|
|
|
.line 14
|
|
aget p3, p6, p1
|
|
|
|
neg-int p3, p3
|
|
|
|
invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
const/4 p3, 0x4
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 16
|
|
:cond_7
|
|
:goto_1
|
|
iget-boolean p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
if-nez p3, :cond_8
|
|
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_8
|
|
aput p5, p6, p1
|
|
|
|
neg-int p3, p5
|
|
|
|
.line 18
|
|
invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
.line 19
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
.line 20
|
|
:cond_9
|
|
:goto_2
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->dispatchOnSlide(I)V
|
|
|
|
.line 21
|
|
iput p5, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->lastNestedScrollDy:I
|
|
|
|
.line 22
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrolled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;IIIII[I)V
|
|
.locals 0
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p9 # [I
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/View;",
|
|
"IIIII[I)V"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/os/Parcelable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/os/Parcelable;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
check-cast p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
|
|
|
|
.line 2
|
|
invoke-virtual {p3}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-super {p0, p1, p2, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)V
|
|
|
|
.line 3
|
|
invoke-direct {p0, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->restoreOptionalState(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;)V
|
|
|
|
.line 4
|
|
iget p1, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;->state:I
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-eq p1, p2, :cond_1
|
|
|
|
const/4 p2, 0x2
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x4
|
|
|
|
.line 6
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/os/Parcelable;
|
|
.locals 1
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;)",
|
|
"Landroid/os/Parcelable;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;
|
|
|
|
invoke-super {p0, p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1, p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SavedState;-><init>(Landroid/os/Parcelable;Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onStartNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;Landroid/view/View;II)Z
|
|
.locals 0
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/View;",
|
|
"Landroid/view/View;",
|
|
"II)Z"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->lastNestedScrollDy:I
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrolled:Z
|
|
|
|
and-int/lit8 p2, p5, 0x2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
:cond_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public onStopNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;I)V
|
|
.locals 2
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/View;",
|
|
"I)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result p4
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-ne p1, p4, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz p1, :cond_e
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-ne p3, p1, :cond_e
|
|
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrolled:Z
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 5
|
|
:cond_1
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->lastNestedScrollDy:I
|
|
|
|
const/4 p3, 0x4
|
|
|
|
const/4 p4, 0x6
|
|
|
|
if-lez p1, :cond_4
|
|
|
|
.line 6
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 7
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 8
|
|
:cond_2
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
.line 9
|
|
iget p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
if-le p1, p3, :cond_3
|
|
|
|
move p1, p3
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 10
|
|
:cond_3
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 11
|
|
:cond_4
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getYVelocity()F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p2, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->shouldHide(Landroid/view/View;F)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 12
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
const/4 v0, 0x5
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 13
|
|
:cond_5
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->lastNestedScrollDy:I
|
|
|
|
if-nez p1, :cond_b
|
|
|
|
.line 14
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
.line 15
|
|
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 16
|
|
iget p4, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
sub-int p4, p1, p4
|
|
|
|
invoke-static {p4}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p4
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
if-ge p4, p1, :cond_6
|
|
|
|
.line 17
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
goto :goto_2
|
|
|
|
.line 18
|
|
:cond_6
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 19
|
|
:cond_7
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
if-ge p1, v1, :cond_9
|
|
|
|
.line 20
|
|
iget p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
sub-int p3, p1, p3
|
|
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p3
|
|
|
|
if-ge p1, p3, :cond_8
|
|
|
|
.line 21
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
|
|
|
|
goto :goto_2
|
|
|
|
.line 22
|
|
:cond_8
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
sub-int v0, p1, v1
|
|
|
|
.line 23
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
if-ge v0, p1, :cond_a
|
|
|
|
.line 24
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
goto :goto_1
|
|
|
|
.line 25
|
|
:cond_a
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 26
|
|
:cond_b
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz p1, :cond_c
|
|
|
|
.line 27
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
:goto_0
|
|
move v0, p3
|
|
|
|
goto :goto_2
|
|
|
|
.line 28
|
|
:cond_c
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
.line 29
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
sub-int v0, p1, v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
if-ge v0, p1, :cond_d
|
|
|
|
.line 30
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
:goto_1
|
|
move v0, p4
|
|
|
|
goto :goto_2
|
|
|
|
.line 31
|
|
:cond_d
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
:goto_2
|
|
const/4 p3, 0x0
|
|
|
|
.line 32
|
|
invoke-virtual {p0, p2, v0, p1, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->startSettlingAnimation(Landroid/view/View;IIZ)V
|
|
|
|
.line 33
|
|
iput-boolean p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->nestedScrolled:Z
|
|
|
|
:cond_e
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/view/MotionEvent;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TV;",
|
|
"Landroid/view/MotionEvent;",
|
|
")Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Landroid/view/View;->isShown()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result p1
|
|
|
|
.line 3
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 4
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p3}, Ly1/d;->M(Landroid/view/MotionEvent;)V
|
|
|
|
:cond_2
|
|
if-nez p1, :cond_3
|
|
|
|
.line 6
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->reset()V
|
|
|
|
.line 7
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
.line 8
|
|
invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
.line 9
|
|
:cond_4
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->velocityTracker:Landroid/view/VelocityTracker;
|
|
|
|
invoke-virtual {v0, p3}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V
|
|
|
|
.line 10
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-ne p1, v0, :cond_5
|
|
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
.line 11
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->initialY:I
|
|
|
|
int-to-float p1, p1
|
|
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result v0
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result p1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
invoke-virtual {v0}, Ly1/d;->E()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_5
|
|
|
|
.line 12
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p3, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p1, p2, p3}, Ly1/d;->d(Landroid/view/View;I)V
|
|
|
|
.line 13
|
|
:cond_5
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->ignoreEvents:Z
|
|
|
|
xor-int/2addr p1, v1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public removeBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBottomSheetCallback(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const-string v0, "BottomSheetBehavior"
|
|
|
|
const-string v1, "BottomSheetBehavior now supports multiple callbacks. `setBottomSheetCallback()` removes all existing callbacks, including ones set internally by library authors, which may result in unintended behavior. This may change in the future. Please use `addBottomSheetCallback()` and `removeBottomSheetCallback()` instead to set your own callbacks."
|
|
|
|
.line 1
|
|
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDraggable(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->draggable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExpandedOffset(I)V
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->expandedOffset:I
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "offset must be greater than or equal to 0"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setFitToContents(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
.line 3
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculateCollapsedOffset()V
|
|
|
|
.line 5
|
|
:cond_1
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v0, 0x6
|
|
|
|
if-ne p1, v0, :cond_2
|
|
|
|
const/4 p1, 0x3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
.line 6
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateAccessibilityActions()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGestureInsetBottomIgnored(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->gestureInsetBottomIgnored:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHalfExpandedRatio(F)V
|
|
.locals 1
|
|
.param p1 # F
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpg-float v0, p1, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-gez v0, :cond_1
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedRatio:F
|
|
|
|
.line 2
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculateHalfExpandedOffset()V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "ratio must be a float value between 0 and 1"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setHideable(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 3
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
const/4 p1, 0x4
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setState(I)V
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateAccessibilityActions()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPeekHeight(I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setPeekHeight(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setPeekHeight(IZ)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-ne p1, v2, :cond_0
|
|
|
|
.line 2
|
|
iget-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
.line 3
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
if-eq v2, p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 5
|
|
:cond_2
|
|
:goto_0
|
|
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeightAuto:Z
|
|
|
|
.line 6
|
|
invoke-static {v1, p1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->peekHeight:I
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 7
|
|
invoke-direct {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updatePeekHeight(Z)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSaveFlags(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->saveFlags:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSkipCollapsed(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->skipCollapsed:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setState(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/4 v0, 0x6
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
.line 3
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-ne p1, v0, :cond_2
|
|
|
|
.line 4
|
|
:cond_1
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_3
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleToStatePendingLayout(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStateInternal(I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iput p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->state:I
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewRef:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_1
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne p1, v1, :cond_3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 5
|
|
invoke-direct {p0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibility(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 v1, 0x6
|
|
|
|
if-eq p1, v1, :cond_4
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-eq p1, v1, :cond_4
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-ne p1, v1, :cond_5
|
|
|
|
.line 6
|
|
:cond_4
|
|
invoke-direct {p0, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibility(Z)V
|
|
|
|
.line 7
|
|
:cond_5
|
|
:goto_0
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateDrawableForTargetState(I)V
|
|
|
|
.line 8
|
|
:goto_1
|
|
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v2, v1, :cond_6
|
|
|
|
.line 9
|
|
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->callbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
|
|
|
|
invoke-virtual {v1, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;->onStateChanged(Landroid/view/View;I)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_6
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateAccessibilityActions()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUpdateImportantForAccessibilityOnSiblings(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateImportantForAccessibilityOnSiblings:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public settleToState(Landroid/view/View;I)V
|
|
.locals 3
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x3
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-ne p2, v1, :cond_0
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x6
|
|
|
|
if-ne p2, v1, :cond_2
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->halfExpandedOffset:I
|
|
|
|
.line 3
|
|
iget-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContents:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->fitToContentsOffset:I
|
|
|
|
if-gt v1, v2, :cond_1
|
|
|
|
move p2, v0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-ne p2, v0, :cond_3
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->getExpandedOffset()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_3
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->hideable:Z
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-ne p2, v0, :cond_4
|
|
|
|
.line 6
|
|
iget v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->parentHeight:I
|
|
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p1, p2, v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->startSettlingAnimation(Landroid/view/View;IIZ)V
|
|
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Illegal state argument: "
|
|
|
|
invoke-static {v0, p2}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public shouldHide(Landroid/view/View;F)Z
|
|
.locals 4
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->skipCollapsed:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
iget v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ge v0, v2, :cond_1
|
|
|
|
return v3
|
|
|
|
.line 3
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->calculatePeekHeight()I
|
|
|
|
move-result v0
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
const v2, 0x3dcccccd # 0.1f
|
|
|
|
mul-float/2addr p2, v2
|
|
|
|
add-float/2addr p2, p1
|
|
|
|
.line 5
|
|
iget p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->collapsedOffset:I
|
|
|
|
int-to-float p1, p1
|
|
|
|
sub-float/2addr p2, p1
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result p1
|
|
|
|
int-to-float p2, v0
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
const/high16 p2, 0x3f000000 # 0.5f
|
|
|
|
cmpl-float p1, p1, p2
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v1, v3
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public startSettlingAnimation(Landroid/view/View;IIZ)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->viewDragHelper:Ly1/d;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result p4
|
|
|
|
invoke-virtual {v0, p4, p3}, Ly1/d;->V(II)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result p4
|
|
|
|
invoke-virtual {v0, p1, p4, p3}, Ly1/d;->X(Landroid/view/View;II)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
:goto_0
|
|
move p3, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 p3, 0x0
|
|
|
|
:goto_1
|
|
if-eqz p3, :cond_4
|
|
|
|
const/4 p3, 0x2
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
.line 5
|
|
invoke-direct {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->updateDrawableForTargetState(I)V
|
|
|
|
.line 6
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
.line 7
|
|
new-instance p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
invoke-direct {p3, p0, p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;Landroid/view/View;I)V
|
|
|
|
iput-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
.line 8
|
|
:cond_2
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
invoke-static {p3}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->access$300(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;)Z
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_3
|
|
|
|
.line 9
|
|
iget-object p3, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
iput p2, p3, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->targetState:I
|
|
|
|
.line 10
|
|
invoke-static {p1, p3}, Landroidx/core/view/ViewCompat;->p1(Landroid/view/View;Ljava/lang/Runnable;)V
|
|
|
|
.line 11
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
invoke-static {p1, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->access$302(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;Z)Z
|
|
|
|
goto :goto_2
|
|
|
|
.line 12
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->settleRunnable:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;
|
|
|
|
iput p2, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$SettleRunnable;->targetState:I
|
|
|
|
goto :goto_2
|
|
|
|
.line 13
|
|
:cond_4
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->setStateInternal(I)V
|
|
|
|
:goto_2
|
|
return-void
|
|
.end method
|