- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
1441 lines
37 KiB
Smali
1441 lines
37 KiB
Smali
.class public Landroidx/appcompat/widget/ActionBarContextView;
|
|
.super Landroidx/appcompat/widget/AbsActionBarView;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mClose:Landroid/view/View;
|
|
|
|
.field private mCloseButton:Landroid/view/View;
|
|
|
|
.field private mCloseItemLayout:I
|
|
|
|
.field private mCustomView:Landroid/view/View;
|
|
|
|
.field private mSubtitle:Ljava/lang/CharSequence;
|
|
|
|
.field private mSubtitleStyleRes:I
|
|
|
|
.field private mSubtitleView:Landroid/widget/TextView;
|
|
|
|
.field private mTitle:Ljava/lang/CharSequence;
|
|
|
|
.field private mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
.field private mTitleOptional:Z
|
|
|
|
.field private mTitleStyleRes:I
|
|
|
|
.field private mTitleView:Landroid/widget/TextView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 57
|
|
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/ActionBarContextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroidx/appcompat/R$attr;->actionModeStyle:I
|
|
|
|
.line 61
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/ActionBarContextView;-><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 2
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 66
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/AbsActionBarView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 68
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->ActionMode:[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
|
|
|
|
.line 70
|
|
sget p2, Landroidx/appcompat/R$styleable;->ActionMode_background:I
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 71
|
|
sget p2, Landroidx/appcompat/R$styleable;->ActionMode_titleTextStyle:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleStyleRes:I
|
|
|
|
.line 73
|
|
sget p2, Landroidx/appcompat/R$styleable;->ActionMode_subtitleTextStyle:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleStyleRes:I
|
|
|
|
.line 76
|
|
sget p2, Landroidx/appcompat/R$styleable;->ActionMode_height:I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getLayoutDimension(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/AbsActionBarView;->mContentHeight:I
|
|
|
|
.line 79
|
|
sget p2, Landroidx/appcompat/R$styleable;->ActionMode_closeItemLayout:I
|
|
|
|
sget p3, Landroidx/appcompat/R$layout;->abc_action_mode_close_item_material:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCloseItemLayout:I
|
|
|
|
.line 83
|
|
invoke-virtual {p1}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private initTitle()V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 136
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Landroidx/appcompat/R$layout;->abc_action_bar_title_item:I
|
|
|
|
.line 137
|
|
invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
.line 138
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/LinearLayout;
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
sget v1, Landroidx/appcompat/R$id;->action_bar_title:I
|
|
|
|
.line 139
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleView:Landroid/widget/TextView;
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
sget v1, Landroidx/appcompat/R$id;->action_bar_subtitle:I
|
|
|
|
.line 140
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleView:Landroid/widget/TextView;
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleStyleRes:I
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleView:Landroid/widget/TextView;
|
|
|
|
.line 142
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleStyleRes:I
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleStyleRes:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleView:Landroid/widget/TextView;
|
|
|
|
.line 145
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleStyleRes:I
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleView:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
.line 149
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleView:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitle:Ljava/lang/CharSequence;
|
|
|
|
.line 150
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
.line 152
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitle:Ljava/lang/CharSequence;
|
|
|
|
.line 153
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitleView:Landroid/widget/TextView;
|
|
|
|
const/16 v3, 0x8
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move v5, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v5, v3
|
|
|
|
.line 154
|
|
:goto_0
|
|
invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
:cond_3
|
|
move v3, v4
|
|
|
|
.line 155
|
|
:cond_4
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
.line 156
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
.line 157
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic animateToVisibility(I)V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AbsActionBarView;->animateToVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic canShowOverflowMenu()Z
|
|
.locals 1
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->canShowOverflowMenu()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public closeMode()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 195
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContextView;->killMode()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic dismissPopupMenus()V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->dismissPopupMenus()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 3
|
|
|
|
.line 238
|
|
new-instance v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, -0x2
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 2
|
|
|
|
.line 243
|
|
new-instance v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic getAnimatedVisibility()I
|
|
.locals 1
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->getAnimatedVisibility()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic getContentHeight()I
|
|
.locals 1
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->getContentHeight()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSubtitle()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitle:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTitle()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hideOverflowMenu()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 221
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->hideOverflowMenu()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public initForMode(Landroidx/appcompat/view/ActionMode;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 163
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCloseItemLayout:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 164
|
|
invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
.line 165
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 166
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
.line 167
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
sget v1, Landroidx/appcompat/R$id;->action_mode_close_button:I
|
|
|
|
.line 170
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCloseButton:Landroid/view/View;
|
|
|
|
.line 171
|
|
new-instance v1, Landroidx/appcompat/widget/ActionBarContextView$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Landroidx/appcompat/widget/ActionBarContextView$1;-><init>(Landroidx/appcompat/widget/ActionBarContextView;Landroidx/appcompat/view/ActionMode;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 178
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/ActionMode;->getMenu()Landroid/view/Menu;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 180
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->dismissPopupMenus()Z
|
|
|
|
.line 182
|
|
:cond_2
|
|
new-instance v0, Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/widget/ActionMenuPresenter;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 183
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ActionMenuPresenter;->setReserveOverflow(Z)V
|
|
|
|
.line 185
|
|
new-instance v0, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AbsActionBarView;->mPopupContext:Landroid/content/Context;
|
|
|
|
.line 187
|
|
invoke-virtual {p1, v1, v2}, Landroidx/appcompat/view/menu/MenuBuilder;->addMenuPresenter(Landroidx/appcompat/view/menu/MenuPresenter;Landroid/content/Context;)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
.line 188
|
|
invoke-virtual {p1, p0}, Landroidx/appcompat/widget/ActionMenuPresenter;->getMenuView(Landroid/view/ViewGroup;)Landroidx/appcompat/view/menu/MenuView;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AbsActionBarView;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 189
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AbsActionBarView;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
.line 190
|
|
invoke-virtual {p0, p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic isOverflowMenuShowPending()Z
|
|
.locals 1
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->isOverflowMenuShowPending()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isOverflowMenuShowing()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 229
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->isOverflowMenuShowing()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic isOverflowReserved()Z
|
|
.locals 1
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->isOverflowReserved()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isTitleOptional()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleOptional:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public killMode()V
|
|
.locals 2
|
|
|
|
.line 201
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->removeAllViews()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCloseButton:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 206
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
.line 88
|
|
invoke-super {p0}, Landroid/view/View;->onDetachedFromWindow()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 90
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->hideOverflowMenu()Z
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
.line 91
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->hideSubMenus()Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AbsActionBarView;->onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onLayout(ZIIII)V
|
|
.locals 9
|
|
|
|
.line 328
|
|
invoke-static {p0}, Landroidx/appcompat/widget/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sub-int v0, p4, p2
|
|
|
|
.line 329
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
.line 330
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result v6
|
|
|
|
sub-int/2addr p5, p3
|
|
|
|
.line 331
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p5, p3
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
move-result p3
|
|
|
|
sub-int p3, p5, p3
|
|
|
|
iget-object p5, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
const/16 v7, 0x8
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
.line 333
|
|
invoke-virtual {p5}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result p5
|
|
|
|
if-eq p5, v7, :cond_3
|
|
|
|
iget-object p5, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
.line 334
|
|
invoke-virtual {p5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p5
|
|
|
|
check-cast p5, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 335
|
|
iget v1, p5, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget v1, p5, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
:goto_1
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 336
|
|
iget p5, p5, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget p5, p5, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
.line 337
|
|
:goto_2
|
|
invoke-static {v0, v1, p1}, Landroidx/appcompat/widget/AbsActionBarView;->next(IIZ)I
|
|
|
|
move-result v8
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
move-object v0, p0
|
|
|
|
move v2, v8
|
|
|
|
move v3, v6
|
|
|
|
move v4, p3
|
|
|
|
move v5, p1
|
|
|
|
.line 338
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/appcompat/widget/AbsActionBarView;->positionChild(Landroid/view/View;IIIZ)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v8, v0
|
|
|
|
.line 339
|
|
invoke-static {v8, p5, p1}, Landroidx/appcompat/widget/AbsActionBarView;->next(IIZ)I
|
|
|
|
move-result v0
|
|
|
|
:cond_3
|
|
move p5, v0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
.line 342
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v7, :cond_4
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
move-object v0, p0
|
|
|
|
move v2, p5
|
|
|
|
move v3, v6
|
|
|
|
move v4, p3
|
|
|
|
move v5, p1
|
|
|
|
.line 343
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/appcompat/widget/AbsActionBarView;->positionChild(Landroid/view/View;IIIZ)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr p5, v0
|
|
|
|
:cond_4
|
|
move v2, p5
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
move-object v0, p0
|
|
|
|
move v3, v6
|
|
|
|
move v4, p3
|
|
|
|
move v5, p1
|
|
|
|
.line 347
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/appcompat/widget/AbsActionBarView;->positionChild(Landroid/view/View;IIIZ)I
|
|
|
|
:cond_5
|
|
if-eqz p1, :cond_6
|
|
|
|
.line 350
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result p2
|
|
|
|
move v3, p2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
sub-int/2addr p4, p2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
move v3, p4
|
|
|
|
:goto_3
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AbsActionBarView;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
xor-int/lit8 p1, p1, 0x1
|
|
|
|
move-object v1, p0
|
|
|
|
move v4, v6
|
|
|
|
move v5, p3
|
|
|
|
move v6, p1
|
|
|
|
.line 353
|
|
invoke-virtual/range {v1 .. v6}, Landroidx/appcompat/widget/AbsActionBarView;->positionChild(Landroid/view/View;IIIZ)I
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 10
|
|
|
|
.line 248
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
if-ne v0, v1, :cond_11
|
|
|
|
.line 254
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
.line 260
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p1
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mContentHeight:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 263
|
|
:cond_0
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 265
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr p2, v2
|
|
|
|
.line 266
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result v2
|
|
|
|
sub-int v2, p1, v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
sub-int v3, v0, p2
|
|
|
|
const/high16 v4, -0x80000000
|
|
|
|
.line 268
|
|
invoke-static {v3, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v5
|
|
|
|
iget-object v6, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
.line 271
|
|
invoke-virtual {p0, v6, v2, v5, v7}, Landroidx/appcompat/widget/AbsActionBarView;->measureChildView(Landroid/view/View;III)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v6, p0, Landroidx/appcompat/widget/ActionBarContextView;->mClose:Landroid/view/View;
|
|
|
|
.line 272
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
.line 273
|
|
iget v8, v6, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
iget v6, v6, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v8, v6
|
|
|
|
sub-int/2addr v2, v8
|
|
|
|
:cond_1
|
|
iget-object v6, p0, Landroidx/appcompat/widget/AbsActionBarView;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 276
|
|
invoke-virtual {v6}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v6
|
|
|
|
if-ne v6, p0, :cond_2
|
|
|
|
iget-object v6, p0, Landroidx/appcompat/widget/AbsActionBarView;->mMenuView:Landroidx/appcompat/widget/ActionMenuView;
|
|
|
|
.line 277
|
|
invoke-virtual {p0, v6, v2, v5, v7}, Landroidx/appcompat/widget/AbsActionBarView;->measureChildView(Landroid/view/View;III)I
|
|
|
|
move-result v2
|
|
|
|
:cond_2
|
|
iget-object v6, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
iget-object v8, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
if-nez v8, :cond_7
|
|
|
|
iget-boolean v8, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleOptional:Z
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
.line 283
|
|
invoke-static {v7, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v6
|
|
|
|
iget-object v8, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
.line 284
|
|
invoke-virtual {v8, v6, v5}, Landroid/view/View;->measure(II)V
|
|
|
|
iget-object v5, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
.line 285
|
|
invoke-virtual {v5}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v5
|
|
|
|
if-gt v5, v2, :cond_3
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v6, v7
|
|
|
|
:goto_1
|
|
if-eqz v6, :cond_4
|
|
|
|
sub-int/2addr v2, v5
|
|
|
|
:cond_4
|
|
iget-object v5, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
move v6, v7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const/16 v6, 0x8
|
|
|
|
.line 290
|
|
:goto_2
|
|
invoke-virtual {v5, v6}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 292
|
|
:cond_6
|
|
invoke-virtual {p0, v6, v2, v5, v7}, Landroidx/appcompat/widget/AbsActionBarView;->measureChildView(Landroid/view/View;III)I
|
|
|
|
move-result v2
|
|
|
|
:cond_7
|
|
:goto_3
|
|
iget-object v5, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
if-eqz v5, :cond_c
|
|
|
|
.line 297
|
|
invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v5
|
|
|
|
.line 298
|
|
iget v6, v5, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
const/4 v8, -0x2
|
|
|
|
if-eq v6, v8, :cond_8
|
|
|
|
move v9, v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
move v9, v4
|
|
|
|
:goto_4
|
|
if-ltz v6, :cond_9
|
|
|
|
.line 301
|
|
invoke-static {v6, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
.line 302
|
|
:cond_9
|
|
iget v5, v5, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
if-eq v5, v8, :cond_a
|
|
|
|
goto :goto_5
|
|
|
|
:cond_a
|
|
move v1, v4
|
|
|
|
:goto_5
|
|
if-ltz v5, :cond_b
|
|
|
|
.line 305
|
|
invoke-static {v5, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v3
|
|
|
|
:cond_b
|
|
iget-object v4, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
.line 306
|
|
invoke-static {v2, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
.line 307
|
|
invoke-static {v3, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 306
|
|
invoke-virtual {v4, v2, v1}, Landroid/view/View;->measure(II)V
|
|
|
|
:cond_c
|
|
iget v1, p0, Landroidx/appcompat/widget/AbsActionBarView;->mContentHeight:I
|
|
|
|
if-gtz v1, :cond_f
|
|
|
|
.line 312
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
move v1, v7
|
|
|
|
:goto_6
|
|
if-ge v7, v0, :cond_e
|
|
|
|
.line 314
|
|
invoke-virtual {p0, v7}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 315
|
|
invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, p2
|
|
|
|
if-le v2, v1, :cond_d
|
|
|
|
move v1, v2
|
|
|
|
:cond_d
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
.line 320
|
|
:cond_e
|
|
invoke-virtual {p0, p1, v1}, Landroid/view/View;->setMeasuredDimension(II)V
|
|
|
|
goto :goto_7
|
|
|
|
.line 322
|
|
:cond_f
|
|
invoke-virtual {p0, p1, v0}, Landroid/view/View;->setMeasuredDimension(II)V
|
|
|
|
:goto_7
|
|
return-void
|
|
|
|
.line 256
|
|
:cond_10
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " can only be used with android:layout_height=\"wrap_content\""
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 250
|
|
:cond_11
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " can only be used with android:layout_width=\"match_parent\" (or fill_parent)"
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public bridge synthetic onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AbsActionBarView;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic postShowOverflowMenu()V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AbsActionBarView;->postShowOverflowMenu()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContentHeight(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/AbsActionBarView;->mContentHeight:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCustomView(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 102
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
:cond_0
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mCustomView:Landroid/view/View;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 106
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleLayout:Landroid/widget/LinearLayout;
|
|
|
|
:cond_1
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 110
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
.line 112
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitle(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mSubtitle:Ljava/lang/CharSequence;
|
|
|
|
.line 123
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/ActionBarContextView;->initTitle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitle(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
.line 117
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/ActionBarContextView;->initTitle()V
|
|
|
|
.line 118
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->setAccessibilityPaneTitle(Landroid/view/View;Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitleOptional(Z)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleOptional:Z
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 364
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
:cond_0
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContextView;->mTitleOptional:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic setVisibility(I)V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AbsActionBarView;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic setupAnimatorToVisibility(IJ)Landroidx/core/view/ViewPropertyAnimatorCompat;
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0, p1, p2, p3}, Landroidx/appcompat/widget/AbsActionBarView;->setupAnimatorToVisibility(IJ)Landroidx/core/view/ViewPropertyAnimatorCompat;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public shouldDelayChildPressedState()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public showOverflowMenu()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AbsActionBarView;->mActionMenuPresenter:Landroidx/appcompat/widget/ActionMenuPresenter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 213
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->showOverflowMenu()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|