package com.newsblur.fragment;

import android.content.Loader;
import android.database.Cursor;
import android.os.Bundle;

import com.newsblur.database.StoryItemsAdapter;

public class AllSharedStoriesItemListFragment extends ItemListFragment {

    @Override
	public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
        if ((adapter == null) && (cursor != null)) {
            adapter = new StoryItemsAdapter(getActivity(), cursor, false, false, false);
            itemList.setAdapter(adapter);
        }
        super.onLoadFinished(loader, cursor);
    }

	public static ItemListFragment newInstance() {
		ItemListFragment everythingFragment = new AllSharedStoriesItemListFragment();
		Bundle arguments = new Bundle();
		everythingFragment.setArguments(arguments);
		return everythingFragment;
	}

}

@@ -114,16 +114,147 @@
 Bundle;%0A
+import android.view.ContextMenu;%0Aimport android.view.ContextMenu.ContextMenuInfo;%0Aimport android.view.View;%0A%0Aimport com.newsblur.R;
 %0Aimport 
@@ -940,10 +940,301 @@
 nt;%0A%09%7D%0A%0A
+    @Override%0A    public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) %7B%0A        super.onCreateContextMenu(menu, v, menuInfo);%0A        menu.removeItem(R.id.menu_mark_newer_stories_as_read);%0A        menu.removeItem(R.id.menu_mark_older_stories_as_read);%0A    %7D%0A%0A
 %7D%0A

remove inapplicable context actions from all-shared list