1786 lines
46 KiB
Smali
1786 lines
46 KiB
Smali
.class public final Landroid/support/v7/view/menu/MenuItemImpl;
|
|
.super Ljava/lang/Object;
|
|
.source "MenuItemImpl.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/support/v4/internal/view/SupportMenuItem;
|
|
|
|
|
|
# static fields
|
|
.field private static final CHECKABLE:I = 0x1
|
|
|
|
.field private static final CHECKED:I = 0x2
|
|
|
|
.field private static final ENABLED:I = 0x10
|
|
|
|
.field private static final EXCLUSIVE:I = 0x4
|
|
|
|
.field private static final HIDDEN:I = 0x8
|
|
|
|
.field private static final IS_ACTION:I = 0x20
|
|
|
|
.field static final NO_ICON:I = 0x0
|
|
|
|
.field private static final SHOW_AS_ACTION_MASK:I = 0x3
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "MenuItemImpl"
|
|
|
|
.field private static sDeleteShortcutLabel:Ljava/lang/String;
|
|
|
|
.field private static sEnterShortcutLabel:Ljava/lang/String;
|
|
|
|
.field private static sPrependShortcutLabel:Ljava/lang/String;
|
|
|
|
.field private static sSpaceShortcutLabel:Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field private mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
.field private mActionView:Landroid/view/View;
|
|
|
|
.field private final mCategoryOrder:I
|
|
|
|
.field private mClickListener:Landroid/view/MenuItem$OnMenuItemClickListener;
|
|
|
|
.field private mFlags:I
|
|
|
|
.field private final mGroup:I
|
|
|
|
.field private mIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field private mIconResId:I
|
|
|
|
.field private final mId:I
|
|
|
|
.field private mIntent:Landroid/content/Intent;
|
|
|
|
.field private mIsActionViewExpanded:Z
|
|
|
|
.field private mItemCallback:Ljava/lang/Runnable;
|
|
|
|
.field private mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
.field private mMenuInfo:Landroid/view/ContextMenu$ContextMenuInfo;
|
|
|
|
.field private mOnActionExpandListener:Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
.field private final mOrdering:I
|
|
|
|
.field private mShortcutAlphabeticChar:C
|
|
|
|
.field private mShortcutNumericChar:C
|
|
|
|
.field private mShowAsAction:I
|
|
|
|
.field private mSubMenu:Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
.field private mTitle:Ljava/lang/CharSequence;
|
|
|
|
.field private mTitleCondensed:Ljava/lang/CharSequence;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/support/v7/view/menu/MenuBuilder;IIIILjava/lang/CharSequence;I)V
|
|
.locals 2
|
|
.param p1, "menu" # Landroid/support/v7/view/menu/MenuBuilder;
|
|
.param p2, "group" # I
|
|
.param p3, "id" # I
|
|
.param p4, "categoryOrder" # I
|
|
.param p5, "ordering" # I
|
|
.param p6, "title" # Ljava/lang/CharSequence;
|
|
.param p7, "showAsAction" # I
|
|
|
|
.prologue
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconResId:I
|
|
|
|
const/16 v0, 0x10
|
|
|
|
iput v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
iput-boolean v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIsActionViewExpanded:Z
|
|
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
iput p3, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mId:I
|
|
|
|
iput p2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mGroup:I
|
|
|
|
iput p4, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mCategoryOrder:I
|
|
|
|
iput p5, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOrdering:I
|
|
|
|
iput-object p6, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
iput p7, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$000(Landroid/support/v7/view/menu/MenuItemImpl;)Landroid/support/v7/view/menu/MenuBuilder;
|
|
.locals 1
|
|
.param p0, "x0" # Landroid/support/v7/view/menu/MenuItemImpl;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public actionFormatChanged()V
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->onItemActionRequestChanged(Landroid/support/v7/view/menu/MenuItemImpl;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public collapseActionView()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
const/4 v0, 0x0
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
and-int/lit8 v1, v1, 0x8
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOnActionExpandListener:Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOnActionExpandListener:Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
invoke-interface {v1, p0}, Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;->onMenuItemActionCollapse(Landroid/view/MenuItem;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->collapseItemActionView(Landroid/support/v7/view/menu/MenuItemImpl;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public expandActionView()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0}, Landroid/support/v7/view/menu/MenuItemImpl;->hasCollapsibleActionView()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOnActionExpandListener:Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOnActionExpandListener:Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
invoke-interface {v1, p0}, Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;->onMenuItemActionExpand(Landroid/view/MenuItem;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->expandItemActionView(Landroid/support/v7/view/menu/MenuItemImpl;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public getActionProvider()Landroid/view/ActionProvider;
|
|
.locals 2
|
|
|
|
.prologue
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v1, "This is not supported, use MenuItemCompat.getActionProvider()"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getActionView()Landroid/view/View;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v4/view/ActionProvider;->onCreateActionView(Landroid/view/MenuItem;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public getAlphabeticShortcut()C
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutAlphabeticChar:C
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method getCallback()Ljava/lang/Runnable;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mItemCallback:Ljava/lang/Runnable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getGroupId()I
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mGroup:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 4
|
|
|
|
.prologue
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconResId:I
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {}, Landroid/support/v7/widget/AppCompatDrawableManager;->get()Landroid/support/v7/widget/AppCompatDrawableManager;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v2}, Landroid/support/v7/view/menu/MenuBuilder;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconResId:I
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/support/v7/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "icon":Landroid/graphics/drawable/Drawable;
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconResId:I
|
|
|
|
iput-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "icon":Landroid/graphics/drawable/Drawable;
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public getIntent()Landroid/content/Intent;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIntent:Landroid/content/Intent;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getItemId()I
|
|
.locals 1
|
|
.annotation runtime Landroid/view/ViewDebug$CapturedViewProperty;
|
|
.end annotation
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mId:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getMenuInfo()Landroid/view/ContextMenu$ContextMenuInfo;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenuInfo:Landroid/view/ContextMenu$ContextMenuInfo;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getNumericShortcut()C
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutNumericChar:C
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOrder()I
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mCategoryOrder:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOrdering()I
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOrdering:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method getShortcut()C
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v7/view/menu/MenuBuilder;->isQwertyMode()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutAlphabeticChar:C
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
iget-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutNumericChar:C
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method getShortcutLabel()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.prologue
|
|
invoke-virtual {p0}, Landroid/support/v7/view/menu/MenuItemImpl;->getShortcut()C
|
|
|
|
move-result v1
|
|
|
|
.local v1, "shortcut":C
|
|
if-nez v1, :cond_0
|
|
|
|
const-string v2, ""
|
|
|
|
:goto_0
|
|
return-object v2
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
sget-object v2, Landroid/support/v7/view/menu/MenuItemImpl;->sPrependShortcutLabel:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.local v0, "sb":Ljava/lang/StringBuilder;
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
:goto_1
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
sget-object v2, Landroid/support/v7/view/menu/MenuItemImpl;->sEnterShortcutLabel:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1
|
|
sget-object v2, Landroid/support/v7/view/menu/MenuItemImpl;->sDeleteShortcutLabel:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
sget-object v2, Landroid/support/v7/view/menu/MenuItemImpl;->sSpaceShortcutLabel:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_1
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0x8 -> :sswitch_1
|
|
0xa -> :sswitch_0
|
|
0x20 -> :sswitch_2
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public getSubMenu()Landroid/view/SubMenu;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mSubMenu:Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSupportActionProvider()Landroid/support/v4/view/ActionProvider;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTitle()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation runtime Landroid/view/ViewDebug$CapturedViewProperty;
|
|
.end annotation
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTitleCondensed()Ljava/lang/CharSequence;
|
|
.locals 3
|
|
|
|
.prologue
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitleCondensed:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitleCondensed:Ljava/lang/CharSequence;
|
|
|
|
.local v0, "ctitle":Ljava/lang/CharSequence;
|
|
:goto_0
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x12
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
instance-of v1, v0, Ljava/lang/String;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.end local v0 # "ctitle":Ljava/lang/CharSequence;
|
|
:cond_0
|
|
return-object v0
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method getTitleForItemView(Landroid/support/v7/view/menu/MenuView$ItemView;)Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.param p1, "itemView" # Landroid/support/v7/view/menu/MenuView$ItemView;
|
|
|
|
.prologue
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-interface {p1}, Landroid/support/v7/view/menu/MenuView$ItemView;->prefersCondensedTitle()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/support/v7/view/menu/MenuItemImpl;->getTitleCondensed()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/support/v7/view/menu/MenuItemImpl;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public hasCollapsibleActionView()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
const/4 v0, 0x0
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
and-int/lit8 v1, v1, 0x8
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
invoke-virtual {v1, p0}, Landroid/support/v4/view/ActionProvider;->onCreateActionView(Landroid/view/MenuItem;)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasSubMenu()Z
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mSubMenu:Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public invoke()Z
|
|
.locals 4
|
|
|
|
.prologue
|
|
const/4 v1, 0x1
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mClickListener:Landroid/view/MenuItem$OnMenuItemClickListener;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mClickListener:Landroid/view/MenuItem$OnMenuItemClickListener;
|
|
|
|
invoke-interface {v2, p0}, Landroid/view/MenuItem$OnMenuItemClickListener;->onMenuItemClick(Landroid/view/MenuItem;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_1
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
iget-object v3, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v3}, Landroid/support/v7/view/menu/MenuBuilder;->getRootMenu()Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3, p0}, Landroid/support/v7/view/menu/MenuBuilder;->dispatchMenuItemSelected(Landroid/support/v7/view/menu/MenuBuilder;Landroid/view/MenuItem;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mItemCallback:Ljava/lang/Runnable;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mItemCallback:Ljava/lang/Runnable;
|
|
|
|
invoke-interface {v2}, Ljava/lang/Runnable;->run()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIntent:Landroid/content/Intent;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
:try_start_0
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v2}, Landroid/support/v7/view/menu/MenuBuilder;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIntent:Landroid/content/Intent;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
:try_end_0
|
|
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.local v0, "e":Landroid/content/ActivityNotFoundException;
|
|
const-string v2, "MenuItemImpl"
|
|
|
|
const-string v3, "Can\'t find activity to handle intent; ignoring"
|
|
|
|
invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.end local v0 # "e":Landroid/content/ActivityNotFoundException;
|
|
:cond_3
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
invoke-virtual {v2}, Landroid/support/v4/view/ActionProvider;->onPerformDefaultAction()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
:cond_4
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public isActionButton()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, 0x20
|
|
|
|
const/16 v1, 0x20
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public isActionViewExpanded()Z
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-boolean v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIsActionViewExpanded:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isCheckable()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
const/4 v0, 0x1
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v1, v1, 0x1
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public isChecked()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, 0x2
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public isEnabled()Z
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, 0x10
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public isExclusiveCheckable()Z
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, 0x4
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public isVisible()Z
|
|
.locals 3
|
|
|
|
.prologue
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
invoke-virtual {v2}, Landroid/support/v4/view/ActionProvider;->overridesItemVisibility()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v2, v2, 0x8
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
invoke-virtual {v2}, Landroid/support/v4/view/ActionProvider;->isVisible()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v2, v2, 0x8
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public requestsActionButton()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
const/4 v0, 0x1
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
and-int/lit8 v1, v1, 0x1
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public requiresActionButton()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
and-int/lit8 v0, v0, 0x2
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setActionProvider(Landroid/view/ActionProvider;)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "actionProvider" # Landroid/view/ActionProvider;
|
|
|
|
.prologue
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v1, "This is not supported, use MenuItemCompat.setActionProvider()"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public setActionView(I)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
.locals 4
|
|
.param p1, "resId" # I
|
|
|
|
.prologue
|
|
iget-object v2, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v2}, Landroid/support/v7/view/menu/MenuBuilder;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "context":Landroid/content/Context;
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v1
|
|
|
|
.local v1, "inflater":Landroid/view/LayoutInflater;
|
|
new-instance v2, Landroid/widget/LinearLayout;
|
|
|
|
invoke-direct {v2, v0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, p1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v2}, Landroid/support/v7/view/menu/MenuItemImpl;->setActionView(Landroid/view/View;)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setActionView(Landroid/view/View;)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
.locals 2
|
|
.param p1, "view" # Landroid/view/View;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mId:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setId(I)V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->onItemActionRequestChanged(Landroid/support/v7/view/menu/MenuItemImpl;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setActionView(I)Landroid/view/MenuItem;
|
|
.locals 1
|
|
|
|
.prologue
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/view/menu/MenuItemImpl;->setActionView(I)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic setActionView(Landroid/view/View;)Landroid/view/MenuItem;
|
|
.locals 1
|
|
|
|
.prologue
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/view/menu/MenuItemImpl;->setActionView(Landroid/view/View;)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setActionViewExpanded(Z)V
|
|
.locals 2
|
|
.param p1, "isExpanded" # Z
|
|
|
|
.prologue
|
|
iput-boolean p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIsActionViewExpanded:Z
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAlphabeticShortcut(C)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "alphaChar" # C
|
|
|
|
.prologue
|
|
iget-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutAlphabeticChar:C
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-static {p1}, Ljava/lang/Character;->toLowerCase(C)C
|
|
|
|
move-result v0
|
|
|
|
iput-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutAlphabeticChar:C
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setCallback(Ljava/lang/Runnable;)Landroid/view/MenuItem;
|
|
.locals 0
|
|
.param p1, "callback" # Ljava/lang/Runnable;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mItemCallback:Ljava/lang/Runnable;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setCheckable(Z)Landroid/view/MenuItem;
|
|
.locals 4
|
|
.param p1, "checkable" # Z
|
|
|
|
.prologue
|
|
const/4 v2, 0x0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
.local v0, "oldFlags":I
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v3, v1, -0x2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
or-int/2addr v1, v3
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setChecked(Z)Landroid/view/MenuItem;
|
|
.locals 1
|
|
.param p1, "checked" # Z
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, 0x4
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->setExclusiveItemChecked(Landroid/view/MenuItem;)V
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/view/menu/MenuItemImpl;->setCheckedInt(Z)V
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method setCheckedInt(Z)V
|
|
.locals 4
|
|
.param p1, "checked" # Z
|
|
|
|
.prologue
|
|
const/4 v2, 0x0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
.local v0, "oldFlags":I
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v3, v1, -0x3
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
:goto_0
|
|
or-int/2addr v1, v3
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
iget-object v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setEnabled(Z)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "enabled" # Z
|
|
|
|
.prologue
|
|
if-eqz p1, :cond_0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
or-int/lit8 v0, v0, 0x10
|
|
|
|
iput v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, -0x11
|
|
|
|
iput v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setExclusiveCheckable(Z)V
|
|
.locals 2
|
|
.param p1, "exclusive" # Z
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v1, v0, -0x5
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
:goto_0
|
|
or-int/2addr v0, v1
|
|
|
|
iput v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setIcon(I)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "iconResId" # I
|
|
|
|
.prologue
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
iput p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconResId:I
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setIcon(Landroid/graphics/drawable/Drawable;)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "icon" # Landroid/graphics/drawable/Drawable;
|
|
|
|
.prologue
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconResId:I
|
|
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setIntent(Landroid/content/Intent;)Landroid/view/MenuItem;
|
|
.locals 0
|
|
.param p1, "intent" # Landroid/content/Intent;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mIntent:Landroid/content/Intent;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setIsActionButton(Z)V
|
|
.locals 1
|
|
.param p1, "isActionButton" # Z
|
|
|
|
.prologue
|
|
if-eqz p1, :cond_0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
or-int/lit8 v0, v0, 0x20
|
|
|
|
iput v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v0, v0, -0x21
|
|
|
|
iput v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method setMenuInfo(Landroid/view/ContextMenu$ContextMenuInfo;)V
|
|
.locals 0
|
|
.param p1, "menuInfo" # Landroid/view/ContextMenu$ContextMenuInfo;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenuInfo:Landroid/view/ContextMenu$ContextMenuInfo;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNumericShortcut(C)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "numericChar" # C
|
|
|
|
.prologue
|
|
iget-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutNumericChar:C
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
:cond_0
|
|
iput-char p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutNumericChar:C
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public setOnActionExpandListener(Landroid/view/MenuItem$OnActionExpandListener;)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "listener" # Landroid/view/MenuItem$OnActionExpandListener;
|
|
|
|
.prologue
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v1, "This is not supported, use MenuItemCompat.setOnActionExpandListener()"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;
|
|
.locals 0
|
|
.param p1, "clickListener" # Landroid/view/MenuItem$OnMenuItemClickListener;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mClickListener:Landroid/view/MenuItem$OnMenuItemClickListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setShortcut(CC)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "numericChar" # C
|
|
.param p2, "alphaChar" # C
|
|
|
|
.prologue
|
|
iput-char p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutNumericChar:C
|
|
|
|
invoke-static {p2}, Ljava/lang/Character;->toLowerCase(C)C
|
|
|
|
move-result v0
|
|
|
|
iput-char v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShortcutAlphabeticChar:C
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setShowAsAction(I)V
|
|
.locals 2
|
|
.param p1, "actionEnum" # I
|
|
|
|
.prologue
|
|
and-int/lit8 v0, p1, 0x3
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "SHOW_AS_ACTION_ALWAYS, SHOW_AS_ACTION_IF_ROOM, and SHOW_AS_ACTION_NEVER are mutually exclusive."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:pswitch_0
|
|
iput p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->onItemActionRequestChanged(Landroid/support/v7/view/menu/MenuItemImpl;)V
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public setShowAsActionFlags(I)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
.locals 0
|
|
.param p1, "actionEnum" # I
|
|
|
|
.prologue
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/view/menu/MenuItemImpl;->setShowAsAction(I)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setShowAsActionFlags(I)Landroid/view/MenuItem;
|
|
.locals 1
|
|
|
|
.prologue
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/view/menu/MenuItemImpl;->setShowAsActionFlags(I)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setSubMenu(Landroid/support/v7/view/menu/SubMenuBuilder;)V
|
|
.locals 1
|
|
.param p1, "subMenu" # Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mSubMenu:Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
invoke-virtual {p0}, Landroid/support/v7/view/menu/MenuItemImpl;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v7/view/menu/SubMenuBuilder;->setHeaderTitle(Ljava/lang/CharSequence;)Landroid/view/SubMenu;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportActionProvider(Landroid/support/v4/view/ActionProvider;)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
.locals 2
|
|
.param p1, "actionProvider" # Landroid/support/v4/view/ActionProvider;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/ActionProvider;->reset()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionView:Landroid/view/View;
|
|
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mActionProvider:Landroid/support/v4/view/ActionProvider;
|
|
|
|
new-instance v1, Landroid/support/v7/view/menu/MenuItemImpl$1;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v7/view/menu/MenuItemImpl$1;-><init>(Landroid/support/v7/view/menu/MenuItemImpl;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ActionProvider;->setVisibilityListener(Landroid/support/v4/view/ActionProvider$VisibilityListener;)V
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setSupportOnActionExpandListener(Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;)Landroid/support/v4/internal/view/SupportMenuItem;
|
|
.locals 0
|
|
.param p1, "listener" # Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mOnActionExpandListener:Landroid/support/v4/view/MenuItemCompat$OnActionExpandListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setTitle(I)Landroid/view/MenuItem;
|
|
.locals 1
|
|
.param p1, "title" # I
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v7/view/menu/MenuBuilder;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/support/v7/view/menu/MenuItemImpl;->setTitle(Ljava/lang/CharSequence;)Landroid/view/MenuItem;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setTitle(Ljava/lang/CharSequence;)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "title" # Ljava/lang/CharSequence;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mSubMenu:Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mSubMenu:Landroid/support/v7/view/menu/SubMenuBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v7/view/menu/SubMenuBuilder;->setHeaderTitle(Ljava/lang/CharSequence;)Landroid/view/SubMenu;
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setTitleCondensed(Ljava/lang/CharSequence;)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p1, "title" # Ljava/lang/CharSequence;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitleCondensed:Ljava/lang/CharSequence;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-object p1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/view/menu/MenuBuilder;->onItemsChanged(Z)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setVisible(Z)Landroid/view/MenuItem;
|
|
.locals 1
|
|
.param p1, "shown" # Z
|
|
|
|
.prologue
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/view/menu/MenuItemImpl;->setVisibleInt(Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/support/v7/view/menu/MenuBuilder;->onItemVisibleChanged(Landroid/support/v7/view/menu/MenuItemImpl;)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method setVisibleInt(Z)Z
|
|
.locals 4
|
|
.param p1, "shown" # Z
|
|
|
|
.prologue
|
|
const/4 v2, 0x0
|
|
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
.local v0, "oldFlags":I
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
and-int/lit8 v3, v1, -0x9
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
move v1, v2
|
|
|
|
:goto_0
|
|
or-int/2addr v1, v3
|
|
|
|
iput v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
iget v1, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mFlags:I
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_0
|
|
return v2
|
|
|
|
:cond_1
|
|
const/16 v1, 0x8
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public shouldShowIcon()Z
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v7/view/menu/MenuBuilder;->getOptionalIconsVisible()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method shouldShowShortcut()Z
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mMenu:Landroid/support/v7/view/menu/MenuBuilder;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v7/view/menu/MenuBuilder;->isShortcutsVisible()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/support/v7/view/menu/MenuItemImpl;->getShortcut()C
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public showsTextAsAction()Z
|
|
.locals 2
|
|
|
|
.prologue
|
|
iget v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mShowAsAction:I
|
|
|
|
and-int/lit8 v0, v0, 0x4
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v7/view/menu/MenuItemImpl;->mTitle:Ljava/lang/CharSequence;
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|