if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return new MenuWrapperICS(context, supportMenu);
}
throw new UnsupportedOperationException();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
return new MenuItemWrapperJB(context, supportMenuItem);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return new MenuItemWrapperICS(context, supportMenuItem);
}
throw new UnsupportedOperationException();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return new SubMenuWrapperICS(context, supportSubMenu);
}
throw new UnsupportedOperationException();