show indeterminate loading progressbar only when refreshing manually

This commit is contained in:
Andrew Dolgov 2013-10-16 13:29:40 +04:00
parent 94a468b2a3
commit 294eeeb9cd
2 changed files with 2 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
if (m_actionbarRevertDepth == 0) {
m_actionbarUpEnabled = false;
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
refresh();
refresh(false);
}
m_feedIsSelected = false;
@ -285,6 +285,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
refresh();
return true;
case R.id.update_feeds:
m_pullToRefreshAttacher.setRefreshing(true);
refresh();
return true;
default:

View File

@ -1583,8 +1583,6 @@ public class OnlineActivity extends CommonActivity {
}
protected void refresh(boolean includeHeadlines) {
m_pullToRefreshAttacher.setRefreshing(true);
FeedCategoriesFragment cf = (FeedCategoriesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_CATS);
if (cf != null) {