disable context shortcut menu entry in offline feed fragments
This commit is contained in:
parent
5575eca5ea
commit
8e5a8fb8eb
@ -48,6 +48,8 @@ public class OfflineFeedCategoriesFragment extends BaseFeedlistFragment implemen
|
|||||||
|
|
||||||
getActivity().getMenuInflater().inflate(R.menu.category_menu, menu);
|
getActivity().getMenuInflater().inflate(R.menu.category_menu, menu);
|
||||||
|
|
||||||
|
menu.findItem(R.id.create_shortcut).setEnabled(false);
|
||||||
|
|
||||||
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
||||||
Cursor cursor = (Cursor)getCatAtPosition(info.position);
|
Cursor cursor = (Cursor)getCatAtPosition(info.position);
|
||||||
|
|
||||||
|
@ -85,6 +85,8 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem
|
|||||||
|
|
||||||
getActivity().getMenuInflater().inflate(R.menu.feed_menu, menu);
|
getActivity().getMenuInflater().inflate(R.menu.feed_menu, menu);
|
||||||
|
|
||||||
|
menu.findItem(R.id.create_shortcut).setEnabled(false);
|
||||||
|
|
||||||
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
||||||
Cursor cursor = (Cursor)getFeedAtPosition(info.position);
|
Cursor cursor = (Cursor)getFeedAtPosition(info.position);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user