From f0a29f9bcba46c09a750f19b715a730fcc74eb02 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Nov 2013 22:01:29 +0400 Subject: [PATCH] disallow unsubscribing from special feeds --- src/org/fox/ttrss/FeedsFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }