disable context shortcut menu entry in offline feed fragments
This commit is contained in:
parent
5575eca5ea
commit
8e5a8fb8eb
@ -47,7 +47,9 @@ public class OfflineFeedCategoriesFragment extends BaseFeedlistFragment implemen
|
|||||||
ContextMenuInfo menuInfo) {
|
ContextMenuInfo menuInfo) {
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
|
@ -84,7 +84,9 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem
|
|||||||
ContextMenuInfo menuInfo) {
|
ContextMenuInfo menuInfo) {
|
||||||
|
|
||||||
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