2558 lines
61 KiB
Smali
2558 lines
61 KiB
Smali
.class public Lcom/google/android/material/appbar/AppBarLayout;
|
|
.super Landroid/widget/LinearLayout;
|
|
.source "AppBarLayout.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/coordinatorlayout/widget/CoordinatorLayout$b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/appbar/AppBarLayout$ScrollingViewBehavior;,
|
|
Lcom/google/android/material/appbar/AppBarLayout$BaseBehavior;,
|
|
Lcom/google/android/material/appbar/AppBarLayout$Behavior;,
|
|
Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;,
|
|
Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;,
|
|
Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final DEF_STYLE_RES:I
|
|
|
|
.field private static final INVALID_SCROLL_RANGE:I = -0x1
|
|
|
|
.field public static final PENDING_ACTION_ANIMATE_ENABLED:I = 0x4
|
|
|
|
.field public static final PENDING_ACTION_COLLAPSED:I = 0x2
|
|
|
|
.field public static final PENDING_ACTION_EXPANDED:I = 0x1
|
|
|
|
.field public static final PENDING_ACTION_FORCE:I = 0x8
|
|
|
|
.field public static final PENDING_ACTION_NONE:I
|
|
|
|
|
|
# instance fields
|
|
.field private currentOffset:I
|
|
|
|
.field private downPreScrollRange:I
|
|
|
|
.field private downScrollRange:I
|
|
|
|
.field private elevationOverlayAnimator:Landroid/animation/ValueAnimator;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private haveChildWithInterpolator:Z
|
|
|
|
.field private lastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private liftOnScroll:Z
|
|
|
|
.field private liftOnScrollTargetView: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 liftOnScrollTargetViewId:I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private liftable:Z
|
|
|
|
.field private liftableOverride:Z
|
|
|
|
.field private lifted:Z
|
|
|
|
.field private listeners:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private pendingAction:I
|
|
|
|
.field private statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private tmpStatesArray:[I
|
|
|
|
.field private totalScrollRange:I
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_Design_AppBarLayout:I
|
|
|
|
sput v0, Lcom/google/android/material/appbar/AppBarLayout;->DEF_STYLE_RES:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/appbar/AppBarLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
.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 2
|
|
sget v0, Lcom/google/android/material/R$attr;->appBarLayoutStyle:I
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/appbar/AppBarLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 9
|
|
.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 3
|
|
sget v4, Lcom/google/android/material/appbar/AppBarLayout;->DEF_STYLE_RES:I
|
|
|
|
invoke-static {p1, p2, p3, v4}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->wrap(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 4
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->totalScrollRange:I
|
|
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->downPreScrollRange:I
|
|
|
|
.line 6
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->downScrollRange:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
.line 7
|
|
iput v6, p0, Lcom/google/android/material/appbar/AppBarLayout;->pendingAction:I
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v7
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/appbar/AppBarLayout;->setOrientation(I)V
|
|
|
|
.line 10
|
|
sget v8, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 11
|
|
invoke-static {p0}, Lcom/google/android/material/appbar/ViewUtilsLollipop;->setBoundsViewOutlineProvider(Landroid/view/View;)V
|
|
|
|
.line 12
|
|
invoke-static {p0, p2, p3, v4}, Lcom/google/android/material/appbar/ViewUtilsLollipop;->setStateListAnimatorFromAttrs(Landroid/view/View;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 13
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->AppBarLayout:[I
|
|
|
|
new-array v5, v6, [I
|
|
|
|
move-object v0, v7
|
|
|
|
move-object v1, p2
|
|
|
|
move v3, p3
|
|
|
|
.line 14
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p2
|
|
|
|
.line 15
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_android_background:I
|
|
|
|
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p3
|
|
|
|
instance-of p3, p3, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
.line 18
|
|
new-instance v0, Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>()V
|
|
|
|
.line 19
|
|
invoke-virtual {p3}, Landroid/graphics/drawable/ColorDrawable;->getColor()I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p3}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {v0, p3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setFillColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 20
|
|
invoke-virtual {v0, v7}, Lcom/google/android/material/shape/MaterialShapeDrawable;->initializeElevationOverlay(Landroid/content/Context;)V
|
|
|
|
.line 21
|
|
invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 22
|
|
:cond_0
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_expanded:I
|
|
|
|
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 23
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
.line 24
|
|
invoke-direct {p0, p3, v6, v6}, Lcom/google/android/material/appbar/AppBarLayout;->setExpanded(ZZZ)V
|
|
|
|
.line 25
|
|
:cond_1
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_elevation:I
|
|
|
|
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 26
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result p3
|
|
|
|
int-to-float p3, p3
|
|
|
|
.line 27
|
|
invoke-static {p0, p3}, Lcom/google/android/material/appbar/ViewUtilsLollipop;->setDefaultAppBarLayoutStateListAnimator(Landroid/view/View;F)V
|
|
|
|
:cond_2
|
|
const/16 p3, 0x1a
|
|
|
|
if-lt v8, p3, :cond_4
|
|
|
|
.line 28
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_android_keyboardNavigationCluster:I
|
|
|
|
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 29
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
.line 30
|
|
invoke-virtual {p0, p3}, Landroid/widget/LinearLayout;->setKeyboardNavigationCluster(Z)V
|
|
|
|
.line 31
|
|
:cond_3
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_android_touchscreenBlocksFocus:I
|
|
|
|
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 32
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
.line 33
|
|
invoke-virtual {p0, p3}, Landroid/widget/LinearLayout;->setTouchscreenBlocksFocus(Z)V
|
|
|
|
.line 34
|
|
:cond_4
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_liftOnScroll:I
|
|
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
iput-boolean p3, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScroll:Z
|
|
|
|
.line 35
|
|
sget p3, Lcom/google/android/material/R$styleable;->AppBarLayout_liftOnScrollTargetViewId:I
|
|
|
|
.line 36
|
|
invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetViewId:I
|
|
|
|
.line 37
|
|
sget p1, Lcom/google/android/material/R$styleable;->AppBarLayout_statusBarForeground:I
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setStatusBarForeground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 38
|
|
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 39
|
|
new-instance p1, Lcom/google/android/material/appbar/AppBarLayout$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/google/android/material/appbar/AppBarLayout$1;-><init>(Lcom/google/android/material/appbar/AppBarLayout;)V
|
|
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->a2(Landroid/view/View;Ls1/e0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private clearLiftOnScrollTargetView()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetView:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->clear()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetView:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private findLiftOnScrollTargetView(Landroid/view/View;)Landroid/view/View;
|
|
.locals 3
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetView:Ljava/lang/ref/WeakReference;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetViewId:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p1, v1
|
|
|
|
:goto_0
|
|
if-nez p1, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetViewId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_1
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 5
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetView:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 6
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetView:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Landroid/view/View;
|
|
|
|
:cond_3
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private hasCollapsibleChild()Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
invoke-virtual {v3}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->isCollapsible()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method private invalidateScrollRanges()V
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 1
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->totalScrollRange:I
|
|
|
|
.line 2
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->downPreScrollRange:I
|
|
|
|
.line 3
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->downScrollRange:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setExpanded(ZZZ)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x2
|
|
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
const/4 p2, 0x4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move p2, v0
|
|
|
|
:goto_1
|
|
or-int/2addr p1, p2
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
const/16 v0, 0x8
|
|
|
|
:cond_2
|
|
or-int/2addr p1, v0
|
|
|
|
.line 3
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->pendingAction:I
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setLiftableState(Z)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftable:Z
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftable:Z
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->refreshDrawableState()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private shouldDrawStatusBarForeground()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method private shouldOffsetFirstChild()Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
invoke-static {v0}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method private startLiftOnScrollElevationOverlayAnimation(Lcom/google/android/material/shape/MaterialShapeDrawable;Z)V
|
|
.locals 3
|
|
.param p1 # Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/material/R$dimen;->design_appbar_elevation:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v0
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
.line 2
|
|
:goto_1
|
|
iget-object p2, p0, Lcom/google/android/material/appbar/AppBarLayout;->elevationOverlayAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
:cond_2
|
|
const/4 p2, 0x2
|
|
|
|
new-array p2, p2, [F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput v2, p2, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aput v0, p2, v1
|
|
|
|
.line 4
|
|
invoke-static {p2}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/google/android/material/appbar/AppBarLayout;->elevationOverlayAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/material/R$integer;->app_bar_elevation_anim_duration:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getInteger(I)I
|
|
|
|
move-result v0
|
|
|
|
int-to-long v0, v0
|
|
|
|
.line 6
|
|
invoke-virtual {p2, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 7
|
|
iget-object p2, p0, Lcom/google/android/material/appbar/AppBarLayout;->elevationOverlayAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
sget-object v0, Lcom/google/android/material/animation/AnimationUtils;->LINEAR_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 8
|
|
iget-object p2, p0, Lcom/google/android/material/appbar/AppBarLayout;->elevationOverlayAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$2;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$2;-><init>(Lcom/google/android/material/appbar/AppBarLayout;Lcom/google/android/material/shape/MaterialShapeDrawable;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 9
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->elevationOverlayAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateWillNotDraw()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->shouldDrawStatusBarForeground()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setWillNotDraw(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public addOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;)V
|
|
.locals 0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->addOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
instance-of p1, p1, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
.locals 3
|
|
.param p1 # Landroid/graphics/Canvas;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->shouldDrawStatusBarForeground()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
iget v2, p0, Lcom/google/android/material/appbar/AppBarLayout;->currentOffset:I
|
|
|
|
neg-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/graphics/Canvas;->translate(FF)V
|
|
|
|
.line 5
|
|
iget-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 6
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public drawableStateChanged()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/LinearLayout;->drawableStateChanged()V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getDrawableState()[I
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->generateDefaultLayoutParams()Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic generateDefaultLayoutParams()Landroid/widget/LinearLayout$LayoutParams;
|
|
.locals 1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->generateDefaultLayoutParams()Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateDefaultLayoutParams()Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
.locals 3
|
|
|
|
.line 3
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, -0x2
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->generateLayoutParams(Landroid/util/AttributeSet;)Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/LinearLayout$LayoutParams;
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->generateLayoutParams(Landroid/util/AttributeSet;)Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/widget/LinearLayout$LayoutParams;
|
|
.locals 0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
.locals 2
|
|
|
|
.line 5
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
.locals 1
|
|
|
|
.line 6
|
|
instance-of v0, p1, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;-><init>(Landroid/widget/LinearLayout$LayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 9
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
.line 10
|
|
:cond_1
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior<",
|
|
"Lcom/google/android/material/appbar/AppBarLayout;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/appbar/AppBarLayout$Behavior;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/material/appbar/AppBarLayout$Behavior;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDownNestedPreScrollRange()I
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->downPreScrollRange:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ltz v0, :cond_6
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
.line 4
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
.line 5
|
|
invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v5
|
|
|
|
.line 6
|
|
iget v6, v4, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->scrollFlags:I
|
|
|
|
and-int/lit8 v7, v6, 0x5
|
|
|
|
const/4 v8, 0x5
|
|
|
|
if-ne v7, v8, :cond_4
|
|
|
|
.line 7
|
|
iget v7, v4, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
iget v4, v4, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v7, v4
|
|
|
|
and-int/lit8 v4, v6, 0x8
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 8
|
|
invoke-static {v3}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v4
|
|
|
|
:goto_1
|
|
add-int/2addr v4, v7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
and-int/lit8 v4, v6, 0x2
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 9
|
|
invoke-static {v3}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v4
|
|
|
|
sub-int v4, v5, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int v4, v7, v5
|
|
|
|
:goto_2
|
|
if-nez v0, :cond_3
|
|
|
|
.line 10
|
|
invoke-static {v3}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v5, v3
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v4
|
|
|
|
:cond_3
|
|
add-int/2addr v2, v4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
if-lez v2, :cond_5
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
:goto_3
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_6
|
|
:goto_4
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->downPreScrollRange:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getDownNestedScrollRange()I
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->downScrollRange:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_2
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v2}, 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 {v4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v6
|
|
|
|
.line 6
|
|
iget v7, v5, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
iget v8, v5, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v7, v8
|
|
|
|
add-int/2addr v7, v6
|
|
|
|
.line 7
|
|
iget v5, v5, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->scrollFlags:I
|
|
|
|
and-int/lit8 v6, v5, 0x1
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
add-int/2addr v3, v7
|
|
|
|
and-int/lit8 v5, v5, 0x2
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 8
|
|
invoke-static {v4}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v3, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_2
|
|
:goto_1
|
|
invoke-static {v1, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->downScrollRange:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLiftOnScrollTargetViewId()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetViewId:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getMinimumHeightForVisibleOverlappingContent()I
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v1, v1, 0x2
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-lt v1, v2, :cond_1
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
div-int/lit8 v0, v0, 0x3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPendingAction()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->pendingAction:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getStatusBarForeground()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTargetElevation()F
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getTopInset()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->lastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsCompat;->r()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getTotalScrollRange()I
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->totalScrollRange:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v2}, 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 {v4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v6
|
|
|
|
.line 6
|
|
iget v7, v5, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->scrollFlags:I
|
|
|
|
and-int/lit8 v8, v7, 0x1
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
.line 7
|
|
iget v8, v5, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v6, v8
|
|
|
|
iget v5, v5, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v6, v5
|
|
|
|
add-int/2addr v6, v3
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 8
|
|
invoke-static {v4}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v6, v3
|
|
|
|
:cond_1
|
|
move v3, v6
|
|
|
|
and-int/lit8 v5, v7, 0x2
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 10
|
|
invoke-static {v4}, Landroidx/core/view/ViewCompat;->e0(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v3, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_3
|
|
:goto_1
|
|
invoke-static {v1, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->totalScrollRange:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getUpNestedPreScrollRange()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasChildWithInterpolator()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->haveChildWithInterpolator:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasScrollableChildren()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
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 isLiftOnScroll()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScroll:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isLifted()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->lifted:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/LinearLayout;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
invoke-static {p0}, Lcom/google/android/material/shape/MaterialShapeUtils;->setParentAbsoluteElevation(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreateDrawableState(I)[I
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->tmpStatesArray:[I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
new-array v0, v0, [I
|
|
|
|
.line 2
|
|
iput-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->tmpStatesArray:[I
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->tmpStatesArray:[I
|
|
|
|
.line 4
|
|
array-length v1, v0
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->onCreateDrawableState(I)[I
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 5
|
|
iget-boolean v2, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftable:Z
|
|
|
|
sget v3, Lcom/google/android/material/R$attr;->state_liftable:I
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
neg-int v3, v3
|
|
|
|
:goto_0
|
|
aput v3, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 6
|
|
iget-boolean v3, p0, Lcom/google/android/material/appbar/AppBarLayout;->lifted:Z
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
sget v3, Lcom/google/android/material/R$attr;->state_lifted:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
sget v3, Lcom/google/android/material/R$attr;->state_lifted:I
|
|
|
|
neg-int v3, v3
|
|
|
|
:goto_1
|
|
aput v3, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 7
|
|
sget v3, Lcom/google/android/material/R$attr;->state_collapsible:I
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
neg-int v3, v3
|
|
|
|
:goto_2
|
|
aput v3, v0, v1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 8
|
|
iget-boolean v2, p0, Lcom/google/android/material/appbar/AppBarLayout;->lifted:Z
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
sget v2, Lcom/google/android/material/R$attr;->state_collapsed:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
sget v2, Lcom/google/android/material/R$attr;->state_collapsed:I
|
|
|
|
neg-int v2, v2
|
|
|
|
:goto_3
|
|
aput v2, v0, v1
|
|
|
|
.line 9
|
|
invoke-static {p1, v0}, Landroid/widget/LinearLayout;->mergeDrawableStates([I[I)[I
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/LinearLayout;->onDetachedFromWindow()V
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->clearLiftOnScrollTargetView()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onLayout(ZIIII)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super/range {p0 .. p5}, Landroid/widget/LinearLayout;->onLayout(ZIIII)V
|
|
|
|
.line 2
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result p1
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->shouldOffsetFirstChild()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result p1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p3, p2
|
|
|
|
:goto_0
|
|
if-ltz p3, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-static {p4, p1}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->invalidateScrollRanges()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 7
|
|
iput-boolean p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->haveChildWithInterpolator:Z
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
move p4, p1
|
|
|
|
:goto_1
|
|
if-ge p4, p3, :cond_2
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p5
|
|
|
|
.line 10
|
|
invoke-virtual {p5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p5
|
|
|
|
check-cast p5, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;
|
|
|
|
.line 11
|
|
invoke-virtual {p5}, Lcom/google/android/material/appbar/AppBarLayout$LayoutParams;->getScrollInterpolator()Landroid/view/animation/Interpolator;
|
|
|
|
move-result-object p5
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
.line 12
|
|
iput-boolean p2, p0, Lcom/google/android/material/appbar/AppBarLayout;->haveChildWithInterpolator:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
add-int/lit8 p4, p4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 13
|
|
:cond_2
|
|
:goto_2
|
|
iget-object p3, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
.line 14
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getWidth()I
|
|
|
|
move-result p4
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result p5
|
|
|
|
invoke-virtual {p3, p1, p1, p4, p5}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 15
|
|
:cond_3
|
|
iget-boolean p3, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftableOverride:Z
|
|
|
|
if-nez p3, :cond_6
|
|
|
|
.line 16
|
|
iget-boolean p3, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScroll:Z
|
|
|
|
if-nez p3, :cond_5
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->hasCollapsibleChild()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
move p2, p1
|
|
|
|
:cond_5
|
|
:goto_3
|
|
invoke-direct {p0, p2}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftableState(Z)Z
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/widget/LinearLayout;->onMeasure(II)V
|
|
|
|
.line 2
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p1
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
.line 3
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->shouldOffsetFirstChild()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getMeasuredHeight()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/appbar/AppBarLayout;->getTopInset()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p2
|
|
|
|
.line 8
|
|
invoke-static {v0, p1, p2}, Lj1/a;->e(III)I
|
|
|
|
move-result v0
|
|
|
|
.line 9
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1, v0}, Landroid/widget/LinearLayout;->setMeasuredDimension(II)V
|
|
|
|
.line 10
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->invalidateScrollRanges()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onOffsetChanged(I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->currentOffset:I
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->willNotDraw()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->n1(Landroid/view/View;)V
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 5
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 6
|
|
iget-object v2, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 7
|
|
invoke-interface {v2, p0, p1}, Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;->onOffsetChanged(Lcom/google/android/material/appbar/AppBarLayout;I)V
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onWindowInsetChanged(Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->U(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout;->lastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-static {v1, v0}, Lr1/h;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->lastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->updateWillNotDraw()V
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->requestLayout()V
|
|
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public removeOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->listeners:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->removeOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$BaseOnOffsetChangedListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public resetPendingAction()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
iput v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->pendingAction:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setElevation(F)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->setElevation(F)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lcom/google/android/material/shape/MaterialShapeUtils;->setElevation(Landroid/view/View;F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExpanded(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->U0(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/appbar/AppBarLayout;->setExpanded(ZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExpanded(ZZ)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/appbar/AppBarLayout;->setExpanded(ZZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLiftOnScroll(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScroll:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLiftOnScrollTargetViewId(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScrollTargetViewId:I
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->clearLiftOnScrollTargetView()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLiftable(Z)Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
iput-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftableOverride:Z
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftableState(Z)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setLifted(Z)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setLiftedState(Z)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setLiftedState(Z)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->lifted:Z
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->lifted:Z
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->refreshDrawableState()V
|
|
|
|
.line 4
|
|
iget-boolean v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->liftOnScroll:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->startLiftOnScrollElevationOverlayAnimation(Lcom/google/android/material/shape/MaterialShapeDrawable;Z)V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setOrientation(I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "AppBarLayout is always vertical and does not support horizontal orientation"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setStatusBarForeground(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eq v0, p1, :cond_5
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_1
|
|
iput-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 4
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getDrawableState()[I
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
.line 6
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->Z(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Ld1/c;->m(Landroid/graphics/drawable/Drawable;I)Z
|
|
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
invoke-virtual {p1, v0, v1}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
.line 8
|
|
iget-object p1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p1, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
|
|
|
|
.line 9
|
|
:cond_4
|
|
invoke-direct {p0}, Lcom/google/android/material/appbar/AppBarLayout;->updateWillNotDraw()V
|
|
|
|
.line 10
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->n1(Landroid/view/View;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatusBarForegroundColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
invoke-direct {v0, p1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/appbar/AppBarLayout;->setStatusBarForeground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatusBarForegroundResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Lg/a;->d(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->setStatusBarForeground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTargetElevation(F)V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Lcom/google/android/material/appbar/ViewUtilsLollipop;->setDefaultAppBarLayoutStateListAnimator(Landroid/view/View;F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p1, v0
|
|
|
|
.line 2
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public shouldLift(Landroid/view/View;)Z
|
|
.locals 1
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/appbar/AppBarLayout;->findLiftOnScrollTargetView(Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p1, v0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_2
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getScrollY()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/appbar/AppBarLayout;->statusBarForeground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|