ToolbarActionBar.smali
.class Landroidx/appcompat/app/ToolbarActionBar;
.super Landroidx/appcompat/app/ActionBar;
.source "ToolbarActionBar.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/app/ToolbarActionBar$MenuBuilderCallback;,
Landroidx/appcompat/app/ToolbarActionBar$ActionMenuPresenterCallback;,
Landroidx/appcompat/app/ToolbarActionBar$ToolbarCallbackWrapper;
}
.end annotation
# instance fields
.field mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
.field private mLastMenuVisibility:Z
.field private mMenuCallbackSet:Z
.field private final mMenuClicker:Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
.field private final mMenuInvalidator:Ljava/lang/Runnable;
.field private mMenuVisibilityListeners:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/appcompat/app/ActionBar$OnMenuVisibilityListener;",
">;"
}
.end annotation
.end field
.field mToolbarMenuPrepared:Z
.field mWindowCallback:Landroid/view/Window$Callback;
# direct methods
.method constructor <init>(Landroidx/appcompat/widget/Toolbar;Ljava/lang/CharSequence;Landroid/view/Window$Callback;)V
.registers 7
.line 68
invoke-direct {p0}, Landroidx/appcompat/app/ActionBar;-><init>()V
.line 51
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuVisibilityListeners:Ljava/util/ArrayList;
.line 53
new-instance v0, Landroidx/appcompat/app/ToolbarActionBar$1;
invoke-direct {v0, p0}, Landroidx/appcompat/app/ToolbarActionBar$1;-><init>(Landroidx/appcompat/app/ToolbarActionBar;)V
iput-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuInvalidator:Ljava/lang/Runnable;
.line 60
new-instance v0, Landroidx/appcompat/app/ToolbarActionBar$2;
invoke-direct {v0, p0}, Landroidx/appcompat/app/ToolbarActionBar$2;-><init>(Landroidx/appcompat/app/ToolbarActionBar;)V
iput-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuClicker:Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
.line 69
new-instance v1, Landroidx/appcompat/widget/ToolbarWidgetWrapper;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Landroidx/appcompat/widget/ToolbarWidgetWrapper;-><init>(Landroidx/appcompat/widget/Toolbar;Z)V
iput-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
.line 70
new-instance v1, Landroidx/appcompat/app/ToolbarActionBar$ToolbarCallbackWrapper;
invoke-direct {v1, p0, p3}, Landroidx/appcompat/app/ToolbarActionBar$ToolbarCallbackWrapper;-><init>(Landroidx/appcompat/app/ToolbarActionBar;Landroid/view/Window$Callback;)V
iput-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mWindowCallback:Landroid/view/Window$Callback;
.line 71
iget-object p3, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {p3, v1}, Landroidx/appcompat/widget/DecorToolbar;->setWindowCallback(Landroid/view/Window$Callback;)V
.line 72
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/Toolbar;->setOnMenuItemClickListener(Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;)V
.line 73
iget-object p1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {p1, p2}, Landroidx/appcompat/widget/DecorToolbar;->setWindowTitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method private getMenu()Landroid/view/Menu;
.registers 4
.line 543
iget-boolean v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuCallbackSet:Z
if-nez v0, :cond_16
.line 544
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
new-instance v1, Landroidx/appcompat/app/ToolbarActionBar$ActionMenuPresenterCallback;
invoke-direct {v1, p0}, Landroidx/appcompat/app/ToolbarActionBar$ActionMenuPresenterCallback;-><init>(Landroidx/appcompat/app/ToolbarActionBar;)V
new-instance v2, Landroidx/appcompat/app/ToolbarActionBar$MenuBuilderCallback;
invoke-direct {v2, p0}, Landroidx/appcompat/app/ToolbarActionBar$MenuBuilderCallback;-><init>(Landroidx/appcompat/app/ToolbarActionBar;)V
invoke-interface {v0, v1, v2}, Landroidx/appcompat/widget/DecorToolbar;->setMenuCallbacks(Landroidx/appcompat/view/menu/MenuPresenter$Callback;Landroidx/appcompat/view/menu/MenuBuilder$Callback;)V
const/4 v0, 0x1
.line 546
iput-boolean v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuCallbackSet:Z
.line 548
:cond_16
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getMenu()Landroid/view/Menu;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public addOnMenuVisibilityListener(Landroidx/appcompat/app/ActionBar$OnMenuVisibilityListener;)V
.registers 3
.line 494
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuVisibilityListeners:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public addTab(Landroidx/appcompat/app/ActionBar$Tab;)V
.registers 3
.line 334
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public addTab(Landroidx/appcompat/app/ActionBar$Tab;I)V
.registers 3
.line 346
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public addTab(Landroidx/appcompat/app/ActionBar$Tab;IZ)V
.registers 4
.line 352
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public addTab(Landroidx/appcompat/app/ActionBar$Tab;Z)V
.registers 3
.line 340
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public closeOptionsMenu()Z
.registers 2
.line 428
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->hideOverflowMenu()Z
move-result v0
return v0
.end method
.method public collapseActionView()Z
.registers 2
.line 440
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->hasExpandedActionView()Z
move-result v0
if-eqz v0, :cond_f
.line 441
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->collapseActionView()V
const/4 v0, 0x1
return v0
:cond_f
const/4 v0, 0x0
return v0
.end method
.method public dispatchMenuVisibilityChanged(Z)V
.registers 5
.line 504
iget-boolean v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mLastMenuVisibility:Z
if-ne p1, v0, :cond_5
return-void
.line 507
:cond_5
iput-boolean p1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mLastMenuVisibility:Z
.line 509
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuVisibilityListeners:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
const/4 v1, 0x0
:goto_e
if-ge v1, v0, :cond_1e
.line 511
iget-object v2, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuVisibilityListeners:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/appcompat/app/ActionBar$OnMenuVisibilityListener;
invoke-interface {v2, p1}, Landroidx/appcompat/app/ActionBar$OnMenuVisibilityListener;->onMenuVisibilityChanged(Z)V
add-int/lit8 v1, v1, 0x1
goto :goto_e
:cond_1e
return-void
.end method
.method public getCustomView()Landroid/view/View;
.registers 2
.line 295
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getCustomView()Landroid/view/View;
move-result-object v0
return-object v0
.end method
.method public getDisplayOptions()I
.registers 2
.line 323
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getDisplayOptions()I
move-result v0
return v0
.end method
.method public getElevation()F
.registers 2
.line 141
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v0
invoke-static {v0}, Landroidx/core/view/ViewCompat;->getElevation(Landroid/view/View;)F
move-result v0
return v0
.end method
.method public getHeight()I
.registers 2
.line 399
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getHeight()I
move-result v0
return v0
.end method
.method public getNavigationItemCount()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public getNavigationMode()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public getSelectedNavigationIndex()I
.registers 2
const/4 v0, -0x1
return v0
.end method
.method public getSelectedTab()Landroidx/appcompat/app/ActionBar$Tab;
.registers 3
.line 382
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Tabs are not supported in toolbar action bars"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getSubtitle()Ljava/lang/CharSequence;
.registers 2
.line 305
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getSubtitle()Ljava/lang/CharSequence;
move-result-object v0
return-object v0
.end method
.method public getTabAt(I)Landroidx/appcompat/app/ActionBar$Tab;
.registers 3
.line 388
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public getTabCount()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public getThemedContext()Landroid/content/Context;
.registers 2
.line 146
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getContext()Landroid/content/Context;
move-result-object v0
return-object v0
.end method
.method public getTitle()Ljava/lang/CharSequence;
.registers 2
.line 300
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getTitle()Ljava/lang/CharSequence;
move-result-object v0
return-object v0
.end method
.method public getWrappedWindowCallback()Landroid/view/Window$Callback;
.registers 2
.line 77
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mWindowCallback:Landroid/view/Window$Callback;
return-object v0
.end method
.method public hide()V
.registers 3
.line 413
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
const/16 v1, 0x8
invoke-interface {v0, v1}, Landroidx/appcompat/widget/DecorToolbar;->setVisibility(I)V
return-void
.end method
.method public invalidateOptionsMenu()Z
.registers 3
.line 433
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v0
iget-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuInvalidator:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeCallbacks(Ljava/lang/Runnable;)Z
.line 434
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v0
iget-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuInvalidator:Ljava/lang/Runnable;
invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
const/4 v0, 0x1
return v0
.end method
.method public isShowing()Z
.registers 2
.line 418
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getVisibility()I
move-result v0
if-nez v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method
.method public isTitleTruncated()Z
.registers 2
.line 151
invoke-super {p0}, Landroidx/appcompat/app/ActionBar;->isTitleTruncated()Z
move-result v0
return v0
.end method
.method public newTab()Landroidx/appcompat/app/ActionBar$Tab;
.registers 3
.line 328
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Tabs are not supported in toolbar action bars"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.registers 2
.line 186
invoke-super {p0, p1}, Landroidx/appcompat/app/ActionBar;->onConfigurationChanged(Landroid/content/res/Configuration;)V
return-void
.end method
.method onDestroy()V
.registers 3
.line 489
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v0
iget-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuInvalidator:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeCallbacks(Ljava/lang/Runnable;)Z
return-void
.end method
.method public onKeyShortcut(ILandroid/view/KeyEvent;)Z
.registers 7
.line 476
invoke-direct {p0}, Landroidx/appcompat/app/ToolbarActionBar;->getMenu()Landroid/view/Menu;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_24
if-eqz p2, :cond_e
.line 479
invoke-virtual {p2}, Landroid/view/KeyEvent;->getDeviceId()I
move-result v2
goto :goto_f
:cond_e
const/4 v2, -0x1
.line 478
:goto_f
invoke-static {v2}, Landroid/view/KeyCharacterMap;->load(I)Landroid/view/KeyCharacterMap;
move-result-object v2
.line 480
invoke-virtual {v2}, Landroid/view/KeyCharacterMap;->getKeyboardType()I
move-result v2
const/4 v3, 0x1
if-eq v2, v3, :cond_1b
goto :goto_1c
:cond_1b
const/4 v3, 0x0
:goto_1c
invoke-interface {v0, v3}, Landroid/view/Menu;->setQwertyMode(Z)V
.line 481
invoke-interface {v0, p1, p2, v1}, Landroid/view/Menu;->performShortcut(ILandroid/view/KeyEvent;I)Z
move-result p1
return p1
:cond_24
return v1
.end method
.method public onMenuKeyEvent(Landroid/view/KeyEvent;)Z
.registers 3
.line 468
invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I
move-result p1
const/4 v0, 0x1
if-ne p1, v0, :cond_a
.line 469
invoke-virtual {p0}, Landroidx/appcompat/app/ToolbarActionBar;->openOptionsMenu()Z
:cond_a
return v0
.end method
.method public openOptionsMenu()Z
.registers 2
.line 423
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->showOverflowMenu()Z
move-result v0
return v0
.end method
.method populateOptionsMenu()V
.registers 6
.line 448
invoke-direct {p0}, Landroidx/appcompat/app/ToolbarActionBar;->getMenu()Landroid/view/Menu;
move-result-object v0
.line 449
instance-of v1, v0, Landroidx/appcompat/view/menu/MenuBuilder;
const/4 v2, 0x0
if-eqz v1, :cond_d
move-object v1, v0
check-cast v1, Landroidx/appcompat/view/menu/MenuBuilder;
goto :goto_e
:cond_d
move-object v1, v2
:goto_e
if-eqz v1, :cond_13
.line 451
invoke-virtual {v1}, Landroidx/appcompat/view/menu/MenuBuilder;->stopDispatchingItemsChanged()V
.line 454
:cond_13
:try_start_13
invoke-interface {v0}, Landroid/view/Menu;->clear()V
.line 455
iget-object v3, p0, Landroidx/appcompat/app/ToolbarActionBar;->mWindowCallback:Landroid/view/Window$Callback;
const/4 v4, 0x0
invoke-interface {v3, v4, v0}, Landroid/view/Window$Callback;->onCreatePanelMenu(ILandroid/view/Menu;)Z
move-result v3
if-eqz v3, :cond_27
iget-object v3, p0, Landroidx/appcompat/app/ToolbarActionBar;->mWindowCallback:Landroid/view/Window$Callback;
.line 456
invoke-interface {v3, v4, v2, v0}, Landroid/view/Window$Callback;->onPreparePanel(ILandroid/view/View;Landroid/view/Menu;)Z
move-result v2
if-nez v2, :cond_2a
.line 457
:cond_27
invoke-interface {v0}, Landroid/view/Menu;->clear()V
:try_end_2a
.catchall {:try_start_13 .. :try_end_2a} :catchall_30
:cond_2a
if-eqz v1, :cond_2f
.line 461
invoke-virtual {v1}, Landroidx/appcompat/view/menu/MenuBuilder;->startDispatchingItemsChanged()V
:cond_2f
return-void
:catchall_30
move-exception v0
if-eqz v1, :cond_36
invoke-virtual {v1}, Landroidx/appcompat/view/menu/MenuBuilder;->startDispatchingItemsChanged()V
.line 463
:cond_36
throw v0
.end method
.method public removeAllTabs()V
.registers 3
.line 370
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Tabs are not supported in toolbar action bars"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public removeOnMenuVisibilityListener(Landroidx/appcompat/app/ActionBar$OnMenuVisibilityListener;)V
.registers 3
.line 499
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mMenuVisibilityListeners:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
return-void
.end method
.method public removeTab(Landroidx/appcompat/app/ActionBar$Tab;)V
.registers 3
.line 358
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public removeTabAt(I)V
.registers 3
.line 364
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public requestFocus()Z
.registers 3
.line 233
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v0
if-eqz v0, :cond_13
.line 234
invoke-virtual {v0}, Landroid/view/ViewGroup;->hasFocus()Z
move-result v1
if-nez v1, :cond_13
.line 235
invoke-virtual {v0}, Landroid/view/ViewGroup;->requestFocus()Z
const/4 v0, 0x1
return v0
:cond_13
const/4 v0, 0x0
return v0
.end method
.method public selectTab(Landroidx/appcompat/app/ActionBar$Tab;)V
.registers 3
.line 376
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Tabs are not supported in toolbar action bars"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 3
.line 290
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setCustomView(I)V
.registers 5
.line 95
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->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
.line 96
iget-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v1}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v0, p1, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p1
invoke-virtual {p0, p1}, Landroidx/appcompat/app/ToolbarActionBar;->setCustomView(Landroid/view/View;)V
return-void
.end method
.method public setCustomView(Landroid/view/View;)V
.registers 4
.line 82
new-instance v0, Landroidx/appcompat/app/ActionBar$LayoutParams;
const/4 v1, -0x2
invoke-direct {v0, v1, v1}, Landroidx/appcompat/app/ActionBar$LayoutParams;-><init>(II)V
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setCustomView(Landroid/view/View;Landroidx/appcompat/app/ActionBar$LayoutParams;)V
return-void
.end method
.method public setCustomView(Landroid/view/View;Landroidx/appcompat/app/ActionBar$LayoutParams;)V
.registers 3
if-eqz p1, :cond_5
.line 88
invoke-virtual {p1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 90
:cond_5
iget-object p2, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {p2, p1}, Landroidx/appcompat/widget/DecorToolbar;->setCustomView(Landroid/view/View;)V
return-void
.end method
.method public setDefaultDisplayHomeAsUpEnabled(Z)V
.registers 2
return-void
.end method
.method public setDisplayHomeAsUpEnabled(Z)V
.registers 3
const/4 v0, 0x4
if-eqz p1, :cond_5
const/4 p1, 0x4
goto :goto_6
:cond_5
const/4 p1, 0x0
.line 275
:goto_6
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setDisplayOptions(II)V
return-void
.end method
.method public setDisplayOptions(I)V
.registers 3
const/4 v0, -0x1
.line 254
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setDisplayOptions(II)V
return-void
.end method
.method public setDisplayOptions(II)V
.registers 5
.line 259
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getDisplayOptions()I
move-result v0
.line 260
iget-object v1, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
and-int/2addr p1, p2
xor-int/lit8 p2, p2, -0x1
and-int/2addr p2, v0
or-int/2addr p1, p2
invoke-interface {v1, p1}, Landroidx/appcompat/widget/DecorToolbar;->setDisplayOptions(I)V
return-void
.end method
.method public setDisplayShowCustomEnabled(Z)V
.registers 3
const/16 v0, 0x10
if-eqz p1, :cond_7
const/16 p1, 0x10
goto :goto_8
:cond_7
const/4 p1, 0x0
.line 285
:goto_8
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setDisplayOptions(II)V
return-void
.end method
.method public setDisplayShowHomeEnabled(Z)V
.registers 3
const/4 v0, 0x2
if-eqz p1, :cond_5
const/4 p1, 0x2
goto :goto_6
:cond_5
const/4 p1, 0x0
.line 270
:goto_6
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setDisplayOptions(II)V
return-void
.end method
.method public setDisplayShowTitleEnabled(Z)V
.registers 3
const/16 v0, 0x8
if-eqz p1, :cond_7
const/16 p1, 0x8
goto :goto_8
:cond_7
const/4 p1, 0x0
.line 280
:goto_8
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setDisplayOptions(II)V
return-void
.end method
.method public setDisplayUseLogoEnabled(Z)V
.registers 3
const/4 v0, 0x1
.line 265
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/app/ToolbarActionBar;->setDisplayOptions(II)V
return-void
.end method
.method public setElevation(F)V
.registers 3
.line 136
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getViewGroup()Landroid/view/ViewGroup;
move-result-object v0
invoke-static {v0, p1}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V
return-void
.end method
.method public setHomeActionContentDescription(I)V
.registers 3
.line 176
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setNavigationContentDescription(I)V
return-void
.end method
.method public setHomeActionContentDescription(Ljava/lang/CharSequence;)V
.registers 3
.line 166
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setNavigationContentDescription(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setHomeAsUpIndicator(I)V
.registers 3
.line 161
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setNavigationIcon(I)V
return-void
.end method
.method public setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V
.registers 3
.line 156
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setNavigationIcon(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setHomeButtonEnabled(Z)V
.registers 2
return-void
.end method
.method public setIcon(I)V
.registers 3
.line 101
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setIcon(I)V
return-void
.end method
.method public setIcon(Landroid/graphics/drawable/Drawable;)V
.registers 3
.line 106
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setIcon(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setListNavigationCallbacks(Landroid/widget/SpinnerAdapter;Landroidx/appcompat/app/ActionBar$OnNavigationListener;)V
.registers 5
.line 191
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
new-instance v1, Landroidx/appcompat/app/NavItemSelectedListener;
invoke-direct {v1, p2}, Landroidx/appcompat/app/NavItemSelectedListener;-><init>(Landroidx/appcompat/app/ActionBar$OnNavigationListener;)V
invoke-interface {v0, p1, v1}, Landroidx/appcompat/widget/DecorToolbar;->setDropdownParams(Landroid/widget/SpinnerAdapter;Landroid/widget/AdapterView$OnItemSelectedListener;)V
return-void
.end method
.method public setLogo(I)V
.registers 3
.line 111
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setLogo(I)V
return-void
.end method
.method public setLogo(Landroid/graphics/drawable/Drawable;)V
.registers 3
.line 116
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setLogo(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setNavigationMode(I)V
.registers 3
const/4 v0, 0x2
if-eq p1, v0, :cond_9
.line 318
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setNavigationMode(I)V
return-void
.line 316
:cond_9
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Tabs not supported in this configuration"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setSelectedNavigationItem(I)V
.registers 4
.line 196
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getNavigationMode()I
move-result v0
const/4 v1, 0x1
if-ne v0, v1, :cond_f
.line 198
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setDropdownSelectedPosition(I)V
return-void
.line 201
:cond_f
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "setSelectedNavigationIndex not valid for current navigation mode"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setShowHideAnimationEnabled(Z)V
.registers 2
return-void
.end method
.method public setSplitBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 2
return-void
.end method
.method public setStackedBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 2
return-void
.end method
.method public setSubtitle(I)V
.registers 4
.line 248
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
if-eqz p1, :cond_d
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
move-result-object p1
goto :goto_e
:cond_d
const/4 p1, 0x0
:goto_e
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setSubtitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setSubtitle(Ljava/lang/CharSequence;)V
.registers 3
.line 243
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setSubtitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setTitle(I)V
.registers 4
.line 223
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
if-eqz p1, :cond_d
invoke-interface {v0}, Landroidx/appcompat/widget/DecorToolbar;->getContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
move-result-object p1
goto :goto_e
:cond_d
const/4 p1, 0x0
:goto_e
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setTitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setTitle(Ljava/lang/CharSequence;)V
.registers 3
.line 218
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setTitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setWindowTitle(Ljava/lang/CharSequence;)V
.registers 3
.line 228
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/DecorToolbar;->setWindowTitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method public show()V
.registers 3
.line 406
iget-object v0, p0, Landroidx/appcompat/app/ToolbarActionBar;->mDecorToolbar:Landroidx/appcompat/widget/DecorToolbar;
const/4 v1, 0x0
invoke-interface {v0, v1}, Landroidx/appcompat/widget/DecorToolbar;->setVisibility(I)V
return-void
.end method