Back to project page EbookExplorer.
The source code is released under:
Apache License
If you think the Android project EbookExplorer 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 ww w .java2s . c om 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)); } }