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(MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems() != null)
|
||||||
{
|
{
|
||||||
if(idFolder != null) {
|
if(idFolder != null && idFolder == SubscriptionExpandableListAdapter.SPECIAL_FOLDERS.ALL_UNREAD_ITEMS.getValue()) {
|
||||||
if(idFolder == SubscriptionExpandableListAdapter.SPECIAL_FOLDERS.ALL_UNREAD_ITEMS.getValue())
|
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(false);
|
||||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(false);
|
} else {
|
||||||
else
|
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(true);
|
||||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(true);
|
}
|
||||||
} else
|
|
||||||
MenuUtilsFragmentActivity.getMenuItemDownloadMoreItems().setEnabled(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue