diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-05-25 22:48:11 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-05-25 22:48:11 +0200 |
commit | 23caec047182a85869f56c9ca0ae9125227734fc (patch) | |
tree | 983cf4d11a667cfb5caeb062da847e92f5f7885b /libraries/ActionBarSherlock/src/com/actionbarsherlock/internal/view/ActionProviderWrapper.java | |
parent | 9744b569ab7eda549e01cff685aa1b1d171cc28e (diff) | |
download | open-keychain-23caec047182a85869f56c9ca0ae9125227734fc.tar.gz open-keychain-23caec047182a85869f56c9ca0ae9125227734fc.tar.bz2 open-keychain-23caec047182a85869f56c9ca0ae9125227734fc.zip |
move ActionBarSherlock lib, add gradle build files
Diffstat (limited to 'libraries/ActionBarSherlock/src/com/actionbarsherlock/internal/view/ActionProviderWrapper.java')
-rw-r--r-- | libraries/ActionBarSherlock/src/com/actionbarsherlock/internal/view/ActionProviderWrapper.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libraries/ActionBarSherlock/src/com/actionbarsherlock/internal/view/ActionProviderWrapper.java b/libraries/ActionBarSherlock/src/com/actionbarsherlock/internal/view/ActionProviderWrapper.java new file mode 100644 index 000000000..b136d50f0 --- /dev/null +++ b/libraries/ActionBarSherlock/src/com/actionbarsherlock/internal/view/ActionProviderWrapper.java @@ -0,0 +1,40 @@ +package com.actionbarsherlock.internal.view; + +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)); + } +} |