Back to project page UsarActionBarSherlockAndroidStudio.
The source code is released under:
GNU General Public License
If you think the Android project UsarActionBarSherlockAndroidStudio listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.actionbarsherlock.internal.view; /*from w w w . j av a 2s .c o m*/ import com.actionbarsherlock.internal.view.menu.SubMenuWrapper; import com.actionbarsherlock.view.ActionProvider; import android.view.View; public class ActionProviderWrapper extends android.view.ActionProvider { private final ActionProvider mProvider; public ActionProviderWrapper(ActionProvider provider) { super(null/*TODO*/); //XXX this *should* be unused mProvider = provider; } public ActionProvider unwrap() { return mProvider; } @Override public View onCreateActionView() { return mProvider.onCreateActionView(); } @Override public boolean hasSubMenu() { return mProvider.hasSubMenu(); } @Override public boolean onPerformDefaultAction() { return mProvider.onPerformDefaultAction(); } @Override public void onPrepareSubMenu(android.view.SubMenu subMenu) { mProvider.onPrepareSubMenu(new SubMenuWrapper(subMenu)); } }