Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.actionbarsherlock.app;
 
import static com.actionbarsherlock.app.SherlockFragmentActivity.OnCreateOptionsMenuListener;
import static com.actionbarsherlock.app.SherlockFragmentActivity.OnOptionsItemSelectedListener;
import static com.actionbarsherlock.app.SherlockFragmentActivity.OnPrepareOptionsMenuListener;
        return ;
    }
    @Override
    public void onAttach(Activity activity) {
        if (!(activity instanceof SherlockFragmentActivity)) {
            throw new IllegalStateException(getClass().getSimpleName() + " must be attached to a SherlockFragmentActivity.");
        }
         = (SherlockFragmentActivity)activity;
        super.onAttach(activity);
    }
    @Override
    public void onDetach() {
         = null;
        super.onDetach();
    }
    @Override
    public final void onCreateOptionsMenu(android.view.Menu menuandroid.view.MenuInflater inflater) {
    }
    @Override
    public void onCreateOptionsMenu(Menu menuMenuInflater inflater) {
        //Nothing to see here.
    }
    @Override
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
        onPrepareOptionsMenu(new MenuWrapper(menu));
    }
    @Override
    public void onPrepareOptionsMenu(Menu menu) {
        //Nothing to see here.
    }
    @Override
    public final boolean onOptionsItemSelected(android.view.MenuItem item) {
        return onOptionsItemSelected(new MenuItemWrapper(item));
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        //Nothing to see here.
        return false;
    }
New to GrepCode? Check out our FAQ X