From c61bef139f7a7f9482d0f135c3b3ff2ac19ed434 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 16 Oct 2014 16:15:50 +0400 Subject: [PATCH] offline: fix swipereload progress not disappearing --- src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index 5d143123..7f9d73f7 100644 --- a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -247,6 +247,8 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis try { if (!isAdded()) return; + m_swipeLayout.setRefreshing(true); + if (m_cursor != null && !m_cursor.isClosed()) m_cursor.close(); m_cursor = createCursor(); @@ -255,6 +257,9 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis m_adapter.changeCursor(m_cursor); m_adapter.notifyDataSetChanged(); } + + m_swipeLayout.setRefreshing(false); + } catch (NullPointerException e) { e.printStackTrace(); }