Code refactoring
This commit is contained in:
parent
593895b92f
commit
eef1ea935e
1 changed files with 5 additions and 7 deletions
|
@ -182,13 +182,11 @@ public class NewsReaderDetailFragment extends ListFragment implements IOnStayUnr
|
|||
{
|
||||
if(MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems() != null)
|
||||
{
|
||||
if(idFolder != null) {
|
||||
if(idFolder == SubscriptionExpandableListAdapter.SPECIAL_FOLDERS.ALL_UNREAD_ITEMS.getValue())
|
||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(false);
|
||||
else
|
||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(true);
|
||||
} else
|
||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(false);
|
||||
if(idFolder != null && idFolder == SubscriptionExpandableListAdapter.SPECIAL_FOLDERS.ALL_UNREAD_ITEMS.getValue()) {
|
||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(false);
|
||||
} else {
|
||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue