diff options
author | Andrew Dolgov <[email protected]> | 2013-11-27 22:01:29 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-11-27 22:01:29 +0400 |
commit | f0a29f9bcba46c09a750f19b715a730fcc74eb02 (patch) | |
tree | 28ada429cd5bf654392b4026a12b098945c6b825 /src/org | |
parent | a4d38f3227b939787a0eddc2c58e5cd4b8cc6a83 (diff) |
disallow unsubscribing from special feeds
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/fox/ttrss/FeedsFragment.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/fox/ttrss/FeedsFragment.java b/src/org/fox/ttrss/FeedsFragment.java index cd08b35f..5391997d 100644 --- a/src/org/fox/ttrss/FeedsFragment.java +++ b/src/org/fox/ttrss/FeedsFragment.java @@ -256,7 +256,11 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh if (!feed.is_cat) { menu.findItem(R.id.browse_feeds).setVisible(false); } - + + if (feed.id <= 0) { + menu.findItem(R.id.unsubscribe_feed).setVisible(false); + } + super.onCreateContextMenu(menu, v, menuInfo); } |