2645 lines
71 KiB
Smali
2645 lines
71 KiB
Smali
.class public Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;
|
|
.super Lcom/google/android/material/appbar/HeaderBehavior;
|
|
.source "AppBarLayout.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/appbar/AppBarLayout;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "BaseBehavior"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;,
|
|
Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Lcom/google/android/material/appbar/AppBarLayout;",
|
|
">",
|
|
"Lcom/google/android/material/appbar/HeaderBehavior<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final INVALID_POSITION:I = -0x1
|
|
|
|
.field private static final MAX_OFFSET_ANIMATION_DURATION:I = 0x258
|
|
|
|
|
|
# instance fields
|
|
.field private lastNestedScrollingChildRef: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 private lastStartedType:I
|
|
|
|
.field private offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
.field private offsetDelta:I
|
|
|
|
.field private offsetToChildIndexOnLayout:I
|
|
|
|
.field private offsetToChildIndexOnLayoutIsMinHeight:Z
|
|
|
|
.field private offsetToChildIndexOnLayoutPerc:F
|
|
|
|
.field private onDragCallback:Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/HeaderBehavior;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 2
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayout:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/HeaderBehavior;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 4
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayout:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p0, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetDelta:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private addAccessibilityScrollActions(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;)V
|
|
.locals 9
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.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;",
|
|
"TT;",
|
|
"Landroid/view/View;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getTopBottomOffsetForScrollingSibling()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result v1
|
|
|
|
neg-int v1, v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p3, v2}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
sget-object v0, Lt1/c$a;->r:Lt1/c$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, p1, p2, v0, v1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->addActionToExpand(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Lt1/c$a;Z)V
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getTopBottomOffsetForScrollingSibling()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 5
|
|
invoke-virtual {p3, v0}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getDownNestedPreScrollRange()I
|
|
|
|
move-result v0
|
|
|
|
neg-int v6, v0
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 7
|
|
sget-object v0, Lt1/c$a;->s:Lt1/c$a;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
new-instance v8, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$2;
|
|
|
|
move-object v1, v8
|
|
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$2;-><init>(Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;I)V
|
|
|
|
invoke-static {p1, v0, v7, v8}, Landroidx/core/view/ViewCompat;->u1(Landroid/view/View;Lt1/c$a;Ljava/lang/CharSequence;Lt1/f;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
sget-object p3, Lt1/c$a;->s:Lt1/c$a;
|
|
|
|
invoke-direct {p0, p1, p2, p3, v2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->addActionToExpand(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Lt1/c$a;Z)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private addActionToExpand(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Lt1/c$a;Z)V
|
|
.locals 1
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Lt1/c$a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;",
|
|
"Lt1/c$a;",
|
|
"Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$3;
|
|
|
|
invoke-direct {v0, p0, p2, p4}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$3;-><init>(Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;Lcom/google/android/material/appbar/AppBarLayout;Z)V
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-static {p1, p3, p2, v0}, Landroidx/core/view/ViewCompat;->u1(Landroid/view/View;Lt1/c$a;Ljava/lang/CharSequence;Lt1/f;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private animateOffsetTo(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IF)V
|
|
.locals 2
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;IF)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getTopBottomOffsetForScrollingSibling()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v0, p3
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-static {p4}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result p4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpl-float v1, p4, v1
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
const/high16 v1, 0x447a0000 # 1000.0f
|
|
|
|
int-to-float v0, v0
|
|
|
|
div-float/2addr v0, p4
|
|
|
|
mul-float/2addr v0, v1
|
|
|
|
.line 3
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result p4
|
|
|
|
mul-int/lit8 p4, p4, 0x3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
int-to-float p4, v0
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
div-float/2addr p4, v0
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
add-float/2addr p4, v0
|
|
|
|
const/high16 v0, 0x43160000 # 150.0f
|
|
|
|
mul-float/2addr p4, v0
|
|
|
|
float-to-int p4, p4
|
|
|
|
.line 5
|
|
:goto_0
|
|
invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->animateOffsetWithDuration(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private animateOffsetWithDuration(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;II)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;II)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getTopBottomOffsetForScrollingSibling()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, p3, :cond_1
|
|
|
|
.line 2
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->isRunning()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
.line 5
|
|
new-instance v1, Landroid/animation/ValueAnimator;
|
|
|
|
invoke-direct {v1}, Landroid/animation/ValueAnimator;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
.line 6
|
|
sget-object v2, Lcom/google/android/material/animation/AnimationUtils;->DECELERATE_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 7
|
|
iget-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-instance v2, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$1;
|
|
|
|
invoke-direct {v2, p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$1;-><init>(Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_2
|
|
invoke-virtual {v1}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
.line 9
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
const/16 p2, 0x258
|
|
|
|
invoke-static {p4, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
int-to-long v1, p2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 10
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
const/4 p2, 0x2
|
|
|
|
new-array p2, p2, [I
|
|
|
|
const/4 p4, 0x0
|
|
|
|
aput v0, p2, p4
|
|
|
|
const/4 p4, 0x1
|
|
|
|
aput p3, p2, p4
|
|
|
|
invoke-virtual {p1, p2}, Landroid/animation/ValueAnimator;->setIntValues([I)V
|
|
|
|
.line 11
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private canScrollChildren(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;)Z
|
|
.locals 1
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.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;",
|
|
"TT;",
|
|
"Landroid/view/View;",
|
|
")Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->hasScrollableChildren()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p3}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p1, p3
|
|
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
if-gt p1, p2, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method private static checkFlag(II)Z
|
|
.locals 0
|
|
|
|
and-int/2addr p0, p1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method private findFirstScrollingChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)Landroid/view/View;
|
|
.locals 4
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 3
|
|
instance-of v3, v2, Ls1/y;
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
instance-of v3, v2, Landroid/widget/ListView;
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
instance-of v3, v2, Landroid/widget/ScrollView;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v2
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private static getAppBarChildOnOffset(Lcom/google/android/material/appbar/AppBarLayout;I)Landroid/view/View;
|
|
.locals 4
|
|
.param p0 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 4
|
|
invoke-virtual {v2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v3
|
|
|
|
if-lt p1, v3, :cond_0
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v3
|
|
|
|
if-gt p1, v3, :cond_0
|
|
|
|
return-object v2
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private getChildIndexOnOffset(Lcom/google/android/material/appbar/AppBarLayout;I)I
|
|
.locals 7
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;I)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 3
|
|
invoke-virtual {v2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v3
|
|
|
|
.line 4
|
|
invoke-virtual {v2}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v4
|
|
|
|
.line 5
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
.line 6
|
|
invoke-virtual {v2}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->getScrollFlags()I
|
|
|
|
move-result v5
|
|
|
|
const/16 v6, 0x20
|
|
|
|
invoke-static {v5, v6}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->checkFlag(II)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
.line 7
|
|
iget v5, v2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
sub-int/2addr v3, v5
|
|
|
|
.line 8
|
|
iget v2, v2, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
:cond_0
|
|
neg-int v2, p2
|
|
|
|
if-gt v3, v2, :cond_1
|
|
|
|
if-lt v4, v2, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private interpolateOffset(Lcom/google/android/material/appbar/AppBarLayout;I)I
|
|
.locals 8
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;I)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_3
|
|
|
|
.line 3
|
|
invoke-virtual {p1, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
.line 4
|
|
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
.line 5
|
|
invoke-virtual {v5}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->getScrollInterpolator()Landroid/view/animation/Interpolator;
|
|
|
|
move-result-object v6
|
|
|
|
.line 6
|
|
invoke-virtual {v4}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v7
|
|
|
|
if-lt v0, v7, :cond_2
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v7
|
|
|
|
if-gt v0, v7, :cond_2
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
.line 7
|
|
invoke-virtual {v5}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->getScrollFlags()I
|
|
|
|
move-result v1
|
|
|
|
and-int/lit8 v3, v1, 0x1
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 8
|
|
invoke-virtual {v4}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
iget v7, v5, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v3, v7
|
|
|
|
iget v5, v5, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v3, v5
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
and-int/lit8 v1, v1, 0x2
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 9
|
|
invoke-static {v4}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-static {v4}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v2, p1
|
|
|
|
:cond_1
|
|
if-lez v2, :cond_3
|
|
|
|
.line 12
|
|
invoke-virtual {v4}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
int-to-float p1, v2
|
|
|
|
int-to-float v0, v0
|
|
|
|
div-float/2addr v0, p1
|
|
|
|
.line 13
|
|
invoke-interface {v6, v0}, Landroid/view/animation/Interpolator;->getInterpolation(F)F
|
|
|
|
move-result v0
|
|
|
|
mul-float/2addr v0, p1
|
|
|
|
.line 14
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-static {p2}, Ljava/lang/Integer;->signum(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
mul-int/2addr v0, p2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return p2
|
|
.end method
|
|
|
|
.method private shouldJumpElevationState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)Z
|
|
.locals 4
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDependents(Landroid/view/View;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_2
|
|
|
|
.line 3
|
|
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/View;
|
|
|
|
.line 4
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
|
|
.line 5
|
|
invoke-virtual {v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;->f()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v2
|
|
|
|
.line 6
|
|
instance-of v3, v2, Lcom/google/android/material/appbar/AppBarLayout$ScrollingViewBehavior;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 7
|
|
check-cast v2, Lcom/google/android/material/appbar/AppBarLayout$ScrollingViewBehavior;
|
|
|
|
invoke-virtual {v2}, Lcom/google/android/material/appbar/HeaderScrollingViewBehavior;->getOverlayTop()I
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_0
|
|
return v0
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method private snapToChildIfNeeded(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
.locals 8
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getTopBottomOffsetForScrollingSibling()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p2, v0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getChildIndexOnOffset(Lcom/google/android/material/appbar/AppBarLayout;I)I
|
|
|
|
move-result v1
|
|
|
|
if-ltz v1, :cond_6
|
|
|
|
.line 3
|
|
invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 4
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
.line 5
|
|
invoke-virtual {v3}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->getScrollFlags()I
|
|
|
|
move-result v4
|
|
|
|
and-int/lit8 v5, v4, 0x11
|
|
|
|
const/16 v6, 0x11
|
|
|
|
if-ne v5, v6, :cond_6
|
|
|
|
.line 6
|
|
invoke-virtual {v2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v5
|
|
|
|
neg-int v5, v5
|
|
|
|
.line 7
|
|
invoke-virtual {v2}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v6
|
|
|
|
neg-int v6, v6
|
|
|
|
.line 8
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v7
|
|
|
|
add-int/lit8 v7, v7, -0x1
|
|
|
|
if-ne v1, v7, :cond_0
|
|
|
|
.line 9
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v6, v1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x2
|
|
|
|
.line 10
|
|
invoke-static {v4, v1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->checkFlag(II)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
.line 11
|
|
invoke-static {v2}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v6, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v7, 0x5
|
|
|
|
.line 12
|
|
invoke-static {v4, v7}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->checkFlag(II)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
.line 13
|
|
invoke-static {v2}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v6
|
|
|
|
if-ge v0, v2, :cond_2
|
|
|
|
move v5, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v6, v2
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/16 v2, 0x20
|
|
|
|
.line 14
|
|
invoke-static {v4, v2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->checkFlag(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 15
|
|
iget v2, v3, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v5, v2
|
|
|
|
.line 16
|
|
iget v2, v3, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v6, v2
|
|
|
|
:cond_4
|
|
add-int v2, v6, v5
|
|
|
|
.line 17
|
|
div-int/2addr v2, v1
|
|
|
|
if-ge v0, v2, :cond_5
|
|
|
|
move v5, v6
|
|
|
|
.line 18
|
|
:cond_5
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result v0
|
|
|
|
neg-int v0, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v5, v0, v1}, Lj1/a;->e(III)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 19
|
|
invoke-direct {p0, p1, p2, v0, v1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->animateOffsetTo(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IF)V
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateAccessibilityActions(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
.locals 2
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lt1/c$a;->r:Lt1/c$a;
|
|
|
|
invoke-virtual {v0}, Lt1/c$a;->b()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->r1(Landroid/view/View;I)V
|
|
|
|
.line 2
|
|
sget-object v0, Lt1/c$a;->s:Lt1/c$a;
|
|
|
|
invoke-virtual {v0}, Lt1/c$a;->b()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->r1(Landroid/view/View;I)V
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->findFirstScrollingChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
|
|
.line 6
|
|
invoke-virtual {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;->f()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v1
|
|
|
|
instance-of v1, v1, Lcom/google/android/material/appbar/AppBarLayout$ScrollingViewBehavior;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->addAccessibilityScrollActions(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateAppBarLayoutDrawableState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IIZ)V
|
|
.locals 5
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;IIZ)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p2, p3}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getAppBarChildOnOffset(Lcom/google/android/material/appbar/AppBarLayout;I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
.line 3
|
|
invoke-virtual {v1}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->getScrollFlags()I
|
|
|
|
move-result v1
|
|
|
|
and-int/lit8 v2, v1, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-static {v0}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-lez p4, :cond_0
|
|
|
|
and-int/lit8 p4, v1, 0xc
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
neg-int p3, p3
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result p4
|
|
|
|
sub-int/2addr p4, v2
|
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p4, v0
|
|
|
|
if-lt p3, p4, :cond_1
|
|
|
|
:goto_0
|
|
move v3, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, v1, 0x2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
neg-int p3, p3
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result p4
|
|
|
|
sub-int/2addr p4, v2
|
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p4, v0
|
|
|
|
if-lt p3, p4, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
:goto_1
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->isLiftOnScroll()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
.line 8
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->findFirstScrollingChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p2, p3}, Lcom/google/android/material/appbar/AppBarLayout;->shouldLift(Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
.line 9
|
|
:cond_2
|
|
invoke-virtual {p2, v3}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftedState(Z)Z
|
|
|
|
move-result p3
|
|
|
|
if-nez p5, :cond_3
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
.line 10
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->shouldJumpElevationState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 11
|
|
:cond_3
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->jumpDrawablesToCurrentState()V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic canDragView(Landroid/view/View;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
check-cast p1, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->canDragView(Lcom/google/android/material/appbar/AppBarLayout;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public canDragView(Lcom/google/android/material/appbar/AppBarLayout;)Z
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onDragCallback:Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;->canDrag(Lcom/google/android/material/appbar/AppBarLayout;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->lastNestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Landroid/view/View;->isShown()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic getMaxDragOffset(Landroid/view/View;)I
|
|
.locals 0
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p1, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getMaxDragOffset(Lcom/google/android/material/appbar/AppBarLayout;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getMaxDragOffset(Lcom/google/android/material/appbar/AppBarLayout;)I
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Lcom/google/android/material/appbar/AppBarLayout;->getDownNestedScrollRange()I
|
|
|
|
move-result p1
|
|
|
|
neg-int p1, p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic getScrollRangeForDragFling(Landroid/view/View;)I
|
|
.locals 0
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p1, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getScrollRangeForDragFling(Lcom/google/android/material/appbar/AppBarLayout;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getScrollRangeForDragFling(Lcom/google/android/material/appbar/AppBarLayout;)I
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getTopBottomOffsetForScrollingSibling()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->getTopAndBottomOffset()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetDelta:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isOffsetAnimatorRunning()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->isRunning()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic onFlingFinished(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onFlingFinished(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onFlingFinished(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->snapToChildIfNeeded(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->isLiftOnScroll()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->findFirstScrollingChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/google/android/material/appbar/AppBarLayout;->shouldLift(Landroid/view/View;)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftedState(Z)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;I)Z
|
|
.locals 7
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;I)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-super {p0, p1, p2, p3}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)Z
|
|
|
|
move-result p3
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getPendingAction()I
|
|
|
|
move-result v0
|
|
|
|
.line 4
|
|
iget v1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayout:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ltz v1, :cond_1
|
|
|
|
and-int/lit8 v3, v0, 0x8
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v1
|
|
|
|
neg-int v1, v1
|
|
|
|
.line 7
|
|
iget-boolean v3, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayoutIsMinHeight:Z
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 8
|
|
invoke-static {v0}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget v3, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayoutPerc:F
|
|
|
|
invoke-static {v0, v3, v1}, Lw5/d;->a(FFI)I
|
|
|
|
move-result v3
|
|
|
|
.line 10
|
|
:goto_0
|
|
invoke-virtual {p0, p1, p2, v3}, Lcom/google/android/material/appbar/HeaderBehavior;->setHeaderTopBottomOffset(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_6
|
|
|
|
and-int/lit8 v1, v0, 0x4
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
and-int/lit8 v4, v0, 0x2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
.line 11
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getUpNestedPreScrollRange()I
|
|
|
|
move-result v0
|
|
|
|
neg-int v0, v0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 12
|
|
invoke-direct {p0, p1, p2, v0, v5}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->animateOffsetTo(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IF)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 13
|
|
:cond_3
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/google/android/material/appbar/HeaderBehavior;->setHeaderTopBottomOffset(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
and-int/2addr v0, v3
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 14
|
|
invoke-direct {p0, p1, p2, v2, v5}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->animateOffsetTo(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IF)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 15
|
|
:cond_5
|
|
invoke-virtual {p0, p1, p2, v2}, Lcom/google/android/material/appbar/HeaderBehavior;->setHeaderTopBottomOffset(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)I
|
|
|
|
.line 16
|
|
:cond_6
|
|
:goto_2
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->resetPendingAction()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 17
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayout:I
|
|
|
|
.line 18
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->getTopAndBottomOffset()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result v1
|
|
|
|
neg-int v1, v1
|
|
|
|
invoke-static {v0, v1, v2}, Lj1/a;->e(III)I
|
|
|
|
move-result v0
|
|
|
|
.line 19
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->setTopAndBottomOffset(I)Z
|
|
|
|
.line 20
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->getTopAndBottomOffset()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, p2
|
|
|
|
.line 21
|
|
invoke-direct/range {v1 .. v6}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->updateAppBarLayoutDrawableState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IIZ)V
|
|
|
|
.line 22
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->getTopAndBottomOffset()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2, v0}, Lcom/google/android/material/appbar/AppBarLayout;->onOffsetChanged(I)V
|
|
|
|
.line 23
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->updateAccessibilityActions(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
return p3
|
|
.end method
|
|
|
|
.method public bridge synthetic onMeasureChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;IIII)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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual/range {p0 .. p6}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onMeasureChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IIII)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onMeasureChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IIII)Z
|
|
.locals 6
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;IIII)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
|
|
.line 3
|
|
iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
|
|
|
const/4 v1, -0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
.line 4
|
|
invoke-static {p5, p5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v4
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v1, p2
|
|
|
|
move v2, p3
|
|
|
|
move v3, p4
|
|
|
|
move v5, p6
|
|
|
|
.line 5
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onMeasureChild(Landroid/view/View;IIII)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-super/range {p0 .. p6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onMeasureChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;IIII)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic onNestedPreScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;II[II)V
|
|
.locals 0
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual/range {p0 .. p7}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onNestedPreScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;II[II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedPreScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;II[II)V
|
|
.locals 6
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;",
|
|
"Landroid/view/View;",
|
|
"II[II)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
if-gez p5, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result p4
|
|
|
|
neg-int p4, p4
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getDownNestedPreScrollRange()I
|
|
|
|
move-result p7
|
|
|
|
add-int/2addr p7, p4
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getUpNestedPreScrollRange()I
|
|
|
|
move-result p4
|
|
|
|
neg-int p4, p4
|
|
|
|
const/4 p7, 0x0
|
|
|
|
:goto_0
|
|
move v4, p4
|
|
|
|
move v5, p7
|
|
|
|
if-eq v4, v5, :cond_1
|
|
|
|
const/4 p4, 0x1
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v3, p5
|
|
|
|
.line 5
|
|
invoke-virtual/range {v0 .. v5}, Lcom/google/android/material/appbar/HeaderBehavior;->scroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;III)I
|
|
|
|
move-result p1
|
|
|
|
aput p1, p6, p4
|
|
|
|
.line 6
|
|
:cond_1
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->isLiftOnScroll()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 7
|
|
invoke-virtual {p2, p3}, Lcom/google/android/material/appbar/AppBarLayout;->shouldLift(Landroid/view/View;)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftedState(Z)Z
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;IIIII[I)V
|
|
.locals 0
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual/range {p0 .. p9}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;IIIII[I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;IIIII[I)V
|
|
.locals 6
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;",
|
|
"Landroid/view/View;",
|
|
"IIIII[I)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-gez p7, :cond_0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getDownNestedScrollRange()I
|
|
|
|
move-result p4
|
|
|
|
neg-int v4, p4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v3, p7
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lcom/google/android/material/appbar/HeaderBehavior;->scroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;III)I
|
|
|
|
move-result p4
|
|
|
|
aput p4, p9, p3
|
|
|
|
:cond_0
|
|
if-nez p7, :cond_1
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->updateAccessibilityActions(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/os/Parcelable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/os/Parcelable;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;",
|
|
"Landroid/os/Parcelable;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
instance-of v0, p3, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
check-cast p3, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;
|
|
|
|
.line 4
|
|
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 5
|
|
iget p1, p3, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;->firstVisibleChildIndex:I
|
|
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayout:I
|
|
|
|
.line 6
|
|
iget p1, p3, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;->firstVisibleChildPercentageShown:F
|
|
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayoutPerc:F
|
|
|
|
.line 7
|
|
iget-boolean p1, p3, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;->firstVisibleChildAtMinimumHeight:Z
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayoutIsMinHeight:Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
invoke-super {p0, p1, p2, p3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 9
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetToChildIndexOnLayout:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/os/Parcelable;
|
|
.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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)Landroid/os/Parcelable;
|
|
.locals 7
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;)",
|
|
"Landroid/os/Parcelable;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
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
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->getTopAndBottomOffset()I
|
|
|
|
move-result v0
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p2, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
.line 6
|
|
invoke-virtual {v4}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v5, v0
|
|
|
|
.line 7
|
|
invoke-virtual {v4}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v6
|
|
|
|
add-int/2addr v6, v0
|
|
|
|
if-gtz v6, :cond_1
|
|
|
|
if-ltz v5, :cond_1
|
|
|
|
.line 8
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 9
|
|
iput v3, v0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;->firstVisibleChildIndex:I
|
|
|
|
.line 10
|
|
invoke-static {v4}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
if-ne v5, p2, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_0
|
|
iput-boolean v2, v0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;->firstVisibleChildAtMinimumHeight:Z
|
|
|
|
int-to-float p1, v5
|
|
|
|
.line 11
|
|
invoke-virtual {v4}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
iput p1, v0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$SavedState;->firstVisibleChildPercentageShown:F
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic 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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual/range {p0 .. p6}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onStartNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;Landroid/view/View;II)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onStartNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;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 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.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;",
|
|
"TT;",
|
|
"Landroid/view/View;",
|
|
"Landroid/view/View;",
|
|
"II)Z"
|
|
}
|
|
.end annotation
|
|
|
|
and-int/lit8 p4, p5, 0x2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->isLiftOnScroll()Z
|
|
|
|
move-result p4
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->canScrollChildren(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 3
|
|
iget-object p2, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
:cond_2
|
|
const/4 p2, 0x0
|
|
|
|
.line 5
|
|
iput-object p2, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->lastNestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 6
|
|
iput p6, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->lastStartedType:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic onStopNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;I)V
|
|
.locals 0
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onStopNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStopNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;Landroid/view/View;I)V
|
|
.locals 1
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;",
|
|
"Landroid/view/View;",
|
|
"I)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->lastStartedType:I
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p4, v0, :cond_1
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->snapToChildIfNeeded(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->isLiftOnScroll()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p2, p3}, Lcom/google/android/material/appbar/AppBarLayout;->shouldLift(Landroid/view/View;)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftedState(Z)Z
|
|
|
|
.line 6
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {p1, p3}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->lastNestedScrollingChildRef:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDragCallback(Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->onDragCallback:Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior$BaseDragCallback;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic setHeaderTopBottomOffset(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;III)I
|
|
.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
|
|
|
|
.line 1
|
|
check-cast p2, Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
invoke-virtual/range {p0 .. p5}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->setHeaderTopBottomOffset(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;III)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setHeaderTopBottomOffset(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;III)I
|
|
.locals 8
|
|
.param p1 # Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/appbar/AppBarLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
|
|
"TT;III)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->getTopBottomOffsetForScrollingSibling()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p4, :cond_3
|
|
|
|
if-lt v0, p4, :cond_3
|
|
|
|
if-gt v0, p5, :cond_3
|
|
|
|
.line 3
|
|
invoke-static {p3, p4, p5}, Lj1/a;->e(III)I
|
|
|
|
move-result v5
|
|
|
|
if-eq v0, v5, :cond_4
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->hasChildWithInterpolator()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 5
|
|
invoke-direct {p0, p2, v5}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->interpolateOffset(Lcom/google/android/material/appbar/AppBarLayout;I)I
|
|
|
|
move-result p3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p3, v5
|
|
|
|
.line 6
|
|
:goto_0
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->setTopAndBottomOffset(I)Z
|
|
|
|
move-result p4
|
|
|
|
sub-int v1, v0, v5
|
|
|
|
sub-int p3, v5, p3
|
|
|
|
.line 7
|
|
iput p3, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetDelta:I
|
|
|
|
if-nez p4, :cond_1
|
|
|
|
.line 8
|
|
invoke-virtual {p2}, Lcom/google/android/material/appbar/AppBarLayout;->hasChildWithInterpolator()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 9
|
|
invoke-virtual {p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->dispatchDependentViewsChanged(Landroid/view/View;)V
|
|
|
|
.line 10
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/ViewOffsetBehavior;->getTopAndBottomOffset()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p2, p3}, Lcom/google/android/material/appbar/AppBarLayout;->onOffsetChanged(I)V
|
|
|
|
if-ge v5, v0, :cond_2
|
|
|
|
const/4 p3, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 p3, 0x1
|
|
|
|
:goto_1
|
|
move v6, p3
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
.line 11
|
|
invoke-direct/range {v2 .. v7}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->updateAppBarLayoutDrawableState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;IIZ)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 12
|
|
:cond_3
|
|
iput v1, p0, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->offsetDelta:I
|
|
|
|
.line 13
|
|
:cond_4
|
|
:goto_2
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;->updateAccessibilityActions(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
return v1
|
|
.end method
|