From 294eeeb9cdf1aa6f1cf7959bb0a61cf3a95e2fb9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 16 Oct 2013 13:29:40 +0400 Subject: [PATCH] show indeterminate loading progressbar only when refreshing manually --- src/org/fox/ttrss/FeedsActivity.java | 3 ++- src/org/fox/ttrss/OnlineActivity.java | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/org/fox/ttrss/FeedsActivity.java b/src/org/fox/ttrss/FeedsActivity.java index 1c875fbb..13c1675b 100644 --- a/src/org/fox/ttrss/FeedsActivity.java +++ b/src/org/fox/ttrss/FeedsActivity.java @@ -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: diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index 4957e913..a1652cd1 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -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) {