diff options
author | Andrew Dolgov <[email protected]> | 2015-06-05 11:57:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-06-05 11:57:35 +0300 |
commit | 8e5a8fb8eb3897ca494e232a224f51c0a74fa9b4 (patch) | |
tree | 06506121e58c9f73e20e06804b9e7e02526985e2 /org.fox.ttrss/src/main | |
parent | 5575eca5eaf9b04f699031d5f9d0c4cc5d416c33 (diff) |
disable context shortcut menu entry in offline feed fragments
Diffstat (limited to 'org.fox.ttrss/src/main')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java | 4 | ||||
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsFragment.java | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java index fd0da9d6..a6087411 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java @@ -47,7 +47,9 @@ public class OfflineFeedCategoriesFragment extends BaseFeedlistFragment implemen ContextMenuInfo menuInfo) { getActivity().getMenuInflater().inflate(R.menu.category_menu, menu); - + + menu.findItem(R.id.create_shortcut).setEnabled(false); + AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo; Cursor cursor = (Cursor)getCatAtPosition(info.position); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsFragment.java index d23897f7..90c7b7f1 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsFragment.java @@ -84,7 +84,9 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem ContextMenuInfo menuInfo) { getActivity().getMenuInflater().inflate(R.menu.feed_menu, menu); - + + menu.findItem(R.id.create_shortcut).setEnabled(false); + AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo; Cursor cursor = (Cursor)getFeedAtPosition(info.position); |