show indeterminate loading progressbar only when refreshing manually
This commit is contained in:
parent
94a468b2a3
commit
294eeeb9cd
@ -72,7 +72,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
|
|||||||
if (m_actionbarRevertDepth == 0) {
|
if (m_actionbarRevertDepth == 0) {
|
||||||
m_actionbarUpEnabled = false;
|
m_actionbarUpEnabled = false;
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
|
||||||
refresh();
|
refresh(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_feedIsSelected = false;
|
m_feedIsSelected = false;
|
||||||
@ -285,6 +285,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
|
|||||||
refresh();
|
refresh();
|
||||||
return true;
|
return true;
|
||||||
case R.id.update_feeds:
|
case R.id.update_feeds:
|
||||||
|
m_pullToRefreshAttacher.setRefreshing(true);
|
||||||
refresh();
|
refresh();
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
@ -1583,8 +1583,6 @@ public class OnlineActivity extends CommonActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void refresh(boolean includeHeadlines) {
|
protected void refresh(boolean includeHeadlines) {
|
||||||
m_pullToRefreshAttacher.setRefreshing(true);
|
|
||||||
|
|
||||||
FeedCategoriesFragment cf = (FeedCategoriesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_CATS);
|
FeedCategoriesFragment cf = (FeedCategoriesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_CATS);
|
||||||
|
|
||||||
if (cf != null) {
|
if (cf != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user