From 2b25a9caec1a017f727539e57124d169ccfd25a8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 27 Nov 2011 12:44:32 +0300 Subject: [PATCH] only report null object in feedsfragment when no feeds are presently loaded --- src/org/fox/ttrss/FeedsFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/fox/ttrss/FeedsFragment.java b/src/org/fox/ttrss/FeedsFragment.java index 43c30234..8e84aec1 100644 --- a/src/org/fox/ttrss/FeedsFragment.java +++ b/src/org/fox/ttrss/FeedsFragment.java @@ -214,8 +214,9 @@ public class FeedsFragment extends Fragment implements OnItemClickListener { // report invalid object received } } else { - // report null object received - setLoadingStatus(R.string.error_no_data, false); + // report null object received, unless we've been awakened from sleep right in the right time + // so that current request failed + if (m_feeds.size() == 0) setLoadingStatus(R.string.error_no_data, false); } return;