mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-23 07:14:24 +01:00
Merge branch 'version_1.1.1' of https://github.com/danieloeh/AntennaPod into version_1.1.1
This commit is contained in:
commit
5203808f5d
@ -219,7 +219,10 @@ public class AllEpisodesFragment extends Fragment {
|
||||
public void onPrepareOptionsMenu(Menu menu) {
|
||||
super.onPrepareOptionsMenu(menu);
|
||||
if (itemsLoaded && !MenuItemUtils.isActivityDrawerOpen((NavDrawerActivity) getActivity())) {
|
||||
menu.findItem(R.id.mark_all_read_item).setVisible(unreadItems != null && !unreadItems.isEmpty());
|
||||
MenuItem menuItem = menu.findItem(R.id.mark_all_read_item);
|
||||
if (menuItem != null) {
|
||||
menuItem.setVisible(unreadItems != null && !unreadItems.isEmpty());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,10 @@ public class PlaybackHistoryFragment extends ListFragment {
|
||||
public void onPrepareOptionsMenu(Menu menu) {
|
||||
super.onPrepareOptionsMenu(menu);
|
||||
if (itemsLoaded && !MenuItemUtils.isActivityDrawerOpen((NavDrawerActivity) getActivity())) {
|
||||
menu.findItem(R.id.clear_history_item).setVisible(playbackHistory != null && !playbackHistory.isEmpty());
|
||||
MenuItem menuItem = menu.findItem(R.id.clear_history_item);
|
||||
if (menuItem != null) {
|
||||
menuItem.setVisible(playbackHistory != null && !playbackHistory.isEmpty());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user