mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-24 23:55:36 +01:00
'Refresh all feeds'-menuitem is now invisible while refreshing feeds
This commit is contained in:
parent
6488e79827
commit
8965e3ea37
@ -109,6 +109,7 @@ public class PodfetcherActivity extends SherlockFragmentActivity {
|
||||
} else {
|
||||
setSupportProgressBarIndeterminateVisibility(false);
|
||||
}
|
||||
invalidateOptionsMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -134,6 +135,17 @@ public class PodfetcherActivity extends SherlockFragmentActivity {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||
MenuItem refreshAll = menu.findItem(R.id.all_feed_refresh);
|
||||
if (DownloadService.isRunning && DownloadRequester.getInstance().isDownloadingFeeds()) {
|
||||
refreshAll.setVisible(false);
|
||||
} else {
|
||||
refreshAll.setVisible(true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
MenuInflater inflater = new MenuInflater(this);
|
||||
|
Loading…
Reference in New Issue
Block a user