Fix crash when opening local feed (#7439)
This commit is contained in:
parent
751c358337
commit
0220aab53a
|
@ -250,7 +250,7 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem
|
||||||
viewBinding.toolbar.getMenu().findItem(R.id.visit_website_item).setVisible(false);
|
viewBinding.toolbar.getMenu().findItem(R.id.visit_website_item).setVisible(false);
|
||||||
}
|
}
|
||||||
if (feed.isLocalFeed()) {
|
if (feed.isLocalFeed()) {
|
||||||
viewBinding.toolbar.getMenu().findItem(R.id.share_item).setVisible(false);
|
viewBinding.toolbar.getMenu().findItem(R.id.share_feed).setVisible(false);
|
||||||
}
|
}
|
||||||
if (feed.getState() == Feed.STATE_NOT_SUBSCRIBED) {
|
if (feed.getState() == Feed.STATE_NOT_SUBSCRIBED) {
|
||||||
viewBinding.toolbar.getMenu().findItem(R.id.sort_items).setVisible(false);
|
viewBinding.toolbar.getMenu().findItem(R.id.sort_items).setVisible(false);
|
||||||
|
|
Loading…
Reference in New Issue