private void setSubscribeButtonState(Feed feed) { if (subscribeButton != null && feed != null) { if (DownloadRequester.getInstance().isDownloadingFile(feed.getDownload_url())) { subscribeButton.setEnabled(false); subscribeButton.setText(R.string.downloading_label); } else if (feedInFeedlist(feed)) { subscribeButton.setEnabled(false); subscribeButton.setText(R.string.subscribed_label); } else { subscribeButton.setEnabled(true); subscribeButton.setText(R.string.subscribe_label); } } }