106 lines
3.1 KiB
Smali
106 lines
3.1 KiB
Smali
.class public final Landroid/support/v7/view/menu/MenuWrapperFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "MenuWrapperFactory.java"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static wrapSupportMenu(Landroid/content/Context;Landroid/support/v4/internal/view/SupportMenu;)Landroid/view/Menu;
|
|
.locals 2
|
|
.param p0, "context" # Landroid/content/Context;
|
|
.param p1, "supportMenu" # Landroid/support/v4/internal/view/SupportMenu;
|
|
|
|
.prologue
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0xe
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
new-instance v0, Landroid/support/v7/view/menu/MenuWrapperICS;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroid/support/v7/view/menu/MenuWrapperICS;-><init>(Landroid/content/Context;Landroid/support/v4/internal/view/SupportMenu;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static wrapSupportMenuItem(Landroid/content/Context;Landroid/support/v4/internal/view/SupportMenuItem;)Landroid/view/MenuItem;
|
|
.locals 2
|
|
.param p0, "context" # Landroid/content/Context;
|
|
.param p1, "supportMenuItem" # Landroid/support/v4/internal/view/SupportMenuItem;
|
|
|
|
.prologue
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
new-instance v0, Landroid/support/v7/view/menu/MenuItemWrapperJB;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroid/support/v7/view/menu/MenuItemWrapperJB;-><init>(Landroid/content/Context;Landroid/support/v4/internal/view/SupportMenuItem;)V
|
|
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0xe
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
new-instance v0, Landroid/support/v7/view/menu/MenuItemWrapperICS;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroid/support/v7/view/menu/MenuItemWrapperICS;-><init>(Landroid/content/Context;Landroid/support/v4/internal/view/SupportMenuItem;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static wrapSupportSubMenu(Landroid/content/Context;Landroid/support/v4/internal/view/SupportSubMenu;)Landroid/view/SubMenu;
|
|
.locals 2
|
|
.param p0, "context" # Landroid/content/Context;
|
|
.param p1, "supportSubMenu" # Landroid/support/v4/internal/view/SupportSubMenu;
|
|
|
|
.prologue
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0xe
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
new-instance v0, Landroid/support/v7/view/menu/SubMenuWrapperICS;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroid/support/v7/view/menu/SubMenuWrapperICS;-><init>(Landroid/content/Context;Landroid/support/v4/internal/view/SupportSubMenu;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|