5561 lines
143 KiB
Smali
5561 lines
143 KiB
Smali
.class public Landroidx/appcompat/widget/Toolbar;
|
|
.super Landroid/view/ViewGroup;
|
|
.source "Toolbar.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;,
|
|
Landroidx/appcompat/widget/Toolbar$SavedState;,
|
|
Landroidx/appcompat/widget/Toolbar$LayoutParams;,
|
|
Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final TAG:Ljava/lang/String; = "Toolbar"
|
|
|
|
|
|
# instance fields
|
|
.field private mActionMenuPresenterCallback:Landroidx/appcompat/view/menu/MenuPresenter$Callback;
|
|
|
|
.field mButtonGravity:I
|
|
|
|
.field mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
.field private mCollapseDescription:Ljava/lang/CharSequence;
|
|
|
|
.field private mCollapseIcon:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field private mCollapsible:Z
|
|
|
|
.field private mContentInsetEndWithActions:I
|
|
|
|
.field private mContentInsetStartWithNavigation:I
|
|
|
|
.field private mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
.field private mEatingHover:Z
|
|
|
|
.field private mEatingTouch:Z
|
|
|
|
.field mExpandedActionView:Landroid/view/View;
|
|
|
|
.field private mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
.field private mGravity:I
|
|
|
|
.field private final mHiddenViews:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private mLogoView:Landroid/widget/ImageView;
|
|
|
|
.field private mMaxButtonHeight:I
|
|
|
|
.field private mMenuBuilderCallback:Landroidx/appcompat/view/menu/MenuBuilder$Callback;
|
|
|
|
.field private mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
.field private final mMenuViewItemClickListener:Landroidx/appcompat/widget/ActionMenuView$OnMenuItemClickListener;
|
|
|
|
.field private mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
.field mOnMenuItemClickListener:Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
|
|
|
|
.field private mOuterActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
.field private mPopupContext:Landroid/content/Context;
|
|
|
|
.field private mPopupTheme:I
|
|
|
|
.field private final mShowOverflowMenuRunnable:Ljava/lang/Runnable;
|
|
|
|
.field private mSubtitleText:Ljava/lang/CharSequence;
|
|
|
|
.field private mSubtitleTextAppearance:I
|
|
|
|
.field private mSubtitleTextColor:I
|
|
|
|
.field private mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
.field private final mTempMargins:[I
|
|
|
|
.field private final mTempViews:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private mTitleMarginBottom:I
|
|
|
|
.field private mTitleMarginEnd:I
|
|
|
|
.field private mTitleMarginStart:I
|
|
|
|
.field private mTitleMarginTop:I
|
|
|
|
.field private mTitleText:Ljava/lang/CharSequence;
|
|
|
|
.field private mTitleTextAppearance:I
|
|
|
|
.field private mTitleTextColor:I
|
|
|
|
.field private mTitleTextView:Landroid/widget/TextView;
|
|
|
|
.field private mWrapper:Landroidx/appcompat/widget/ToolbarWidgetWrapper;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/Toolbar;-><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 p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroidx/appcompat/R$attr;->toolbarStyle:I
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/Toolbar;-><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 6
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const p1, 0x800013
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mGravity:I
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
const/4 p1, 0x2
|
|
|
|
new-array p1, p1, [I
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mTempMargins:[I
|
|
|
|
new-instance p1, Landroidx/appcompat/widget/Toolbar$1;
|
|
|
|
invoke-direct {p1, p0}, Landroidx/appcompat/widget/Toolbar$1;-><init>(Landroidx/appcompat/widget/Toolbar;)V
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mMenuViewItemClickListener:Landroidx/appcompat/widget/ActionMenuView$OnMenuItemClickListener;
|
|
|
|
new-instance p1, Landroidx/appcompat/widget/Toolbar$2;
|
|
|
|
invoke-direct {p1, p0}, Landroidx/appcompat/widget/Toolbar$2;-><init>(Landroidx/appcompat/widget/Toolbar;)V
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mShowOverflowMenuRunnable:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->Toolbar:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p1, p2, v0, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleTextAppearance:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextAppearance:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_subtitleTextAppearance:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextAppearance:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_android_gravity:I
|
|
|
|
iget p3, p0, Landroidx/appcompat/widget/Toolbar;->mGravity:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getInteger(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mGravity:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_buttonGravity:I
|
|
|
|
const/16 p3, 0x30
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getInteger(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mButtonGravity:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleMargin:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
sget p3, Landroidx/appcompat/R$styleable;->Toolbar_titleMargins:I
|
|
|
|
invoke-virtual {p1, p3}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
sget p3, Landroidx/appcompat/R$styleable;->Toolbar_titleMargins:I
|
|
|
|
invoke-virtual {p1, p3, p2}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
:cond_0
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleMarginStart:I
|
|
|
|
const/4 p3, -0x1
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
if-ltz p2, :cond_1
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
:cond_1
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleMarginEnd:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
if-ltz p2, :cond_2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
:cond_2
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleMarginTop:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
if-ltz p2, :cond_3
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
:cond_3
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleMarginBottom:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
if-ltz p2, :cond_4
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
:cond_4
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_maxButtonHeight:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mMaxButtonHeight:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_contentInsetStart:I
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
sget v2, Landroidx/appcompat/R$styleable;->Toolbar_contentInsetEnd:I
|
|
|
|
invoke-virtual {p1, v2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result v2
|
|
|
|
sget v3, Landroidx/appcompat/R$styleable;->Toolbar_contentInsetLeft:I
|
|
|
|
invoke-virtual {p1, v3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v3
|
|
|
|
sget v4, Landroidx/appcompat/R$styleable;->Toolbar_contentInsetRight:I
|
|
|
|
invoke-virtual {p1, v4, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v4
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureContentInsets()V
|
|
|
|
iget-object v5, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
invoke-virtual {v5, v3, v4}, Landroidx/appcompat/widget/RtlSpacingHelper;->setAbsolute(II)V
|
|
|
|
if-ne p2, v0, :cond_5
|
|
|
|
if-eq v2, v0, :cond_6
|
|
|
|
:cond_5
|
|
iget-object v3, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
invoke-virtual {v3, p2, v2}, Landroidx/appcompat/widget/RtlSpacingHelper;->setRelative(II)V
|
|
|
|
:cond_6
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_contentInsetStartWithNavigation:I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetStartWithNavigation:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_contentInsetEndWithActions:I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetEndWithActions:I
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_collapseIcon:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseIcon:Landroid/graphics/drawable/Drawable;
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_collapseContentDescription:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseDescription:Ljava/lang/CharSequence;
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_title:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_7
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_subtitle:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setSubtitle(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_8
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_popupTheme:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setPopupTheme(I)V
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_navigationIcon:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setNavigationIcon(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_9
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_navigationContentDescription:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setNavigationContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_a
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_logo:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_b
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setLogo(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_b
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_logoDescription:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_c
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setLogoDescription(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_c
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleTextColor:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_d
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_titleTextColor:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getColor(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setTitleTextColor(I)V
|
|
|
|
:cond_d
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_subtitleTextColor:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_e
|
|
|
|
sget p2, Landroidx/appcompat/R$styleable;->Toolbar_subtitleTextColor:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getColor(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/Toolbar;->setSubtitleTextColor(I)V
|
|
|
|
:cond_e
|
|
invoke-virtual {p1}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private addCustomViewsWithGravity(Ljava/util/List;I)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getChildCount()I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {p2, v4}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->clear()V
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
:goto_1
|
|
if-ltz v3, :cond_2
|
|
|
|
invoke-virtual {p0, v3}, Landroidx/appcompat/widget/Toolbar;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v2, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget v1, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
|
|
|
|
invoke-direct {p0, v1}, Landroidx/appcompat/widget/Toolbar;->getChildHorizontalGravity(I)I
|
|
|
|
move-result v1
|
|
|
|
if-ne v1, p2, :cond_1
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v3, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
:cond_3
|
|
:goto_2
|
|
if-ge v1, v3, :cond_5
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/Toolbar;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v4, v2, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
iget v2, v2, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
|
|
|
|
invoke-direct {p0, v2}, Landroidx/appcompat/widget/Toolbar;->getChildHorizontalGravity(I)I
|
|
|
|
move-result v2
|
|
|
|
if-ne v2, p2, :cond_4
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_4
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method private addSystemView(Landroid/view/View;Z)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->generateDefaultLayoutParams()Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
check-cast v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
:goto_0
|
|
const/4 v1, 0x1
|
|
|
|
iput v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
iget-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/widget/Toolbar;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureContentInsets()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/RtlSpacingHelper;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureLogoView()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/AppCompatImageView;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureMenu()V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureMenuView()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->peekMenu()Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->getMenu()Landroid/view/Menu;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
invoke-direct {v1, p0}, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;-><init>(Landroidx/appcompat/widget/Toolbar;)V
|
|
|
|
iput-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/appcompat/widget/ActionMenuView;->setExpandedActionViewsExclusive(Z)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/appcompat/view/menu/MenuBuilder;->addMenuPresenter(Landroidx/appcompat/view/menu/MenuPresenter;Landroid/content/Context;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureMenuView()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/widget/ActionMenuView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iget v1, p0, Landroidx/appcompat/widget/Toolbar;->mPopupTheme:I
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ActionMenuView;->setPopupTheme(I)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mMenuViewItemClickListener:Landroidx/appcompat/widget/ActionMenuView$OnMenuItemClickListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ActionMenuView;->setOnMenuItemClickListener(Landroidx/appcompat/widget/ActionMenuView$OnMenuItemClickListener;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mActionMenuPresenterCallback:Landroidx/appcompat/view/menu/MenuPresenter$Callback;
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mMenuBuilderCallback:Landroidx/appcompat/view/menu/MenuBuilder$Callback;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/appcompat/widget/ActionMenuView;->setMenuCallbacks(Landroidx/appcompat/view/menu/MenuPresenter$Callback;Landroidx/appcompat/view/menu/MenuBuilder$Callback;)V
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->generateDefaultLayoutParams()Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x800005
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/Toolbar;->mButtonGravity:I
|
|
|
|
and-int/lit8 v2, v2, 0x70
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
iput v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/appcompat/widget/ActionMenuView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/Toolbar;->addSystemView(Landroid/view/View;Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureNavButtonView()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/AppCompatImageButton;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
sget v3, Landroidx/appcompat/R$attr;->toolbarNavigationButtonStyle:I
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Landroidx/appcompat/widget/AppCompatImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->generateDefaultLayoutParams()Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x800003
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/Toolbar;->mButtonGravity:I
|
|
|
|
and-int/lit8 v2, v2, 0x70
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
iput v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private getChildHorizontalGravity(I)I
|
|
.locals 4
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result p1
|
|
|
|
and-int/lit8 p1, p1, 0x7
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-eq p1, v2, :cond_1
|
|
|
|
const/4 v3, 0x5
|
|
|
|
if-eq p1, v3, :cond_1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
return v3
|
|
|
|
:cond_0
|
|
return v2
|
|
|
|
:cond_1
|
|
return p1
|
|
.end method
|
|
|
|
.method private getChildTop(Landroid/view/View;I)I
|
|
.locals 6
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
sub-int p2, p1, p2
|
|
|
|
div-int/lit8 p2, p2, 0x2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
iget v2, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
|
|
|
|
invoke-direct {p0, v2}, Landroidx/appcompat/widget/Toolbar;->getChildVerticalGravity(I)I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x30
|
|
|
|
if-eq v2, v3, :cond_4
|
|
|
|
const/16 v3, 0x50
|
|
|
|
if-eq v2, v3, :cond_3
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
sub-int v4, v3, p2
|
|
|
|
sub-int/2addr v4, v2
|
|
|
|
sub-int/2addr v4, p1
|
|
|
|
div-int/lit8 v4, v4, 0x2
|
|
|
|
iget v5, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
if-ge v4, v5, :cond_1
|
|
|
|
iget v4, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sub-int/2addr v3, v2
|
|
|
|
sub-int/2addr v3, p1
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
sub-int/2addr v3, p2
|
|
|
|
iget p1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
if-ge v3, p1, :cond_2
|
|
|
|
iget p1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr p1, v3
|
|
|
|
sub-int/2addr v4, p1
|
|
|
|
invoke-static {v1, v4}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v4
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/2addr p2, v4
|
|
|
|
return p2
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
iget p1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
sub-int/2addr v1, p2
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private getChildVerticalGravity(I)I
|
|
.locals 1
|
|
|
|
and-int/lit8 p1, p1, 0x70
|
|
|
|
const/16 v0, 0x10
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/16 v0, 0x30
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/16 v0, 0x50
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/Toolbar;->mGravity:I
|
|
|
|
and-int/lit8 p1, p1, 0x70
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
return p1
|
|
.end method
|
|
|
|
.method private getHorizontalMargins(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-static {p1}, Landroidx/core/view/MarginLayoutParamsCompat;->getMarginStart(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1}, Landroidx/core/view/MarginLayoutParamsCompat;->getMarginEnd(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private getMenuInflater()Landroid/view/MenuInflater;
|
|
.locals 2
|
|
|
|
new-instance v0, Landroidx/appcompat/view/SupportMenuInflater;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/view/SupportMenuInflater;-><init>(Landroid/content/Context;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getVerticalMargins(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
iget v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
iget p1, p1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private getViewListMeasuredWidth(Ljava/util/List;[I)I
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;[I)I"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aget v1, p2, v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget p2, p2, v2
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
move v4, p2
|
|
|
|
move v3, v1
|
|
|
|
const/4 p2, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge p2, v2, :cond_0
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Landroid/view/View;
|
|
|
|
invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v7, v6, Landroidx/appcompat/widget/Toolbar$LayoutParams;->leftMargin:I
|
|
|
|
sub-int/2addr v7, v3
|
|
|
|
iget v3, v6, Landroidx/appcompat/widget/Toolbar$LayoutParams;->rightMargin:I
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
invoke-static {v0, v7}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v0, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v6
|
|
|
|
neg-int v7, v7
|
|
|
|
invoke-static {v0, v7}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v7
|
|
|
|
neg-int v3, v3
|
|
|
|
invoke-static {v0, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v5}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
add-int/2addr v4, v6
|
|
|
|
add-int/2addr v1, v4
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
move v4, v3
|
|
|
|
move v3, v7
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method private isChildOrHidden(Landroid/view/View;)Z
|
|
.locals 1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-eq v0, p0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private static isCustomView(Landroid/view/View;)Z
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget p0, p0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private layoutChildLeft(Landroid/view/View;I[II)I
|
|
.locals 4
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->leftMargin:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget v3, p3, v2
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr p2, v3
|
|
|
|
neg-int v1, v1
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, p3, v2
|
|
|
|
invoke-direct {p0, p1, p4}, Landroidx/appcompat/widget/Toolbar;->getChildTop(Landroid/view/View;I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p4
|
|
|
|
add-int v1, p2, p4
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, p3
|
|
|
|
invoke-virtual {p1, p2, p3, v1, v2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
iget p1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr p4, p1
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method private layoutChildRight(Landroid/view/View;I[II)I
|
|
.locals 5
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->rightMargin:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget v3, p3, v2
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v3, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr p2, v4
|
|
|
|
neg-int v1, v1
|
|
|
|
invoke-static {v3, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, p3, v2
|
|
|
|
invoke-direct {p0, p1, p4}, Landroidx/appcompat/widget/Toolbar;->getChildTop(Landroid/view/View;I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p4
|
|
|
|
sub-int v1, p2, p4
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, p3
|
|
|
|
invoke-virtual {p1, v1, p3, p2, v2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
iget p1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr p4, p1
|
|
|
|
sub-int/2addr p2, p4
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method private measureChildCollapseMargins(Landroid/view/View;IIII[I)I
|
|
.locals 7
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget v3, p6, v2
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aget v5, p6, v4
|
|
|
|
sub-int/2addr v3, v5
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v6
|
|
|
|
add-int/2addr v5, v6
|
|
|
|
neg-int v1, v1
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, p6, v2
|
|
|
|
neg-int v1, v3
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, p6, v4
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingLeft()I
|
|
|
|
move-result p6
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingRight()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr p6, v1
|
|
|
|
add-int/2addr p6, v5
|
|
|
|
add-int/2addr p6, p3
|
|
|
|
iget p3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
|
|
|
invoke-static {p2, p6, p3}, Landroidx/appcompat/widget/Toolbar;->getChildMeasureSpec(III)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingBottom()I
|
|
|
|
move-result p6
|
|
|
|
add-int/2addr p3, p6
|
|
|
|
iget p6, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr p3, p6
|
|
|
|
iget p6, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr p3, p6
|
|
|
|
add-int/2addr p3, p5
|
|
|
|
iget p5, v0, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
|
|
|
invoke-static {p4, p3, p5}, Landroidx/appcompat/widget/Toolbar;->getChildMeasureSpec(III)I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p1, v5
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private measureChildConstrained(Landroid/view/View;IIIII)V
|
|
.locals 3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
add-int/2addr v1, p3
|
|
|
|
iget p3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
|
|
|
invoke-static {p2, v1, p3}, Landroidx/appcompat/widget/Toolbar;->getChildMeasureSpec(III)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingBottom()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr p3, v1
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr p3, v1
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr p3, v1
|
|
|
|
add-int/2addr p3, p5
|
|
|
|
iget p5, v0, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
|
|
|
invoke-static {p4, p3, p5}, Landroidx/appcompat/widget/Toolbar;->getChildMeasureSpec(III)I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p3}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p4
|
|
|
|
const/high16 p5, 0x40000000 # 2.0f
|
|
|
|
if-eq p4, p5, :cond_1
|
|
|
|
if-ltz p6, :cond_1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-static {p3}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p3, p6}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p6
|
|
|
|
:cond_0
|
|
invoke-static {p6, p5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p3
|
|
|
|
:cond_1
|
|
invoke-virtual {p1, p2, p3}, Landroid/view/View;->measure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private postShowOverflowMenu()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mShowOverflowMenuRunnable:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mShowOverflowMenuRunnable:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private shouldCollapse()Z
|
|
.locals 5
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/Toolbar;->mCollapsible:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_2
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/appcompat/widget/Toolbar;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {p0, v3}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v4
|
|
|
|
if-lez v4, :cond_1
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private shouldLayout(Landroid/view/View;)Z
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne v0, p0, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result p1
|
|
|
|
const/16 v0, 0x8
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method addChildrenForExpandedActionView()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:goto_0
|
|
if-ltz v0, :cond_0
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/View;
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/Toolbar;->addView(Landroid/view/View;)V
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public canShowOverflowMenu()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->isOverflowReserved()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
.locals 1
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
instance-of p1, p1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public collapseActionView()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;->mCurrentExpandedItem:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->collapseActionView()Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public dismissPopupMenus()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->dismissPopupMenus()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method ensureCollapseButtonView()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/AppCompatImageButton;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
sget v3, Landroidx/appcompat/R$attr;->toolbarNavigationButtonStyle:I
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Landroidx/appcompat/widget/AppCompatImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseIcon:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseDescription:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->generateDefaultLayoutParams()Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x800003
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/Toolbar;->mButtonGravity:I
|
|
|
|
and-int/lit8 v2, v2, 0x70
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
iput v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
iput v1, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
new-instance v1, Landroidx/appcompat/widget/Toolbar$3;
|
|
|
|
invoke-direct {v1, p0}, Landroidx/appcompat/widget/Toolbar$3;-><init>(Landroidx/appcompat/widget/Toolbar;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected bridge synthetic generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->generateDefaultLayoutParams()Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected generateDefaultLayoutParams()Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
.locals 2
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
invoke-direct {v0, v1, v1}, Landroidx/appcompat/widget/Toolbar$LayoutParams;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->generateLayoutParams(Landroid/util/AttributeSet;)Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected bridge synthetic generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
.locals 2
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Landroidx/appcompat/widget/Toolbar$LayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
.locals 1
|
|
|
|
instance-of v0, p1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
check-cast p1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/appcompat/widget/Toolbar$LayoutParams;-><init>(Landroidx/appcompat/widget/Toolbar$LayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
instance-of v0, p1, Landroidx/appcompat/app/ActionBar$LayoutParams;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
check-cast p1, Landroidx/appcompat/app/ActionBar$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/appcompat/widget/Toolbar$LayoutParams;-><init>(Landroidx/appcompat/app/ActionBar$LayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/appcompat/widget/Toolbar$LayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/appcompat/widget/Toolbar$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getContentInsetEnd()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/RtlSpacingHelper;->getEnd()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentInsetEndWithActions()I
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetEndWithActions:I
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContentInsetEnd()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentInsetLeft()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/RtlSpacingHelper;->getLeft()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentInsetRight()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/RtlSpacingHelper;->getRight()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentInsetStart()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/RtlSpacingHelper;->getStart()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentInsetStartWithNavigation()I
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetStartWithNavigation:I
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContentInsetStart()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCurrentContentInsetEnd()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->peekMenu()Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuBuilder;->hasVisibleItems()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContentInsetEnd()I
|
|
|
|
move-result v0
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetEndWithActions:I
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContentInsetEnd()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCurrentContentInsetLeft()I
|
|
.locals 2
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetEnd()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetStart()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCurrentContentInsetRight()I
|
|
.locals 2
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetStart()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetEnd()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCurrentContentInsetStart()I
|
|
.locals 3
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getNavigationIcon()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContentInsetStart()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetStartWithNavigation:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContentInsetStart()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLogo()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getLogoDescription()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMenu()Landroid/view/Menu;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureMenu()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->getMenu()Landroid/view/Menu;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getNavigationContentDescription()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageButton;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getNavigationIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageButton;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method getOuterActionMenuPresenter()Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mOuterActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getOverflowIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureMenu()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->getOverflowIcon()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method getPopupContext()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getPopupTheme()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mPopupTheme:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSubtitle()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleText:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTitle()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleText:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTitleMarginBottom()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTitleMarginEnd()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTitleMarginStart()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTitleMarginTop()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getWrapper()Landroidx/appcompat/widget/DecorToolbar;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mWrapper:Landroidx/appcompat/widget/ToolbarWidgetWrapper;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/ToolbarWidgetWrapper;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, p0, v1}, Landroidx/appcompat/widget/ToolbarWidgetWrapper;-><init>(Landroidx/appcompat/widget/Toolbar;Z)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mWrapper:Landroidx/appcompat/widget/ToolbarWidgetWrapper;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mWrapper:Landroidx/appcompat/widget/ToolbarWidgetWrapper;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hasExpandedActionView()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;->mCurrentExpandedItem:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hideOverflowMenu()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->hideOverflowMenu()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public inflateMenu(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/MenuRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->getMenuInflater()Landroid/view/MenuInflater;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getMenu()Landroid/view/Menu;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isOverflowMenuShowPending()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->isOverflowMenuShowPending()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isOverflowMenuShowing()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->isOverflowMenuShowing()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isTitleTruncated()Z
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Landroid/text/Layout;->getLineCount()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_3
|
|
|
|
invoke-virtual {v0, v3}, Landroid/text/Layout;->getEllipsisCount(I)I
|
|
|
|
move-result v4
|
|
|
|
if-lez v4, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method protected onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mShowOverflowMenuRunnable:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 5
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x9
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
iput-boolean v1, p0, Landroidx/appcompat/widget/Toolbar;->mEatingHover:Z
|
|
|
|
:cond_0
|
|
iget-boolean v3, p0, Landroidx/appcompat/widget/Toolbar;->mEatingHover:Z
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iput-boolean v4, p0, Landroidx/appcompat/widget/Toolbar;->mEatingHover:Z
|
|
|
|
:cond_1
|
|
const/16 p1, 0xa
|
|
|
|
if-eq v0, p1, :cond_2
|
|
|
|
const/4 p1, 0x3
|
|
|
|
if-ne v0, p1, :cond_3
|
|
|
|
:cond_2
|
|
iput-boolean v1, p0, Landroidx/appcompat/widget/Toolbar;->mEatingHover:Z
|
|
|
|
:cond_3
|
|
return v4
|
|
.end method
|
|
|
|
.method protected onLayout(ZIIII)V
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getWidth()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getHeight()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingLeft()I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingRight()I
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result v8
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingBottom()I
|
|
|
|
move-result v9
|
|
|
|
sub-int v10, v4, v7
|
|
|
|
iget-object v11, v0, Landroidx/appcompat/widget/Toolbar;->mTempMargins:[I
|
|
|
|
aput v3, v11, v2
|
|
|
|
aput v3, v11, v3
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getMinimumHeight(Landroid/view/View;)I
|
|
|
|
move-result v12
|
|
|
|
if-ltz v12, :cond_1
|
|
|
|
sub-int v13, p5, p3
|
|
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v12
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v12, 0x0
|
|
|
|
:goto_1
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v0, v13}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_3
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v0, v13, v10, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildRight(Landroid/view/View;I[II)I
|
|
|
|
move-result v13
|
|
|
|
move v14, v13
|
|
|
|
move v13, v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v0, v13, v6, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v13
|
|
|
|
move v14, v10
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move v13, v6
|
|
|
|
move v14, v10
|
|
|
|
:goto_2
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v0, v15}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v15
|
|
|
|
if-eqz v15, :cond_5
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v0, v15, v14, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildRight(Landroid/view/View;I[II)I
|
|
|
|
move-result v14
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v0, v15, v13, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v13
|
|
|
|
:cond_5
|
|
:goto_3
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-direct {v0, v15}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v15
|
|
|
|
if-eqz v15, :cond_7
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-direct {v0, v15, v13, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v13
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-direct {v0, v15, v14, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildRight(Landroid/view/View;I[II)I
|
|
|
|
move-result v14
|
|
|
|
:cond_7
|
|
:goto_4
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetLeft()I
|
|
|
|
move-result v15
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetRight()I
|
|
|
|
move-result v16
|
|
|
|
sub-int v2, v15, v13
|
|
|
|
invoke-static {v3, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
aput v2, v11, v3
|
|
|
|
sub-int v2, v10, v14
|
|
|
|
sub-int v2, v16, v2
|
|
|
|
invoke-static {v3, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
const/16 v17, 0x1
|
|
|
|
aput v2, v11, v17
|
|
|
|
invoke-static {v13, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
sub-int v10, v10, v16
|
|
|
|
invoke-static {v14, v10}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v10
|
|
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-direct {v0, v13}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_9
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-direct {v0, v13, v10, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildRight(Landroid/view/View;I[II)I
|
|
|
|
move-result v10
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-direct {v0, v13, v2, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v2
|
|
|
|
:cond_9
|
|
:goto_5
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v0, v13}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_b
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v0, v13, v10, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildRight(Landroid/view/View;I[II)I
|
|
|
|
move-result v10
|
|
|
|
goto :goto_6
|
|
|
|
:cond_a
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v0, v13, v2, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v2
|
|
|
|
:cond_b
|
|
:goto_6
|
|
iget-object v13, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v0, v13}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v13
|
|
|
|
iget-object v14, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v0, v14}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v13, :cond_c
|
|
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v15}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v15
|
|
|
|
check-cast v15, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v3, v15, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
move/from16 p4, v7
|
|
|
|
iget-object v7, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v7}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v3, v7
|
|
|
|
iget v7, v15, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v3, v7
|
|
|
|
const/4 v7, 0x0
|
|
|
|
add-int/2addr v3, v7
|
|
|
|
goto :goto_7
|
|
|
|
:cond_c
|
|
move/from16 p4, v7
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_7
|
|
if-eqz v14, :cond_d
|
|
|
|
iget-object v7, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v7}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v15, v7, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
move/from16 v16, v4
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v4}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v15, v4
|
|
|
|
iget v4, v7, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v15, v4
|
|
|
|
add-int/2addr v3, v15
|
|
|
|
goto :goto_8
|
|
|
|
:cond_d
|
|
move/from16 v16, v4
|
|
|
|
:goto_8
|
|
if-nez v13, :cond_f
|
|
|
|
if-eqz v14, :cond_e
|
|
|
|
goto :goto_9
|
|
|
|
:cond_e
|
|
move/from16 v17, v6
|
|
|
|
move/from16 p3, v12
|
|
|
|
const/4 v7, 0x0
|
|
|
|
goto/16 :goto_15
|
|
|
|
:cond_f
|
|
:goto_9
|
|
if-eqz v13, :cond_10
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
goto :goto_a
|
|
|
|
:cond_10
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
:goto_a
|
|
if-eqz v14, :cond_11
|
|
|
|
iget-object v7, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
goto :goto_b
|
|
|
|
:cond_11
|
|
iget-object v7, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
:goto_b
|
|
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
if-eqz v13, :cond_12
|
|
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v15}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v15
|
|
|
|
if-gtz v15, :cond_13
|
|
|
|
:cond_12
|
|
if-eqz v14, :cond_14
|
|
|
|
iget-object v15, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v15}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v15
|
|
|
|
if-lez v15, :cond_14
|
|
|
|
:cond_13
|
|
move/from16 v17, v6
|
|
|
|
const/4 v15, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_14
|
|
move/from16 v17, v6
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_c
|
|
iget v6, v0, Landroidx/appcompat/widget/Toolbar;->mGravity:I
|
|
|
|
and-int/lit8 v6, v6, 0x70
|
|
|
|
move/from16 p3, v12
|
|
|
|
const/16 v12, 0x30
|
|
|
|
if-eq v6, v12, :cond_18
|
|
|
|
const/16 v12, 0x50
|
|
|
|
if-eq v6, v12, :cond_17
|
|
|
|
sub-int v6, v5, v8
|
|
|
|
sub-int/2addr v6, v9
|
|
|
|
sub-int/2addr v6, v3
|
|
|
|
div-int/lit8 v6, v6, 0x2
|
|
|
|
iget v12, v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
move/from16 p5, v2
|
|
|
|
iget v2, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
add-int/2addr v12, v2
|
|
|
|
if-ge v6, v12, :cond_15
|
|
|
|
iget v2, v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
add-int v6, v2, v3
|
|
|
|
goto :goto_d
|
|
|
|
:cond_15
|
|
sub-int/2addr v5, v9
|
|
|
|
sub-int/2addr v5, v3
|
|
|
|
sub-int/2addr v5, v6
|
|
|
|
sub-int/2addr v5, v8
|
|
|
|
iget v2, v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
if-ge v5, v2, :cond_16
|
|
|
|
iget v2, v7, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
sub-int/2addr v2, v5
|
|
|
|
sub-int/2addr v6, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v2, v6}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v6
|
|
|
|
:cond_16
|
|
:goto_d
|
|
add-int/2addr v8, v6
|
|
|
|
goto :goto_e
|
|
|
|
:cond_17
|
|
move/from16 p5, v2
|
|
|
|
sub-int/2addr v5, v9
|
|
|
|
iget v2, v7, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v5, v2
|
|
|
|
iget v2, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
sub-int/2addr v5, v2
|
|
|
|
sub-int v8, v5, v3
|
|
|
|
goto :goto_e
|
|
|
|
:cond_18
|
|
move/from16 p5, v2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result v2
|
|
|
|
iget v3, v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
add-int v8, v2, v3
|
|
|
|
:goto_e
|
|
if-eqz v1, :cond_1d
|
|
|
|
if-eqz v15, :cond_19
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_f
|
|
|
|
:cond_19
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_f
|
|
aget v2, v11, v1
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v10, v4
|
|
|
|
neg-int v3, v3
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
aput v3, v11, v1
|
|
|
|
if-eqz v13, :cond_1a
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget-object v2, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v2
|
|
|
|
sub-int v2, v10, v2
|
|
|
|
iget-object v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v3}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v8
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v4, v2, v8, v10, v3}, Landroid/widget/TextView;->layout(IIII)V
|
|
|
|
iget v4, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
iget v1, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
add-int v8, v3, v1
|
|
|
|
goto :goto_10
|
|
|
|
:cond_1a
|
|
move v2, v10
|
|
|
|
:goto_10
|
|
if-eqz v14, :cond_1b
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v3, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v8, v3
|
|
|
|
iget-object v3, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v3}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v3
|
|
|
|
sub-int v3, v10, v3
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v4}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v4, v8
|
|
|
|
iget-object v5, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v5, v3, v8, v10, v4}, Landroid/widget/TextView;->layout(IIII)V
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
sub-int v3, v10, v3
|
|
|
|
iget v1, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
goto :goto_11
|
|
|
|
:cond_1b
|
|
move v3, v10
|
|
|
|
:goto_11
|
|
if-eqz v15, :cond_1c
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
move v10, v1
|
|
|
|
:cond_1c
|
|
move/from16 v2, p5
|
|
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_15
|
|
|
|
:cond_1d
|
|
if-eqz v15, :cond_1e
|
|
|
|
iget v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
goto :goto_12
|
|
|
|
:cond_1e
|
|
const/4 v3, 0x0
|
|
|
|
:goto_12
|
|
const/4 v7, 0x0
|
|
|
|
aget v1, v11, v7
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
invoke-static {v7, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
add-int v2, p5, v1
|
|
|
|
neg-int v1, v3
|
|
|
|
invoke-static {v7, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, v11, v7
|
|
|
|
if-eqz v13, :cond_1f
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget-object v3, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v3}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v4}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v4, v8
|
|
|
|
iget-object v5, v0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v5, v2, v8, v3, v4}, Landroid/widget/TextView;->layout(IIII)V
|
|
|
|
iget v5, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
add-int/2addr v3, v5
|
|
|
|
iget v1, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
add-int v8, v4, v1
|
|
|
|
goto :goto_13
|
|
|
|
:cond_1f
|
|
move v3, v2
|
|
|
|
:goto_13
|
|
if-eqz v14, :cond_20
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v4, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v8, v4
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v4}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
iget-object v5, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v5}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v5, v8
|
|
|
|
iget-object v6, v0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v6, v2, v8, v4, v5}, Landroid/widget/TextView;->layout(IIII)V
|
|
|
|
iget v5, v0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
iget v1, v1, Landroidx/appcompat/widget/Toolbar$LayoutParams;->bottomMargin:I
|
|
|
|
goto :goto_14
|
|
|
|
:cond_20
|
|
move v4, v2
|
|
|
|
:goto_14
|
|
if-eqz v15, :cond_21
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
:cond_21
|
|
:goto_15
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
const/4 v3, 0x3
|
|
|
|
invoke-direct {v0, v1, v3}, Landroidx/appcompat/widget/Toolbar;->addCustomViewsWithGravity(Ljava/util/List;I)V
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
move v3, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_16
|
|
if-ge v2, v1, :cond_22
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/view/View;
|
|
|
|
move/from16 v12, p3
|
|
|
|
invoke-direct {v0, v4, v3, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v3
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_16
|
|
|
|
:cond_22
|
|
move/from16 v12, p3
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
const/4 v2, 0x5
|
|
|
|
invoke-direct {v0, v1, v2}, Landroidx/appcompat/widget/Toolbar;->addCustomViewsWithGravity(Ljava/util/List;I)V
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_17
|
|
if-ge v2, v1, :cond_23
|
|
|
|
iget-object v4, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/view/View;
|
|
|
|
invoke-direct {v0, v4, v10, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildRight(Landroid/view/View;I[II)I
|
|
|
|
move-result v10
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_17
|
|
|
|
:cond_23
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v0, v1, v2}, Landroidx/appcompat/widget/Toolbar;->addCustomViewsWithGravity(Ljava/util/List;I)V
|
|
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0, v1, v11}, Landroidx/appcompat/widget/Toolbar;->getViewListMeasuredWidth(Ljava/util/List;[I)I
|
|
|
|
move-result v1
|
|
|
|
sub-int v4, v16, v17
|
|
|
|
sub-int v4, v4, p4
|
|
|
|
div-int/lit8 v4, v4, 0x2
|
|
|
|
add-int v6, v17, v4
|
|
|
|
div-int/lit8 v2, v1, 0x2
|
|
|
|
sub-int v2, v6, v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
if-ge v2, v3, :cond_24
|
|
|
|
goto :goto_18
|
|
|
|
:cond_24
|
|
if-le v1, v10, :cond_25
|
|
|
|
sub-int/2addr v1, v10
|
|
|
|
sub-int v3, v2, v1
|
|
|
|
goto :goto_18
|
|
|
|
:cond_25
|
|
move v3, v2
|
|
|
|
:goto_18
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
:goto_19
|
|
if-ge v7, v1, :cond_26
|
|
|
|
iget-object v2, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/View;
|
|
|
|
invoke-direct {v0, v2, v3, v11, v12}, Landroidx/appcompat/widget/Toolbar;->layoutChildLeft(Landroid/view/View;I[II)I
|
|
|
|
move-result v3
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_19
|
|
|
|
:cond_26
|
|
iget-object v1, v0, Landroidx/appcompat/widget/Toolbar;->mTempViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onMeasure(II)V
|
|
.locals 16
|
|
|
|
move-object/from16 v7, p0
|
|
|
|
iget-object v8, v7, Landroidx/appcompat/widget/Toolbar;->mTempMargins:[I
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/appcompat/widget/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const/4 v11, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x1
|
|
|
|
:goto_0
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v7, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
iget v6, v7, Landroidx/appcompat/widget/Toolbar;->mMaxButtonHeight:I
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move/from16 v4, p2
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildConstrained(Landroid/view/View;IIIII)V
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageButton;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getHorizontalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v7, v2}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-static {v9, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/ImageButton;->getMeasuredState()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v9, v2}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v2
|
|
|
|
move v12, v1
|
|
|
|
move v13, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
:goto_1
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
iget v6, v7, Landroidx/appcompat/widget/Toolbar;->mMaxButtonHeight:I
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move/from16 v4, p2
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildConstrained(Landroid/view/View;IIIII)V
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageButton;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getHorizontalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {v7, v2}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-static {v12, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v12
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mCollapseButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getMeasuredState()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v13, v1}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v13
|
|
|
|
:cond_2
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetStart()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v14, v2, 0x0
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
invoke-static {v9, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
aput v0, v8, v10
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-direct {v7, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
iget v6, v7, Landroidx/appcompat/widget/Toolbar;->mMaxButtonHeight:I
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move v3, v14
|
|
|
|
move/from16 v4, p2
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildConstrained(Landroid/view/View;IIIII)V
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getHorizontalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/ActionMenuView;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-direct {v7, v2}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-static {v12, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v12
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/ActionMenuView;->getMeasuredState()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v13, v1}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v13
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getCurrentContentInsetEnd()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
add-int v10, v14, v2
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
invoke-static {v9, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
aput v0, v8, v11
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-direct {v7, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move v3, v10
|
|
|
|
move/from16 v4, p2
|
|
|
|
move-object v6, v8
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildCollapseMargins(Landroid/view/View;IIII[I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v10, v0
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
invoke-static {v12, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v12
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mExpandedActionView:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v13, v0}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v13
|
|
|
|
:cond_4
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v7, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move v3, v10
|
|
|
|
move/from16 v4, p2
|
|
|
|
move-object v6, v8
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildCollapseMargins(Landroid/view/View;IIII[I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v10, v0
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
invoke-static {v12, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v12
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getMeasuredState()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v13, v0}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v13
|
|
|
|
:cond_5
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getChildCount()I
|
|
|
|
move-result v11
|
|
|
|
move v14, v12
|
|
|
|
move v12, v10
|
|
|
|
const/4 v10, 0x0
|
|
|
|
:goto_3
|
|
if-ge v10, v11, :cond_7
|
|
|
|
invoke-virtual {v7, v10}, Landroidx/appcompat/widget/Toolbar;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v15
|
|
|
|
invoke-virtual {v15}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v0, v0, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
invoke-direct {v7, v15}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object v1, v15
|
|
|
|
move/from16 v2, p1
|
|
|
|
move v3, v12
|
|
|
|
move/from16 v4, p2
|
|
|
|
move-object v6, v8
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildCollapseMargins(Landroid/view/View;IIII[I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v12, v0
|
|
|
|
invoke-virtual {v15}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {v7, v15}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
invoke-static {v14, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v15}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v13, v1}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v1
|
|
|
|
move v14, v0
|
|
|
|
move v13, v1
|
|
|
|
:cond_6
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
iget v0, v7, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
iget v1, v7, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
add-int v10, v0, v1
|
|
|
|
iget v0, v7, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
iget v1, v7, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
add-int v11, v0, v1
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v7, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
add-int v3, v12, v11
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move/from16 v4, p2
|
|
|
|
move v5, v10
|
|
|
|
move-object v6, v8
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildCollapseMargins(Landroid/view/View;IIII[I)I
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getHorizontalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v7, v2}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getMeasuredState()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v13, v2}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v13
|
|
|
|
move v15, v1
|
|
|
|
move v6, v13
|
|
|
|
move v13, v0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
move v6, v13
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_4
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v7, v0}, Landroidx/appcompat/widget/Toolbar;->shouldLayout(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
add-int v3, v12, v11
|
|
|
|
add-int v5, v15, v10
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v2, p1
|
|
|
|
move/from16 v4, p2
|
|
|
|
move v10, v6
|
|
|
|
move-object v6, v8
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/Toolbar;->measureChildCollapseMargins(Landroid/view/View;IIII[I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v13, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v13
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {v7, v1}, Landroidx/appcompat/widget/Toolbar;->getVerticalMargins(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
add-int/2addr v15, v0
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getMeasuredState()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v10, v0}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
move v10, v6
|
|
|
|
:goto_5
|
|
add-int/2addr v12, v13
|
|
|
|
invoke-static {v14, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
add-int/2addr v12, v1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getSuggestedMinimumWidth()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v12, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
const/high16 v2, -0x1000000
|
|
|
|
and-int/2addr v2, v6
|
|
|
|
move/from16 v3, p1
|
|
|
|
invoke-static {v1, v3, v2}, Landroid/view/View;->resolveSizeAndState(III)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->getSuggestedMinimumHeight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
shl-int/lit8 v2, v6, 0x10
|
|
|
|
move/from16 v3, p2
|
|
|
|
invoke-static {v0, v3, v2}, Landroid/view/View;->resolveSizeAndState(III)I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct/range {p0 .. p0}, Landroidx/appcompat/widget/Toolbar;->shouldCollapse()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_a
|
|
invoke-virtual {v7, v1, v0}, Landroidx/appcompat/widget/Toolbar;->setMeasuredDimension(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 2
|
|
|
|
instance-of v0, p1, Landroidx/appcompat/widget/Toolbar$SavedState;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
check-cast p1, Landroidx/appcompat/widget/Toolbar$SavedState;
|
|
|
|
invoke-virtual {p1}, Landroidx/appcompat/widget/Toolbar$SavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->peekMenu()Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget v1, p1, Landroidx/appcompat/widget/Toolbar$SavedState;->expandedMenuItemId:I
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget v1, p1, Landroidx/appcompat/widget/Toolbar$SavedState;->expandedMenuItemId:I
|
|
|
|
invoke-interface {v0, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {v0}, Landroid/view/MenuItem;->expandActionView()Z
|
|
|
|
:cond_2
|
|
iget-boolean p1, p1, Landroidx/appcompat/widget/Toolbar$SavedState;->isOverflowOpen:Z
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->postShowOverflowMenu()V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRtlPropertiesChanged(I)V
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRtlPropertiesChanged(I)V
|
|
|
|
:cond_0
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureContentInsets()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne p1, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/RtlSpacingHelper;->setDirection(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 2
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$SavedState;
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/widget/Toolbar$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, v1, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;->mCurrentExpandedItem:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
iget-object v1, v1, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;->mCurrentExpandedItem:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getItemId()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroidx/appcompat/widget/Toolbar$SavedState;->expandedMenuItemId:I
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->isOverflowMenuShowing()Z
|
|
|
|
move-result v1
|
|
|
|
iput-boolean v1, v0, Landroidx/appcompat/widget/Toolbar$SavedState;->isOverflowOpen:Z
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 4
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput-boolean v1, p0, Landroidx/appcompat/widget/Toolbar;->mEatingTouch:Z
|
|
|
|
:cond_0
|
|
iget-boolean v2, p0, Landroidx/appcompat/widget/Toolbar;->mEatingTouch:Z
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iput-boolean v3, p0, Landroidx/appcompat/widget/Toolbar;->mEatingTouch:Z
|
|
|
|
:cond_1
|
|
if-eq v0, v3, :cond_2
|
|
|
|
const/4 p1, 0x3
|
|
|
|
if-ne v0, p1, :cond_3
|
|
|
|
:cond_2
|
|
iput-boolean v1, p0, Landroidx/appcompat/widget/Toolbar;->mEatingTouch:Z
|
|
|
|
:cond_3
|
|
return v3
|
|
.end method
|
|
|
|
.method removeChildrenForExpandedActionView()V
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:goto_0
|
|
if-ltz v0, :cond_1
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/appcompat/widget/Toolbar$LayoutParams;
|
|
|
|
iget v2, v2, Landroidx/appcompat/widget/Toolbar$LayoutParams;->mViewType:I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeViewAt(I)V
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCollapsible(Z)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/Toolbar;->mCollapsible:Z
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContentInsetEndWithActions(I)V
|
|
.locals 1
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetEndWithActions:I
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetEndWithActions:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getNavigationIcon()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContentInsetStartWithNavigation(I)V
|
|
.locals 1
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/high16 p1, -0x80000000
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetStartWithNavigation:I
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsetStartWithNavigation:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getNavigationIcon()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContentInsetsAbsolute(II)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureContentInsets()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/RtlSpacingHelper;->setAbsolute(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContentInsetsRelative(II)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureContentInsets()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mContentInsets:Landroidx/appcompat/widget/RtlSpacingHelper;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/RtlSpacingHelper;->setRelative(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLogo(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setLogo(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLogo(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureLogoView()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/Toolbar;->addSystemView(Landroid/view/View;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeView(Landroid/view/View;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLogoDescription(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setLogoDescription(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLogoDescription(Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureLogoView()V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mLogoView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMenu(Landroidx/appcompat/view/menu/MenuBuilder;Landroidx/appcompat/widget/ActionMenuPresenter;)V
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureMenuView()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->peekMenu()Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne v0, p1, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mOuterActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/view/menu/MenuBuilder;->removeMenuPresenter(Landroidx/appcompat/view/menu/MenuPresenter;)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/view/menu/MenuBuilder;->removeMenuPresenter(Landroidx/appcompat/view/menu/MenuPresenter;)V
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;-><init>(Landroidx/appcompat/widget/Toolbar;)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
:cond_3
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->setExpandedActionViewsExclusive(Z)V
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroidx/appcompat/view/menu/MenuBuilder;->addMenuPresenter(Landroidx/appcompat/view/menu/MenuPresenter;Landroid/content/Context;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroidx/appcompat/view/menu/MenuBuilder;->addMenuPresenter(Landroidx/appcompat/view/menu/MenuPresenter;Landroid/content/Context;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p2, p1, v1}, Landroidx/appcompat/widget/ActionMenuPresenter;->initForMenu(Landroid/content/Context;Landroidx/appcompat/view/menu/MenuBuilder;)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, v2, v1}, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;->initForMenu(Landroid/content/Context;Landroidx/appcompat/view/menu/MenuBuilder;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->updateMenuView(Z)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mExpandedMenuPresenter:Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/Toolbar$ExpandedActionViewMenuPresenter;->updateMenuView(Z)V
|
|
|
|
:goto_0
|
|
iget-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mPopupTheme:I
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ActionMenuView;->setPopupTheme(I)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/ActionMenuView;->setPresenter(Landroidx/appcompat/widget/ActionMenuPresenter;)V
|
|
|
|
iput-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mOuterActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMenuCallbacks(Landroidx/appcompat/view/menu/MenuPresenter$Callback;Landroidx/appcompat/view/menu/MenuBuilder$Callback;)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mActionMenuPresenterCallback:Landroidx/appcompat/view/menu/MenuPresenter$Callback;
|
|
|
|
iput-object p2, p0, Landroidx/appcompat/widget/Toolbar;->mMenuBuilderCallback:Landroidx/appcompat/view/menu/MenuBuilder$Callback;
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/ActionMenuView;->setMenuCallbacks(Landroidx/appcompat/view/menu/MenuPresenter$Callback;Landroidx/appcompat/view/menu/MenuBuilder$Callback;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNavigationContentDescription(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setNavigationContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNavigationContentDescription(Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/CharSequence;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureNavButtonView()V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageButton;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNavigationIcon(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setNavigationIcon(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNavigationIcon(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureNavButtonView()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/Toolbar;->addSystemView(Landroid/view/View;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeView(Landroid/view/View;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNavigationOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureNavButtonView()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mNavButtonView:Landroid/widget/ImageButton;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnMenuItemClickListener(Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mOnMenuItemClickListener:Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOverflowIcon(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/Toolbar;->ensureMenu()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/ActionMenuView;->setOverflowIcon(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPopupTheme(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StyleRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mPopupTheme:I
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mPopupTheme:I
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Landroid/view/ContextThemeWrapper;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mPopupContext:Landroid/content/Context;
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitle(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setSubtitle(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitle(Ljava/lang/CharSequence;)V
|
|
.locals 3
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->setSingleLine()V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
sget-object v2, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
|
|
|
|
iget v1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextAppearance:I
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2, v0, v1}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextColor:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/Toolbar;->addSystemView(Landroid/view/View;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeView(Landroid/view/View;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_3
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_4
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleText:Ljava/lang/CharSequence;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitleTextAppearance(Landroid/content/Context;I)V
|
|
.locals 1
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StyleRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextAppearance:I
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitleTextColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextColor:I
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mSubtitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitle(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitle(Ljava/lang/CharSequence;)V
|
|
.locals 3
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->setSingleLine()V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
sget-object v2, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
|
|
|
|
iget v1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextAppearance:I
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2, v0, v1}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextColor:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/Toolbar;->addSystemView(Landroid/view/View;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-direct {p0, v0}, Landroidx/appcompat/widget/Toolbar;->isChildOrHidden(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/Toolbar;->removeView(Landroid/view/View;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mHiddenViews:Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_3
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_4
|
|
iput-object p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleText:Ljava/lang/CharSequence;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleMargin(IIII)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
iput p3, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
iput p4, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleMarginBottom(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginBottom:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleMarginEnd(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginEnd:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleMarginStart(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginStart:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleMarginTop(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleMarginTop:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleTextAppearance(Landroid/content/Context;I)V
|
|
.locals 1
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StyleRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextAppearance:I
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleTextColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextColor:I
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mTitleTextView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public showOverflowMenu()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/Toolbar;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->showOverflowMenu()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|